#include "opendylan/run-time.h"

/* Generated by Open Dylan 2014.1 for x86_64-linux */

/* Typedefs for referenced classes */

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value debug_name_;
  dylan_value class_implementation_class_;
  dylan_value class_subtype_bit_;
  dylan_value class_module_;
} _KLclassGVKd;

#define  define__KLmm_wrapperGVKi(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value mm_wrapper_implementation_class_; \
    dylan_value mm_wrapper_subtype_mask_; \
    DWORD mm_wrapper_fixed_part_; \
    DWORD mm_wrapper_variable_part_; \
    dylan_value mm_wrapper_number_patterns_; \
    DWORD mm_wrapper_pattern_element_[nrepeated+1]; \
  } _KLmm_wrapperGVKi_##nrepeated;
define__KLmm_wrapperGVKi(1);
define__KLmm_wrapperGVKi(0);

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value slot_descriptor_properties_;
  dylan_value init_data_slot_;
  dylan_value slot_owner_;
  dylan_value init_keyword_;
  dylan_value slot_getter_;
  dylan_value slot_setter_;
  dylan_value slot_type_;
} _KLinstance_slot_descriptorGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value function_signature_;
  dylan_value Pgf_cache_;
  dylan_value debug_name_;
  dylan_value generic_function_methods_;
  dylan_value discriminator_;
  dylan_value incremental_gf_module_;
  dylan_value incremental_gf_domain_info_;
  dylan_value incremental_gf_method_libraries_;
  dylan_value incremental_gf_properties_;
} _KLincremental_generic_functionGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value debug_name_;
  dylan_value class_implementation_class_;
  dylan_value class_subtype_bit_;
  dylan_value class_module_;
} _KLfunction_classGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value function_signature_;
  dylan_value Pgf_cache_;
  dylan_value debug_name_;
  dylan_value generic_function_methods_;
  dylan_value discriminator_;
} _KLsealed_generic_functionGVKe;

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

typedef struct {
  dylan_value wrapper;
} _KLinternet_addressGYsocketsVnetwork;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value union_type1_;
  dylan_value union_type2_;
} _KLunionGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value singleton_object_;
} _KLsingletonGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value class_properties_;
  dylan_value iclass_class_;
  dylan_value class_mm_wrapper_;
  dylan_value repeated_slot_descriptor_;
  dylan_value instance_slot_descriptors_;
  dylan_value iclass_dispatch_key_;
  dylan_value class_constructor_;
  dylan_value direct_superclasses_;
  dylan_value class_rcpl_vector_;
  dylan_value class_rcpl_position_;
  dylan_value class_rcpl_other_positions_;
  dylan_value class_known_joint_;
  dylan_value iclass_dependent_generics_;
  dylan_value iclass_subclass_dependent_generics_;
  dylan_value direct_subclasses_;
  dylan_value direct_methods_;
  dylan_value direct_slot_descriptors_;
  dylan_value slot_descriptors_;
  dylan_value direct_inherited_slot_descriptors_;
  dylan_value direct_initialization_argument_descriptors_;
  dylan_value class_slot_descriptors_;
  dylan_value defaulted_initialization_arguments_slot_;
  dylan_value class_slot_storage_;
} _KLimplementation_classGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value function_signature_;
  dylan_value mep_;
  dylan_value iep_;
  dylan_value keyword_specifiers_;
} _KLkeyword_methodGVKe;

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(256);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(3);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(0);

typedef struct {
  dylan_value wrapper;
  dylan_value head_;
  dylan_value tail_;
} _KLempty_listGVKd;

typedef struct {
  dylan_value wrapper;
} _KLclosable_objectGYcommon_extensionsVcommon_dylan;

typedef struct {
  dylan_value wrapper;
} _KLabstract_socketGYsocketsVnetwork;

typedef struct {
  dylan_value wrapper;
  dylan_value namespace_name_;
  dylan_value home_library_;
} _KLmoduleGVKe;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(21);
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(3);
define__KLbyte_stringGVKd(38);
define__KLbyte_stringGVKd(39);
define__KLbyte_stringGVKd(25);
define__KLbyte_stringGVKd(33);
define__KLbyte_stringGVKd(45);
define__KLbyte_stringGVKd(31);
define__KLbyte_stringGVKd(10);
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(15);

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value method_slot_descriptor_;
} _KLgetter_methodGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value method_slot_descriptor_;
} _KLsetter_methodGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value function_signature_;
  dylan_value mep_;
} _KLsimple_methodGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value properties_;
  dylan_value engine_node_callback_;
  dylan_value engine_node_entry_point_;
} _KLabsent_engine_nodeGVKg;

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_values_;
} _KLsignatureAvaluesGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value subclass_class_;
} _KLsubclassGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value accessor_;
  dylan_value force_output_before_readQ_;
} _KLsocketGYsocketsVnetwork;

typedef struct {
  dylan_value wrapper;
  dylan_value head_;
  dylan_value tail_;
} _KLpairGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_keys_;
  dylan_value signature_key_types_;
  dylan_value signature_values_;
} _KLkeyword_signatureAvaluesGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value symbol_name_;
} _KLsymbolGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value synchronization_;
} _KLtimeout_expiredGYthreadsVdylan;

#define  define__KLsimple_closure_methodGVKi(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value xep_; \
    dylan_value function_signature_; \
    dylan_value mep_; \
    dylan_value environment_size_; \
    dylan_value environment_element_[nrepeated+1]; \
  } _KLsimple_closure_methodGVKi_##nrepeated;
define__KLsimple_closure_methodGVKi(0);

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
} _KLsignatureGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_keys_;
  dylan_value signature_key_types_;
} _KLkeyword_signatureGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
} _KLfunctionGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value namespace_name_;
  dylan_value library_major_version_;
  dylan_value library_minor_version_;
  dylan_value library_build_count_;
  dylan_value used_libraries_;
  dylan_value all_used_libraries_;
  dylan_value runtime_module_;
  dylan_value library_defined_generics_;
  dylan_value library_number_static_dispatches_;
  dylan_value library_number_dynamic_dispatches_;
} _KLlibraryGVKe;

typedef struct {
  dylan_value wrapper;
} _KLstringGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value socket_descriptor_;
  dylan_value local_host_;
  dylan_value local_port_;
  dylan_value default_element_type_;
} _KLplatform_server_socketGYsockets_internalsVnetwork;


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value socket_descriptor_;
  dylan_value local_host_;
  dylan_value local_port_;
} _KLserver_socketGYsocketsVnetwork;


/* Referenced object declarations */

extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLincremental_generic_functionGVKe Klocal_portYsocketsVnetwork;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLsealed_generic_functionGVKe Klocal_port_setterYsockets_internalsVnetwork;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLincremental_generic_functionGVKe Klocal_hostYsocketsVnetwork;
extern _KLsealed_generic_functionGVKe Klocal_host_setterYsockets_internalsVnetwork;
extern _KLclassGVKd KLinternet_addressGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLinternet_addressGYsocketsVnetworkW;
extern _KLincremental_generic_functionGVKe Ksocket_descriptorYsocketsVnetwork;
extern _KLsealed_generic_functionGVKe Ksocket_descriptor_setterYsocketsVnetwork;
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
dylan_value Kunion_instanceQVKiI (dylan_value, dylan_value);
extern _KLunionGVKe KLaccessor_socket_descriptorGYsockets_internalsVnetwork;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLclassGVKd KLclosable_objectGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLclosable_objectGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLabstract_socketGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLabstract_socketGYsocketsVnetworkW;
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Ksockets_moduleYdylan_userVnetwork;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
extern _KLclassGVKd KLsetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsetter_methodGVKiW;
extern _KLsimple_methodGVKe Kclient_class_for_serverYsocketsVnetworkMM0;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLsimple_methodGVKe Kclient_class_for_serverYsocketsVnetworkMM1;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLclassGVKd KLsubclassGVKe;
extern _KLmm_wrapperGVKi_0 KLsubclassGVKeW;
dylan_value Ksubclass_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLsocketGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLsocketGYsocketsVnetworkW;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLkeyword_methodGVKe KacceptYsocketsVnetworkMM1;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
dylan_value Kcurrent_socket_managerYsocketsVnetworkI ();
extern _KLsealed_generic_functionGVKe Kaccessor_acceptYsocketsVnetwork;
dylan_value KmemberQVKdMM4I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsymbolGVKd KJlock_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLsimple_methodGVKe KEEVKd;
dylan_value Klock_wait_result_errorYthreads_internalVdylanMM0I (dylan_value, dylan_value);
extern _KLsealed_generic_functionGVKe Kdefault_element_typeYsocketsVnetwork;
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLsymbolGVKd KJelement_type_;
dylan_value Klock_release_result_errorYthreads_internalVdylanMM0I (dylan_value, dylan_value);
extern _KLsymbolGVKd KJsynchronization_;
extern _KLclassGVKd KLtimeout_expiredGYthreadsVdylan;
extern _KLmm_wrapperGVKi_0 KLtimeout_expiredGYthreadsVdylanW;
dylan_value KsignalVKdMM0I (dylan_value, dylan_value);
dylan_value Kcurrent_threadYthreadsVdylanI ();
extern _KLfunction_classGVKi KLsimple_closure_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsimple_closure_methodGVKiW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLsimple_methodGVKe Kserver_class_for_protocolYsocketsVnetworkMM0;
extern _KLsimple_methodGVKe Kserver_class_for_protocolYsocketsVnetworkMM2;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Ksocket_openQYsocketsVnetwork;
extern _KLincremental_generic_functionGVKe KcloseYcommon_extensionsVcommon_dylan;
extern _KLclassGVKd KLkeyword_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureGVKeW;
extern _KLclassGVKd KLfunctionGVKd;
extern _KLmm_wrapperGVKi_0 KLfunctionGVKdW;
extern _KLsealed_generic_functionGVKe Kfunction_argumentsVKd;
dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLlibraryGVKe Knetwork_libraryYdylan_userVnetwork;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLincremental_generic_functionGVKe KasVKd;
extern _KLclassGVKd KLstringGVKd;
extern _KLmm_wrapperGVKi_0 KLstringGVKdW;
extern _KLsimple_methodGVKe Kaccessor_close_socketYsocketsVnetworkMM0;
extern _KLclassGVKd KLplatform_server_socketGYsockets_internalsVnetwork;
extern dylan_value TdebuggingQTVKi;
extern dylan_value Tdebug_partsTVKi;
extern dylan_value Tdebug_out_functionTVKi;

/* Defined object declarations */

extern _KLsetter_methodGVKi Ksocket_descriptor_setterYsocketsVnetworkMM1;
extern _KLsetter_methodGVKi Klocal_port_setterYsockets_internalsVnetworkMM1;
extern _KLsetter_methodGVKi Klocal_host_setterYsockets_internalsVnetworkMM1;
extern _KLgetter_methodGVKi Ksocket_descriptorYsocketsVnetworkMM2;
extern _KLgetter_methodGVKi Klocal_portYsocketsVnetworkMM1;
extern _KLgetter_methodGVKi Klocal_hostYsocketsVnetworkMM1;
extern _KLclassGVKd KLserver_socketGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLserver_socketGYsocketsVnetworkW;
extern _KLinstance_slot_descriptorGVKe Ksocket_descriptorYsocketsVnetworkHLserver_socketG;
extern _KLinstance_slot_descriptorGVKe Klocal_hostYsocketsVnetworkHLserver_socketG;
extern _KLinstance_slot_descriptorGVKe Klocal_portYsocketsVnetworkHLserver_socketG;
static _KLunionGVKe K11;
static _KLsingletonGVKd K12;
static _KLimplementation_classGVKe K13;
static _KLsimple_object_vectorGVKd_3 K14;
static _KLsimple_object_vectorGVKd_1 K15;
static _KLsimple_object_vectorGVKd_6 K16;
static _KLbyte_stringGVKd_15 K17;
extern _KLincremental_generic_functionGVKe Kclient_class_for_serverYsocketsVnetwork;
static _KLpairGVKd K19;
static _KLpairGVKd K20;
static _KLsignatureAvaluesGVKi K21;
static _KLbyte_stringGVKd_23 K22;
static _KLsimple_object_vectorGVKd_1 K23;
static _KLsimple_object_vectorGVKd_1 K24;
static _KLsubclassGVKe K25;
extern _KLincremental_generic_functionGVKe KacceptYsocketsVnetwork;
extern _KLkeyword_methodGVKe KacceptYsocketsVnetworkMM0;
dylan_value KacceptYsocketsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
static _KLpairGVKd K29;
static _KLpairGVKd K30;
static _KLkeyword_signatureAvaluesGVKi K31;
static _KLbyte_stringGVKd_6 K32;
static _KLsimple_object_vectorGVKd_1 K33;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_acceptF47;
static dylan_value Kanonymous_of_acceptF47I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_acceptF45;
static dylan_value Kanonymous_of_acceptF45I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_acceptF42;
static dylan_value Kanonymous_of_acceptF42I ();
static _KLsymbolGVKd KJdescriptor_;
static _KLbyte_stringGVKd_10 K41;
static _KLbyte_stringGVKd_31 K43;
static _KLsignatureGVKe K44;
static _KLbyte_stringGVKd_45 K46;
static _KLbyte_stringGVKd_33 K48;
static _KLkeyword_signatureAvaluesGVKi K49;
static _KLsimple_object_vectorGVKd_2 K50;
static _KLsimple_object_vectorGVKd_1 K51;
extern _KLincremental_generic_functionGVKe Kserver_class_for_protocolYsocketsVnetwork;
extern _KLsimple_methodGVKe Kserver_class_for_protocolYsocketsVnetworkMM1;
dylan_value Kserver_class_for_protocolYsocketsVnetworkMM1I (dylan_value);
static _KLpairGVKd K55;
static _KLpairGVKd K56;
static _KLpairGVKd K57;
static _KLsignatureAvaluesGVKi K58;
static _KLbyte_stringGVKd_25 K59;
static _KLsimple_object_vectorGVKd_1 K60;
static _KLsimple_object_vectorGVKd_1 K61;
static _KLsubclassGVKe K62;
static _KLbyte_stringGVKd_39 K63;
static _KLsignatureAvaluesGVKi K64;
static _KLsimple_object_vectorGVKd_1 K65;
static _KLsubclassGVKe K66;
extern _KLkeyword_methodGVKe Kinvoke_with_server_socketYsockets_internalsVnetworkMM0;
dylan_value Kinvoke_with_server_socketYsockets_internalsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
static _KLkeyword_signatureGVKe K69;
static _KLsimple_object_vectorGVKd_2 K70;
static _KLsubclassGVKe K71;
extern _KLkeyword_methodGVKe Kinvoke_start_serverYsockets_internalsVnetworkMM0;
dylan_value Kinvoke_start_serverYsockets_internalsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
static _KLbyte_stringGVKd_38 K74;
static _KLkeyword_signatureGVKe K75;
static _KLsimple_object_vectorGVKd_2 K76;
extern _KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMnetworkM2;
dylan_value KcloseYcommon_extensionsVcommon_dylanMnetworkM2I (dylan_value, dylan_value);
extern _KLkeyword_methodGVKe KmakeVKdMnetworkM4;
dylan_value KmakeVKdMnetworkM4I (dylan_value, dylan_value, dylan_value);
static _KLunionGVKe K83;
static _KLkeyword_signatureAvaluesGVKi K84;
static _KLsimple_object_vectorGVKd_2 K85;
static _KLsymbolGVKd KJprotocol_;
static _KLsymbolGVKd KJtcp_;
static _KLbyte_stringGVKd_3 K88;
static _KLbyte_stringGVKd_8 K89;
static _KLsimple_object_vectorGVKd_1 K90;
static _KLsimple_object_vectorGVKd_1 K91;
static _KLsimple_object_vectorGVKd_1 K92;
static _KLsingletonGVKd K93;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF107;
static dylan_value Kanonymous_of_closeF107I (dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF106;
static dylan_value Kanonymous_of_closeF106I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF105;
static dylan_value Kanonymous_of_closeF105I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF104;
static dylan_value Kanonymous_of_closeF104I ();
static _KLsymbolGVKd KJalready_unregisteredQ_;
static _KLbyte_stringGVKd_21 K103;
static _KLbyte_stringGVKd_15 K108;
static _KLsignatureGVKe K109;
static _KLkeyword_signatureGVKe K110;
static _KLpairGVKd K111;

/* Indirection variables */

static dylan_value IKJdescriptor_ = &KJdescriptor_;
static dylan_value IKJprotocol_ = &KJprotocol_;
static dylan_value IKJtcp_ = &KJtcp_;
static dylan_value IKJalready_unregisteredQ_ = &KJalready_unregisteredQ_;

/* Variables */

dylan_value invoke_start_serverYsockets_internalsVnetwork = &Kinvoke_start_serverYsockets_internalsVnetworkMM0;
dylan_value invoke_with_server_socketYsockets_internalsVnetwork = &Kinvoke_with_server_socketYsockets_internalsVnetworkMM0;
dylan_value Lserver_socketGYsocketsVnetwork = &KLserver_socketGYsocketsVnetwork;
dylan_value server_class_for_protocolYsocketsVnetwork = &Kserver_class_for_protocolYsocketsVnetwork;
dylan_value acceptYsocketsVnetwork = &KacceptYsocketsVnetwork;
dylan_value client_class_for_serverYsocketsVnetwork = &Kclient_class_for_serverYsocketsVnetwork;

/* Objects */

_KLsetter_methodGVKi Ksocket_descriptor_setterYsocketsVnetworkMM1 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &Ksocket_descriptorYsocketsVnetworkHLserver_socketG
};

_KLsetter_methodGVKi Klocal_port_setterYsockets_internalsVnetworkMM1 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &Klocal_portYsocketsVnetworkHLserver_socketG
};

_KLsetter_methodGVKi Klocal_host_setterYsockets_internalsVnetworkMM1 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &Klocal_hostYsocketsVnetworkHLserver_socketG
};

_KLgetter_methodGVKi Ksocket_descriptorYsocketsVnetworkMM2 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksocket_descriptorYsocketsVnetworkHLserver_socketG
};

_KLgetter_methodGVKi Klocal_portYsocketsVnetworkMM1 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Klocal_portYsocketsVnetworkHLserver_socketG
};

_KLgetter_methodGVKi Klocal_hostYsocketsVnetworkMM1 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Klocal_hostYsocketsVnetworkHLserver_socketG
};

_KLclassGVKd KLserver_socketGYsocketsVnetwork = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K17,
  &K13,
  (dylan_value) 1,
  &Ksockets_moduleYdylan_userVnetwork
};

_KLmm_wrapperGVKi_0 KLserver_socketGYsocketsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K13,
  (dylan_value) 1,
  13,
  33554439,
  (dylan_value) 1
};

_KLinstance_slot_descriptorGVKe Ksocket_descriptorYsocketsVnetworkHLserver_socketG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLserver_socketGYsocketsVnetwork,
  &KPfalseVKi,
  &Ksocket_descriptorYsocketsVnetwork,
  &Ksocket_descriptor_setterYsocketsVnetwork,
  &K11
};

_KLinstance_slot_descriptorGVKe Klocal_hostYsocketsVnetworkHLserver_socketG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLserver_socketGYsocketsVnetwork,
  &KPfalseVKi,
  &Klocal_hostYsocketsVnetwork,
  &Klocal_host_setterYsockets_internalsVnetwork,
  &KLinternet_addressGYsocketsVnetwork
};

_KLinstance_slot_descriptorGVKe Klocal_portYsocketsVnetworkHLserver_socketG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLserver_socketGYsocketsVnetwork,
  &KPfalseVKi,
  &Klocal_portYsocketsVnetwork,
  &Klocal_port_setterYsockets_internalsVnetwork,
  &KLintegerGVKd
};

static _KLunionGVKe K11 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K12,
  &KLaccessor_socket_descriptorGYsockets_internalsVnetwork
};

static _KLsingletonGVKd K12 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KPfalseVKi
};

static _KLimplementation_classGVKe K13 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 325845005,
  &KLserver_socketGYsocketsVnetwork,
  &KLserver_socketGYsocketsVnetworkW,
  &KPfalseVKi,
  &K14,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K15,
  &K16,
  (dylan_value) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K111,
  &KPempty_vectorVKi,
  &K14,
  &K14,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_3 K14 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &Ksocket_descriptorYsocketsVnetworkHLserver_socketG,
  &Klocal_hostYsocketsVnetworkHLserver_socketG,
  &Klocal_portYsocketsVnetworkHLserver_socketG
};

static _KLsimple_object_vectorGVKd_1 K15 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLabstract_socketGYsocketsVnetwork
};

static _KLsimple_object_vectorGVKd_6 K16 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLabstract_socketGYsocketsVnetwork,
  &KLserver_socketGYsocketsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLbyte_stringGVKd_15 K17 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "<server-socket>"
};

_KLincremental_generic_functionGVKe Kclient_class_for_serverYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K21,
  (dylan_value) 1,
  &K22,
  &K19,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

static _KLpairGVKd K19 = {
  &KLpairGVKdW /* wrapper */,
  &Kclient_class_for_serverYsocketsVnetworkMM0,
  &K20
};

static _KLpairGVKd K20 = {
  &KLpairGVKdW /* wrapper */,
  &Kclient_class_for_serverYsocketsVnetworkMM1,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K21 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K23,
  &K24
};

static _KLbyte_stringGVKd_23 K22 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "client-class-for-server"
};

static _KLsimple_object_vectorGVKd_1 K23 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLserver_socketGYsocketsVnetwork
};

static _KLsimple_object_vectorGVKd_1 K24 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &K25
};

static _KLsubclassGVKe K25 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLsocketGYsocketsVnetwork
};

_KLincremental_generic_functionGVKe KacceptYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_optional_xep_1,
  &K31,
  &KPfalseVKi,
  &K32,
  &K29,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLkeyword_methodGVKe KacceptYsocketsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K49,
  &key_mep_3,
  &KacceptYsocketsVnetworkMM0I,
  &K50
};

static _KLpairGVKd K29 = {
  &KLpairGVKdW /* wrapper */,
  &KacceptYsocketsVnetworkMM0,
  &K30
};

static _KLpairGVKd K30 = {
  &KLpairGVKdW /* wrapper */,
  &KacceptYsocketsVnetworkMM1,
  &KPempty_listVKi
};

static _KLkeyword_signatureAvaluesGVKi K31 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &K23,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K33
};

static _KLbyte_stringGVKd_6 K32 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 25,
  "accept"
};

static _KLsimple_object_vectorGVKd_1 K33 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLsocketGYsocketsVnetwork
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_acceptF47 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K44,
  &Kanonymous_of_acceptF47I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_acceptF45 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K44,
  &Kanonymous_of_acceptF45I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_acceptF42 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K44,
  &Kanonymous_of_acceptF42I,
  (dylan_value) 1
};

static _KLsymbolGVKd KJdescriptor_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K41
};

static _KLbyte_stringGVKd_10 K41 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 41,
  "descriptor"
};

static _KLbyte_stringGVKd_31 K43 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 125,
  "Releasing lock %= in thread %=\n"
};

static _KLsignatureGVKe K44 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 44040193,
  &KPempty_vectorVKi
};

static _KLbyte_stringGVKd_45 K46 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 181,
  "Waiting for lock %= in thread %= returned %=\n"
};

static _KLbyte_stringGVKd_33 K48 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 133,
  "Waiting for lock %= in thread %=\n"
};

static _KLkeyword_signatureAvaluesGVKi K49 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &K23,
  &K51,
  &KDsignature_LobjectG_typesVKi,
  &K33
};

static _KLsimple_object_vectorGVKd_2 K50 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJelement_type_,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_1 K51 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KJelement_type_
};

_KLincremental_generic_functionGVKe Kserver_class_for_protocolYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K58,
  &KPfalseVKi,
  &K59,
  &K55,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLsimple_methodGVKe Kserver_class_for_protocolYsocketsVnetworkMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K64,
  &Kserver_class_for_protocolYsocketsVnetworkMM1I
};

static _KLpairGVKd K55 = {
  &KLpairGVKdW /* wrapper */,
  &Kserver_class_for_protocolYsocketsVnetworkMM0,
  &K56
};

static _KLpairGVKd K56 = {
  &KLpairGVKdW /* wrapper */,
  &Kserver_class_for_protocolYsocketsVnetworkMM1,
  &K57
};

static _KLpairGVKd K57 = {
  &KLpairGVKdW /* wrapper */,
  &Kserver_class_for_protocolYsocketsVnetworkMM2,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K58 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K60,
  &K61
};

static _KLbyte_stringGVKd_25 K59 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 101,
  "server-class-for-protocol"
};

static _KLsimple_object_vectorGVKd_1 K60 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLsymbolGVKd
};

static _KLsimple_object_vectorGVKd_1 K61 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &K62
};

static _KLsubclassGVKe K62 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLserver_socketGYsocketsVnetwork
};

static _KLbyte_stringGVKd_39 K63 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 157,
  "unrecognized server socket protocol: %s"
};

static _KLsignatureAvaluesGVKi K64 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K60,
  &K65
};

static _KLsimple_object_vectorGVKd_1 K65 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &K66
};

static _KLsubclassGVKe K66 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLserver_socketGYsocketsVnetwork
};

_KLkeyword_methodGVKe Kinvoke_with_server_socketYsockets_internalsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K69,
  &key_mep_3,
  &Kinvoke_with_server_socketYsockets_internalsVnetworkMM0I,
  &KPempty_vectorVKi
};

static _KLkeyword_signatureGVKe K69 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 43778057,
  &K70,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_2 K70 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &K71,
  &KLfunctionGVKd
};

static _KLsubclassGVKe K71 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLserver_socketGYsocketsVnetwork
};

_KLkeyword_methodGVKe Kinvoke_start_serverYsockets_internalsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K75,
  &key_mep_3,
  &Kinvoke_start_serverYsockets_internalsVnetworkMM0I,
  &KPempty_vectorVKi
};

static _KLbyte_stringGVKd_38 K74 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 153,
  "unknown body function for start-server"
};

static _KLkeyword_signatureGVKe K75 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 43778057,
  &K76,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_2 K76 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLserver_socketGYsocketsVnetwork,
  &KLfunctionGVKd
};

_KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMnetworkM2 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K110,
  &key_mep_2,
  &KcloseYcommon_extensionsVcommon_dylanMnetworkM2I,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe KmakeVKdMnetworkM4 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K84,
  &key_mep_3,
  &KmakeVKdMnetworkM4I,
  &K85
};

static _KLunionGVKe K83 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &KLstringGVKd,
  &KLsymbolGVKd
};

static _KLkeyword_signatureAvaluesGVKi K84 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34866181,
  &K90,
  &K91,
  &K92,
  &K23
};

static _KLsimple_object_vectorGVKd_2 K85 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJprotocol_,
  &KJtcp_
};

static _KLsymbolGVKd KJprotocol_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K89
};

static _KLsymbolGVKd KJtcp_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K88
};

static _KLbyte_stringGVKd_3 K88 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 13,
  "tcp"
};

static _KLbyte_stringGVKd_8 K89 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 33,
  "protocol"
};

static _KLsimple_object_vectorGVKd_1 K90 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &K93
};

static _KLsimple_object_vectorGVKd_1 K91 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KJprotocol_
};

static _KLsimple_object_vectorGVKd_1 K92 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &K83
};

static _KLsingletonGVKd K93 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLserver_socketGYsocketsVnetwork
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF107 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &rest_xep_0,
  &K109,
  &Kanonymous_of_closeF107I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF106 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K44,
  &Kanonymous_of_closeF106I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF105 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K44,
  &Kanonymous_of_closeF105I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF104 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K44,
  &Kanonymous_of_closeF104I,
  (dylan_value) 1
};

static _KLsymbolGVKd KJalready_unregisteredQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K103
};

static _KLbyte_stringGVKd_21 K103 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 85,
  "already-unregistered?"
};

static _KLbyte_stringGVKd_15 K108 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "No next method."
};

static _KLsignatureGVKe K109 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 45088769,
  &KPempty_vectorVKi
};

static _KLkeyword_signatureGVKe K110 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 47448069,
  &K23,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLpairGVKd K111 = {
  &KLpairGVKdW /* wrapper */,
  &KLplatform_server_socketGYsockets_internalsVnetwork,
  &KPempty_listVKi
};

/* Code */

dylan_value KacceptYsocketsVnetworkMM0I (dylan_value server_socket_, dylan_value args_, dylan_value element_type_) {
  dylan_value manager_;
  dylan_value descriptor_;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11_0;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19_0;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31_0;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38_0;
  dylan_value T39;
  dylan_value T40;
  dylan_value T41;
  dylan_value T42_0;
  dylan_value T43;
  dylan_value T44;
  dylan_value T45;
  dylan_value T46;
  dylan_value T47;
  dylan_value T48;
  dylan_value T49_0;
  dylan_value T50;
  dylan_value T51;
  dylan_value T52;
  dylan_value T53;
  dylan_value res_;
  dylan_value T55;
  _KLsimple_object_vectorGVKd_2 T56 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T57_0;
  dylan_value T58_0;
  dylan_value T59_0;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:38
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:41
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:42
  CONGRUENT_CALL_PROLOG(&Kaccessor_acceptYsocketsVnetwork, 1);
  descriptor_ = CONGRUENT_CALL1(server_socket_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T12 = SLOT_VALUE_INITD(manager_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T13 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T13 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T14 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T15 = primitive_idQ(T14,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T16 = primitive_not(T15);
    T17 = T16;
  } else {
    T17 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T17 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T18 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T19_0 = KmemberQVKdMM4I(&KJlock_, T18, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T20 = T19_0;
    T21 = T20;
  } else {
    T21 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T21 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T22 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T23 = MAKE_CLOSURE_INITD(&Kanonymous_of_acceptF47, 1, T12);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    CALL1(T22, T23);
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T24 = primitive_wait_for_recursive_lock(T12);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T25 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T25 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T26 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T27 = primitive_idQ(T26,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T28 = primitive_not(T27);
    T29 = T28;
  } else {
    T29 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T29 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T30 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T31_0 = KmemberQVKdMM4I(&KJlock_, T30, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T32 = T31_0;
    T33 = T32;
  } else {
    T33 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T33 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T34 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T35 = MAKE_CLOSURE_INITD(&Kanonymous_of_acceptF45, 2, T24, T12);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    CALL1(T34, T35);
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T36 = primitive_idQ(T24,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T36 != &KPfalseVKi) {
    T41 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T37 = primitive_idQ(T24,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    if (T37 != &KPfalseVKi) {
      T40 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T38_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(T12, T24);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T39 = T38_0;
      T40 = T39;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T41 = T40;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T41 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    ENTER_UNWIND_FRAME(T6);
    if (!nlx_setjmp(FRAME_DEST(T6))) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:45
      CONGRUENT_CALL_PROLOG(&Kclient_class_for_serverYsocketsVnetwork, 1);
      T7 = CONGRUENT_CALL1(server_socket_);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:47
      if (element_type_ != &KPfalseVKi) {
        T9 = element_type_;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:47
        T8 = CALL1(&Kdefault_element_typeYsocketsVnetwork, server_socket_);
        T9 = T8;
      }
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:47
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:44
      T42_0 = APPLY6(&KmakeVKd, T7, IKJdescriptor_, descriptor_, &KJelement_type_, T9, args_);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      FALL_THROUGH_UNWIND(T42_0);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T43 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    if (T43 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T44 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T45 = primitive_idQ(T44,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T46 = primitive_not(T45);
      T47 = T46;
    } else {
      T47 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    if (T47 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T48 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T49_0 = KmemberQVKdMM4I(&KJlock_, T48, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T50 = T49_0;
      T51 = T50;
    } else {
      T51 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    if (T51 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T52 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      T53 = MAKE_CLOSURE_INITD(&Kanonymous_of_acceptF42, 1, T12);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      CALL1(T52, T53);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    res_ = primitive_release_recursive_lock(T12);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T55 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    if (T55 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
      Klock_release_result_errorYthreads_internalVdylanMM0I(T12, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    CONTINUE_UNWIND();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:44
    T58_0 = T42_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T42_0);
      primitive_type_check(T58_0, &KLsocketGYsocketsVnetwork);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T11_0 = T58_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T56.vector_element_[0] = &KJsynchronization_;
    T56.vector_element_[1] = T12;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T10 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T56);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T57_0 = KsignalVKdMM0I(T10, &KPempty_vectorVKi);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T59_0 = T57_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T57_0);
      primitive_type_check(T59_0, &KLsocketGYsocketsVnetwork);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T11_0 = T59_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:38
  MV_SET_COUNT(1);
  return(T11_0);
}

static dylan_value Kanonymous_of_acceptF47I () {
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_3 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 13};
  dylan_value T6;
  dylan_value T7_0;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T5.vector_element_[0] = &K48;
  T5.vector_element_[1] = CREF(0);
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_acceptF45I () {
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_4 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T6;
  dylan_value T7_0;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T5.vector_element_[0] = &K46;
  T5.vector_element_[1] = CREF(1);
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_acceptF42I () {
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_3 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 13};
  dylan_value T6;
  dylan_value T7_0;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T5.vector_element_[0] = &K43;
  T5.vector_element_[1] = CREF(0);
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:43
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kserver_class_for_protocolYsocketsVnetworkMM1I (dylan_value protocol_) {
  _KLsimple_object_vectorGVKd_1 T2 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T3_0;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:28
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:30
  T2.vector_element_[0] = protocol_;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:30
  T3_0 = KerrorVKdMM1I(&K63, &T2);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:28
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kinvoke_with_server_socketYsockets_internalsVnetworkMM0I (dylan_value class_, dylan_value body_, dylan_value keys_) {
  dylan_value T4;
  dylan_value serverF5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value serverF9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:88
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:91
  serverF9 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:92
  ENTER_UNWIND_FRAME(T4);
  if (!nlx_setjmp(FRAME_DEST(T4))) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:93
    T14 = APPLY2(&KmakeVKd, class_, keys_);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:93
    serverF9 = T14;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:93
    T13 = serverF9;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:93
    primitive_type_check(T13, class_);
    serverF5 = T13;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:95
    T6 = CALL1(body_, serverF5);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:92
    FALL_THROUGH_UNWIND(T6);
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
  T11 = serverF9;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
  if (T11 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
    T12 = serverF9;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
    T7 = CALL1(&Ksocket_openQYsocketsVnetwork, T12);
    T8 = T7;
  } else {
    T8 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
  if (T8 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:98
    T10 = serverF9;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:98
    CALL1(&KcloseYcommon_extensionsVcommon_dylan, T10);
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:97
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:92
  CONTINUE_UNWIND();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:88
  MV_SET_COUNT(0);
  return(T6);
}

dylan_value Kinvoke_start_serverYsockets_internalsVnetworkMM0I (dylan_value server_socket_, dylan_value body_, dylan_value keys_) {
  dylan_value Uobject_;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value reply_socketF10;
  dylan_value T11;
  dylan_value reply_socketF12;
  dylan_value T13;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:122
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
  CONGRUENT_CALL_PROLOG(&Kfunction_argumentsVKd, 1);
  Uobject_ = CONGRUENT_CALL1(body_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
  T9 = primitive_idQ(Uobject_,(dylan_value) 5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
  if (T9 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:126
  L0: ;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:127
      reply_socketF10 = APPLY2(&KacceptYsocketsVnetwork, server_socket_, keys_);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:128
      CALL1(body_, reply_socketF10);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:126
      goto L0;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:126
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:126
    T5 = &KPfalseVKi;
    T8 = T5;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
    T11 = primitive_idQ(Uobject_,(dylan_value) 9);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
    if (T11 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:130
    L1: ;
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:131
        reply_socketF12 = APPLY2(&KacceptYsocketsVnetwork, server_socket_, keys_);
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:132
        CALL2(body_, server_socket_, reply_socketF12);
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:130
        goto L1;
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:130
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:130
      T6 = &KPfalseVKi;
      T7 = T6;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:134
      T13 = KerrorVKdMM1I(&K74, &KPempty_vectorVKi);
      T7 = T13;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
    T8 = T7;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:125
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:122
  MV_SET_COUNT(0);
  return(T8);
}

dylan_value KcloseYcommon_extensionsVcommon_dylanMnetworkM2I (dylan_value the_server_, dylan_value keys_) {
  dylan_value manager_;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22_0;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34_0;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38;
  dylan_value T39;
  dylan_value T40;
  dylan_value T41_0;
  dylan_value T42;
  dylan_value T43;
  dylan_value T44;
  dylan_value T45;
  dylan_value T46;
  dylan_value T47;
  dylan_value T48;
  dylan_value T49;
  dylan_value T50;
  dylan_value T51_0;
  dylan_value T52;
  dylan_value T53;
  dylan_value T54;
  dylan_value T55;
  dylan_value res_;
  dylan_value T57;
  _KLsimple_object_vectorGVKd_2 T58 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T59;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:56
  T14 = primitive_copy_vector(keys_);
  T12 = primitive_next_methods_parameter();
  T13 = MAKE_CLOSURE_INITD(&Kanonymous_of_closeF107, 3, T14, T12, the_server_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:57
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T15 = SLOT_VALUE_INITD(manager_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T16 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T16 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T17 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T18 = primitive_idQ(T17,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T19 = primitive_not(T18);
    T20 = T19;
  } else {
    T20 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T20 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T21 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T22_0 = KmemberQVKdMM4I(&KJlock_, T21, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T23 = T22_0;
    T24 = T23;
  } else {
    T24 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T24 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T25 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T26 = MAKE_CLOSURE_INITD(&Kanonymous_of_closeF106, 1, T15);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    CALL1(T25, T26);
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T27 = primitive_wait_for_recursive_lock(T15);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T28 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T28 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T29 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T30 = primitive_idQ(T29,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T31 = primitive_not(T30);
    T32 = T31;
  } else {
    T32 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T32 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T33 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T34_0 = KmemberQVKdMM4I(&KJlock_, T33, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T35 = T34_0;
    T36 = T35;
  } else {
    T36 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T36 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T37 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T38 = MAKE_CLOSURE_INITD(&Kanonymous_of_closeF105, 2, T27, T15);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    CALL1(T37, T38);
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T39 = primitive_idQ(T27,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T39 != &KPfalseVKi) {
    T44 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T40 = primitive_idQ(T27,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    if (T40 != &KPfalseVKi) {
      T43 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T41_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(T15, T27);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T42 = T41_0;
      T43 = T42;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T44 = T43;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T44 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    ENTER_UNWIND_FRAME(T4);
    if (!nlx_setjmp(FRAME_DEST(T4))) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:59
      CONGRUENT_CALL_PROLOG(&Ksocket_openQYsocketsVnetwork, 1);
      T5 = CONGRUENT_CALL1(the_server_);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:59
      if (T5 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:62
        APPLY4(T13, the_server_, IKJalready_unregisteredQ_, &KPfalseVKi, T14);
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:63
        CONGRUENT_CALL_PROLOG(&Ksocket_descriptorYsocketsVnetwork, 1);
        T6 = CONGRUENT_CALL1(the_server_);
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:63
        CALL1(&Kaccessor_close_socketYsocketsVnetworkMM0, T6);
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:64
        SLOT_VALUE_SETTER(&KPfalseVKi, the_server_, 0);
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:64
        T7 = &KPfalseVKi;
        T9 = T7;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:59
        T8 = &KPfalseVKi;
        T9 = T8;
      }
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:59
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      FALL_THROUGH_UNWIND(T9);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T45 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    if (T45 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T46 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T47 = primitive_idQ(T46,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T48 = primitive_not(T47);
      T49 = T48;
    } else {
      T49 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    if (T49 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T50 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T51_0 = KmemberQVKdMM4I(&KJlock_, T50, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T52 = T51_0;
      T53 = T52;
    } else {
      T53 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    if (T53 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T54 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      T55 = MAKE_CLOSURE_INITD(&Kanonymous_of_closeF104, 1, T15);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      CALL1(T54, T55);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    res_ = primitive_release_recursive_lock(T15);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T57 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    if (T57 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
      Klock_release_result_errorYthreads_internalVdylanMM0I(T15, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    CONTINUE_UNWIND();
    T11 = T9;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T58.vector_element_[0] = &KJsynchronization_;
    T58.vector_element_[1] = T15;
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T10 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T58);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T59 = KsignalVKdMM0I(T10, &KPempty_vectorVKi);
    T11 = T59;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:56
  MV_SET_COUNT(0);
  return(T11);
}

dylan_value KmakeVKdMnetworkM4I (dylan_value class_, dylan_value initargs_, dylan_value protocol_) {
  dylan_value protocolF4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7_0;
  dylan_value T8_0;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:18
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:18
  primitive_type_check(protocol_, &K83);
  protocolF4 = protocol_;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:22
  CONGRUENT_CALL_PROLOG(&KasVKd, 2);
  T5 = CONGRUENT_CALL2(&KLsymbolGVKd, protocolF4);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:22
  T6 = CALL1(&Kserver_class_for_protocolYsocketsVnetwork, T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:22
  T8_0 = APPLY2(&KmakeVKd, T6, initargs_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:18
  T7_0 = T8_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T8_0);
    primitive_type_check(T7_0, &KLserver_socketGYsocketsVnetwork);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:18
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_closeF107I (dylan_value Unext_method_argsU_) {
  dylan_value T2;
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  DWORD T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  CAPTURE_ENVIRONMENT

  T6 = primitive_idQ(CREF(1),&KPempty_listVKi);
  if (T6 != &KPfalseVKi) {
    T14 = KerrorVKdMM1I(&K108, &KPempty_vectorVKi);
    T5 = T14;
  } else {
    T7 = SLOT_VALUE_INITD(Unext_method_argsU_, 0);
    T8 = primitive_cast_integer_as_raw(T7);
    T9 = primitive_machine_word_equalQ(T8,1);
    if (T9 != &KPfalseVKi) {
      T10 = SLOT_VALUE_INITD(CREF(1), 0);
      T11 = SLOT_VALUE_INITD(CREF(1), 1);
      MEP_CALL_PROLOG(T10, T11, 2);
      T2 = MEP_CALL2(T10, CREF(2), CREF(0));
      T4 = T2;
    } else {
      T12 = SLOT_VALUE_INITD(CREF(1), 0);
      T13 = SLOT_VALUE_INITD(CREF(1), 1);
      T3 = MEP_APPLY1(T12, T13, Unext_method_argsU_);
      T4 = T3;
    }
    T5 = T4;
  }
  return(T5);
}

static dylan_value Kanonymous_of_closeF106I () {
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_3 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 13};
  dylan_value T6;
  dylan_value T7_0;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T5.vector_element_[0] = &K48;
  T5.vector_element_[1] = CREF(0);
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_closeF105I () {
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_4 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T6;
  dylan_value T7_0;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T5.vector_element_[0] = &K46;
  T5.vector_element_[1] = CREF(1);
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_closeF104I () {
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_3 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 13};
  dylan_value T6;
  dylan_value T7_0;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T5.vector_element_[0] = &K43;
  T5.vector_element_[1] = CREF(0);
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:58
  MV_SET_COUNT(1);
  return(T7_0);
}


/* SYSTEM INIT CODE */

void _Init_network__X_15Eserver_sockets_for_system () {
  extern dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJdescriptor_);
    if (T0 != &KJdescriptor_) {
      IKJdescriptor_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJprotocol_);
    if (T0 != &KJprotocol_) {
      primitive_repeated_slot_value_setter(T0, &K91, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K85, 1, 0);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJtcp_);
    if (T0 != &KJtcp_) {
      primitive_repeated_slot_value_setter(T0, &K85, 1, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJalready_unregisteredQ_);
    if (T0 != &KJalready_unregisteredQ_) {
      IKJalready_unregisteredQ_ = T0;
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_network__X_15Eserver_sockets_for_user () {
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:18
  T0 = KPadd_a_methodVKnI(&KmakeVKd, &KmakeVKdMnetworkM4, &Knetwork_libraryYdylan_userVnetwork, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I82;
}
I82:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/server-sockets.dylan:56
  T0 = KPadd_a_methodVKnI(&KcloseYcommon_extensionsVcommon_dylan, &KcloseYcommon_extensionsVcommon_dylanMnetworkM2, &Knetwork_libraryYdylan_userVnetwork, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I79;
}
I79:

  return;
}


/* eof */
