#include "run-time.h"

/* Typedefs for referenced classes */

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

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

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

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

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

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

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

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

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

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(7);
define__KLbyte_stringGVKd(33);
define__KLbyte_stringGVKd(45);
define__KLbyte_stringGVKd(31);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(15);
define__KLbyte_stringGVKd(21);
define__KLbyte_stringGVKd(17);
define__KLbyte_stringGVKd(22);
define__KLbyte_stringGVKd(29);
define__KLbyte_stringGVKd(19);
define__KLbyte_stringGVKd(10);
define__KLbyte_stringGVKd(12);

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

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

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

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

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

typedef struct {
  D wrapper;
} _KLinternet_addressGYsocketsVnetwork;

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

typedef struct {
  D wrapper;
} _KLsocket_accessorGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
} _KLintegerGVKd;

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

typedef struct {
  D wrapper;
  D handle1_;
  D synchronization_name_;
} _KLrecursive_lockGYthreadsVdylan;

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

typedef struct {
  D wrapper;
  D signature_properties_;
  D signature_required_;
} _KLobject_signatureGVKe;

typedef struct {
  D wrapper;
  D handle1_;
  D synchronization_name_;
} _KLrecursive_lock_iGYthreads_internalVdylan;

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

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

typedef struct {
  D wrapper;
} _KLstretchy_vectorGVKd;

typedef struct {
  D wrapper;
  D stretchy_representation_;
} _KLstretchy_object_vectorGVKe;

typedef struct {
  D wrapper;
  D element_type_;
  D table_vector_;
  D initial_entries_;
  D grow_size_function_;
  D weakQ_;
} _KLtableGVKd;

typedef struct {
  D wrapper;
  D element_type_;
  D table_vector_;
  D initial_entries_;
  D grow_size_function_;
  D weakQ_;
} _KLobject_tableGVKd;

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

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
} _KLsocket_errorGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D handler_type_;
  D handler_function_;
  D handler_test_;
  D handler_init_arguments_;
} _KLhandlerGVKi;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
} _KLrecoverable_socket_conditionGYsocketsVnetwork;

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

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

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D type_error_value_;
  D type_error_expected_type_;
} _KLtype_errorGVKd;

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

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLbyte_element_streamGYstreams_internalsVio;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLbyte_char_element_streamGYstreams_internalsVio;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLtyped_streamGYstreams_internalsVio;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLgeneral_typed_streamGYstreams_internalsVio;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
} _KLbuffered_streamGYstreamsVio;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
} _KLdouble_buffered_streamGYstreams_internalsVio;

typedef struct {
  D wrapper;
} _KLstreamGYcommon_extensionsVcommon_dylan;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
} _KLbasic_streamGYstreamsVio;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
} _KLexternal_streamGYstreams_internalsVio;

typedef struct {
  D wrapper;
} _KLclosable_objectGYcommon_extensionsVcommon_dylan;

#define  define__KLstandalone_domainGVKe(nrepeated) \
  typedef struct { \
    D wrapper; \
    D domain_library_; \
    D domain_next_; \
    D domain_number_required_; \
    D domain_type_[nrepeated+1]; \
  } _KLstandalone_domainGVKe_##nrepeated;
define__KLstandalone_domainGVKe(1);

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

typedef struct {
  D wrapper;
} _KLerrorGVKd;

typedef struct {
  D wrapper;
} _KLconditionGVKd;

typedef struct {
  D wrapper;
} _KLserious_conditionGVKd;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLsimple_conditionGVKe;

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

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

typedef struct {
  D wrapper;
  D handle1_;
  D handle2_;
  D priority_;
  D thread_name_;
  D function_;
  D function_results_;
} _KLthreadGYthreadsVdylan;

typedef struct {
  D wrapper;
  D socket_manager_sockets_;
  D socket_manager_threads_;
  D socket_manager_server_threads_;
  D socket_manager_lock_;
  D socket_manager_startedQ_;
  D socket_manager_closing_thread_;
} _KLstub_managerGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
} _KLsocket_accessor_errorGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
} _KLsocket_accessor_conditionGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D calling_function_;
  D calling_thread_;
  D accessor_startedQ_value_;
  D thread_that_closed_accessor_;
} _KLsocket_accessor_closed_errorGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D the_closed_socket_;
} _KLsocket_closedGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D host_address_;
  D host_port_;
} _KLaddress_in_useGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D host_address_;
  D host_port_;
} _KLconnection_closedGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D host_address_;
  D host_port_;
} _KLconnection_failedGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D host_address_;
  D host_port_;
} _KLhost_unreachableGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D host_address_;
} _KLserver_not_respondingGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
  D socket_condition_details_;
  D service_name_;
  D protocol_name_;
} _KLservice_not_foundGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D accessor_;
  D force_output_before_readQ_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLgeneral_udp_socketGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D accessor_;
  D force_output_before_readQ_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLbyte_char_udp_socketGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D accessor_;
  D force_output_before_readQ_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLbyte_udp_socketGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D accessor_;
  D force_output_before_readQ_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLbyte_tcp_socketGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D accessor_;
  D force_output_before_readQ_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLbyte_char_tcp_socketGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D accessor_;
  D force_output_before_readQ_;
  D sequence_type_;
  D to_element_mapper_;
  D from_element_mapper_;
  D to_sequence_mapper_;
  D from_sequence_mapper_;
} _KLgeneral_tcp_socketGYsockets_internalsVnetwork;

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

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


/* Typedefs for defined classes */

typedef struct {
  D wrapper;
} _KLsealed_objectGYsockets_internalsVnetwork;

typedef struct {
  D wrapper;
} _KLabstract_socketGYsocketsVnetwork;

typedef struct {
  D wrapper;
  D socket_manager_sockets_;
  D socket_manager_threads_;
  D socket_manager_server_threads_;
  D socket_manager_lock_;
} _KLsocket_managerGYsockets_internalsVnetwork;


/* Referenced object declarations */

D KPadd_classVKeI (D);
D KPadd_nonsiblinged_domainVKnI (D, D);
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLincremental_generic_functionGVKe KinitializeVKd;
D KPadd_a_methodVKnI (D, D, D, D, D, D);
extern _KLlibraryGVKe Knetwork_libraryYdylan_userVnetwork;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLincremental_generic_functionGVKe KcloseYcommon_extensionsVcommon_dylan;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLmoduleGVKe Ksockets_moduleYdylan_userVnetwork;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLincremental_generic_functionGVKe KEVKd;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLgetter_methodGVKi Klocal_hostYsocketsVnetworkMM0;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
extern _KLgetter_methodGVKi Klocal_hostYsocketsVnetworkMM1;
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
D Kunion_instanceQVKiI (D, D);
extern _KLclassGVKd KLinternet_addressGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLinternet_addressGYsocketsVnetworkW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
D Ksingleton_pointer_idQ_instanceQVKiI (D, D);
extern _KLclassGVKd KLsocket_accessorGYsockets_internalsVnetwork;
extern _KLmm_wrapperGVKi_0 KLsocket_accessorGYsockets_internalsVnetworkW;
extern _KLgetter_methodGVKi Klocal_portYsocketsVnetworkMM0;
extern _KLgetter_methodGVKi Klocal_portYsocketsVnetworkMM1;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLclassGVKd KLrecursive_lockGYthreadsVdylan;
extern _KLmm_wrapperGVKi_1 KLrecursive_lockGYthreadsVdylanW;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
D KLrecursive_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I (D, D, D);
extern _KLclassGVKd KLrecursive_lock_iGYthreads_internalVdylan;
extern _KLmm_wrapperGVKi_1 KLrecursive_lock_iGYthreads_internalVdylanW;
extern _KLfunction_classGVKi KLsimple_closure_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsimple_closure_methodGVKiW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLstretchy_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLstretchy_vectorGVKdW;
D KLstretchy_object_vectorGZ32ZconstructorVKiMM0I (D, D);
extern _KLclassGVKd KLstretchy_object_vectorGVKe;
extern _KLmm_wrapperGVKi_0 KLstretchy_object_vectorGVKeW;
extern _KLclassGVKd KLtableGVKd;
extern _KLmm_wrapperGVKi_0 KLtableGVKdW;
D KLobject_tableGZ32ZconstructorVKiMM0I (D, D, D, D, D, D);
extern _KLclassGVKd KLobject_tableGVKd;
extern _KLmm_wrapperGVKi_0 KLobject_tableGVKdW;
extern _KLsimple_methodGVKe Kdefault_grow_sizeVKe;
D Kaccessor_cleanupYsockets_internalsVnetworkI (D);
extern _KLincremental_generic_functionGVKe Kforward_iteration_protocolVKd;
extern _KLsymbolGVKd KJtype_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLclassGVKd KLsocket_errorGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLsocket_errorGYsocketsVnetworkW;
extern _KLsymbolGVKd KJfunction_;
extern _KLsymbolGVKd KJtest_;
extern _KLsymbolGVKd KJinit_arguments_;
D KLhandlerGZ32ZconstructorVKiMM0I (D, D, D, D, D, D);
extern _KLclassGVKd KLhandlerGVKi;
extern _KLmm_wrapperGVKi_0 KLhandlerGVKiW;
extern _KLclassGVKd KLrecoverable_socket_conditionGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLrecoverable_socket_conditionGYsocketsVnetworkW;
extern _KLsymbolGVKd KJabortQ_;
extern _KLsimple_methodGVKe Kjoin_threadYthreadsVdylan;
extern _KLsimple_methodGVKe Kaccessor_shutdownYsockets_internalsVnetworkMM0;
extern _KLclassGVKd KLkeyword_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureGVKeW;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLgetter_methodGVKi Ksocket_descriptorYsocketsVnetworkMM0;
extern _KLsimple_methodGVKe Ksocket_descriptorYsocketsVnetworkMM1;
extern _KLgetter_methodGVKi Ksocket_descriptorYsocketsVnetworkMM2;
extern _KLunionGVKe KLaccessor_socket_descriptorGYsockets_internalsVnetwork;
D Kremove_keyXVKdMM0I (D, D);
D KerrorVKdMM1I (D, D);
extern _KLsymbolGVKd KJwaitQ_;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLsymbolGVKd KJvalue_;
extern _KLclassGVKd KLtype_errorGVKd;
extern _KLmm_wrapperGVKi_0 KLtype_errorGVKdW;
extern _KLsealed_generic_functionGVKe KerrorVKd;
D KputhashVKiI (D, D, D);
D Kaccessor_startupYsockets_internalsVnetworkI (D);
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
D Kgeneral_rcpl_class_instanceQVKiI (D, D);
extern _KLmoduleGVKe Ksockets_internals_moduleYdylan_userVnetwork;
extern _KLclassGVKd KLbyte_element_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_element_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLbyte_char_element_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_char_element_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLtyped_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLtyped_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLgeneral_typed_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLgeneral_typed_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLbuffered_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbuffered_streamGYstreamsVioW;
extern _KLclassGVKd KLdouble_buffered_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLdouble_buffered_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLstreamGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLstreamGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLbasic_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbasic_streamGYstreamsVioW;
extern _KLclassGVKd KLexternal_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLclosable_objectGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLclosable_objectGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLstandalone_domainGVKe;
extern _KLmm_wrapperGVKi_0 KLstandalone_domainGVKeW;
extern _KLclassGVKd KLsubclassGVKe;
extern _KLmm_wrapperGVKi_0 KLsubclassGVKeW;
D Ksubclass_instanceQVKiI (D, D);
extern _KLclassGVKd KLerrorGVKd;
extern _KLmm_wrapperGVKi_0 KLerrorGVKdW;
extern _KLclassGVKd KLconditionGVKd;
extern _KLmm_wrapperGVKi_0 KLconditionGVKdW;
extern _KLclassGVKd KLserious_conditionGVKd;
extern _KLmm_wrapperGVKi_0 KLserious_conditionGVKdW;
extern _KLclassGVKd KLsimple_conditionGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_conditionGVKeW;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LclassG_typesVKi;
D Kclass_instanceQ_rcpl_single_smallVKiI (D, D);
D Kcurrent_threadYthreadsVdylanI ();
D KmemberQVKdMM3I (D, D, D, D);
extern _KLsymbolGVKd KJlock_;
extern _KLsimple_methodGVKe KEEVKd;
D Klock_wait_result_errorYthreads_internalVdylanMM0I (D, D);
extern _KLincremental_generic_functionGVKe KremoveXVKd;
D Klock_release_result_errorYthreads_internalVdylanMM0I (D, D);
extern _KLsymbolGVKd KJsynchronization_;
extern _KLclassGVKd KLtimeout_expiredGYthreadsVdylan;
extern _KLmm_wrapperGVKi_0 KLtimeout_expiredGYthreadsVdylanW;
D KsignalVKdMM0I (D, D);
extern _KLincremental_generic_functionGVKe Kadd_newXVKd;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LfunctionG_typesVKi;
extern _KLclassGVKd KLthreadGYthreadsVdylan;
extern _KLmm_wrapperGVKi_1 KLthreadGYthreadsVdylanW;
extern _KLsymbolGVKd KJthread_;
extern _KLclassGVKd KLstub_managerGYsockets_internalsVnetwork;
extern _KLclassGVKd KLsocket_accessor_errorGYsocketsVnetwork;
extern _KLclassGVKd KLsocket_accessor_conditionGYsockets_internalsVnetwork;
extern _KLclassGVKd KLsocket_accessor_closed_errorGYsockets_internalsVnetwork;
extern _KLclassGVKd KLsocket_closedGYsocketsVnetwork;
extern _KLclassGVKd KLaddress_in_useGYsocketsVnetwork;
extern _KLclassGVKd KLconnection_closedGYsocketsVnetwork;
extern _KLclassGVKd KLconnection_failedGYsocketsVnetwork;
extern _KLclassGVKd KLhost_unreachableGYsocketsVnetwork;
extern _KLclassGVKd KLserver_not_respondingGYsocketsVnetwork;
extern _KLclassGVKd KLservice_not_foundGYsocketsVnetwork;
extern _KLclassGVKd KLgeneral_udp_socketGYsockets_internalsVnetwork;
extern _KLclassGVKd KLbyte_char_udp_socketGYsockets_internalsVnetwork;
extern _KLclassGVKd KLbyte_udp_socketGYsockets_internalsVnetwork;
extern _KLclassGVKd KLbyte_tcp_socketGYsockets_internalsVnetwork;
extern _KLclassGVKd KLbyte_char_tcp_socketGYsockets_internalsVnetwork;
extern _KLclassGVKd KLgeneral_tcp_socketGYsockets_internalsVnetwork;
extern _KLclassGVKd KLserver_socketGYsocketsVnetwork;
extern _KLclassGVKd KLsocketGYsocketsVnetwork;
extern D Tcurrent_handlersTVKi;
extern D TdebuggingQTVKi;
extern D Tdebug_partsTVKi;
extern D Tdebug_out_functionTVKi;

/* Defined object declarations */

extern _KLclassGVKd KLsealed_objectGYsockets_internalsVnetwork;
extern _KLmm_wrapperGVKi_0 KLsealed_objectGYsockets_internalsVnetworkW;
extern _KLstandalone_domainGVKe_1 KmakeVKdRD_networkRD_0;
extern _KLstandalone_domainGVKe_1 KinitializeVKdRD_networkRD_0;
extern _KLclassGVKd KLabstract_socketGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLabstract_socketGYsocketsVnetworkW;
extern _KLclassGVKd KLsocket_managerGYsockets_internalsVnetwork;
extern _KLmm_wrapperGVKi_0 KLsocket_managerGYsockets_internalsVnetworkW;
extern _KLkeyword_methodGVKe KinitializeVKdMnetworkM1;
D KinitializeVKdMnetworkM1I (D, D, D);
extern _KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMnetworkM0;
D KcloseYcommon_extensionsVcommon_dylanMnetworkM0I (D, D, D, D, D, D);
D Kinstall_socket_managerYsockets_internalsVnetworkI (D);
D Kcurrent_socket_managerYsocketsVnetworkI ();
extern _KLincremental_generic_functionGVKe Ksocket_descriptorYsocketsVnetwork;
extern _KLincremental_generic_functionGVKe Kclose_socketYsocketsVnetwork;
extern _KLsimple_methodGVKe Kstop_socketsYsockets_internalsVnetwork;
D Kstop_socketsYsockets_internalsVnetworkI ();
extern _KLinstance_slot_descriptorGVKe Ksocket_manager_socketsYsockets_internalsVnetworkHLsocket_managerG;
extern _KLinstance_slot_descriptorGVKe Ksocket_manager_threadsYsockets_internalsVnetworkHLsocket_managerG;
extern _KLinstance_slot_descriptorGVKe Ksocket_manager_server_threadsYsockets_internalsVnetworkHLsocket_managerG;
extern _KLinstance_slot_descriptorGVKe Ksocket_manager_lockYsocketsVnetworkHLsocket_managerG;
extern _KLincremental_generic_functionGVKe Klocal_portYsocketsVnetwork;
extern _KLincremental_generic_functionGVKe Klocal_hostYsocketsVnetwork;
extern _KLincremental_generic_functionGVKe Ksocket_openQYsocketsVnetwork;
extern _KLsimple_methodGVKe Ksocket_openQYsocketsVnetworkMM0;
D Ksocket_openQYsocketsVnetworkMM0I (D);
static _KLpairGVKd K34;
static _KLsignatureAvaluesGVKi K35;
static _KLbyte_stringGVKd_12 K36;
static _KLsimple_object_vectorGVKd_1 K37;
static _KLpairGVKd K38;
static _KLpairGVKd K39;
static _KLsignatureAvaluesGVKi K40;
static _KLbyte_stringGVKd_10 K41;
static _KLsimple_object_vectorGVKd_1 K42;
static _KLsimple_object_vectorGVKd_1 K43;
static _KLunionGVKe K44;
static _KLsingletonGVKd K45;
static _KLunionGVKe K46;
static _KLpairGVKd K47;
static _KLpairGVKd K48;
static _KLsignatureAvaluesGVKi K49;
static _KLbyte_stringGVKd_10 K50;
static _KLsimple_object_vectorGVKd_1 K51;
static _KLunionGVKe K52;
static _KLsimple_closure_methodGVKi_0 K59;
static D K59I ();
extern _KLsealed_generic_functionGVKe Ksocket_manager_lockYsocketsVnetwork;
extern _KLgetter_methodGVKi Ksocket_manager_lockYsocketsVnetworkMM0;
static _KLpairGVKd K57;
static _KLbyte_stringGVKd_19 K58;
static _KLsignatureGVKe K60;
static _KLsimple_closure_methodGVKi_0 K67;
static D K67I ();
extern _KLsealed_generic_functionGVKe Ksocket_manager_server_threadsYsockets_internalsVnetwork;
extern _KLgetter_methodGVKi Ksocket_manager_server_threadsYsockets_internalsVnetworkMM0;
static _KLpairGVKd K65;
static _KLbyte_stringGVKd_29 K66;
static _KLsimple_closure_methodGVKi_0 K74;
static D K74I ();
extern _KLsealed_generic_functionGVKe Ksocket_manager_threadsYsockets_internalsVnetwork;
extern _KLgetter_methodGVKi Ksocket_manager_threadsYsockets_internalsVnetworkMM0;
static _KLpairGVKd K72;
static _KLbyte_stringGVKd_22 K73;
static _KLsimple_closure_methodGVKi_0 K81;
static D K81I ();
extern _KLsealed_generic_functionGVKe Ksocket_manager_socketsYsockets_internalsVnetwork;
extern _KLgetter_methodGVKi Ksocket_manager_socketsYsockets_internalsVnetworkMM0;
static _KLpairGVKd K79;
static _KLbyte_stringGVKd_22 K80;
D Kclose_socketsYsockets_internalsVnetworkMM0I (D);
D Kshutdown_all_socketsYsockets_internalsVnetworkMM0I (D);
D Kwait_for_socket_threadsYsockets_internalsVnetworkMM0I (D, D, D);
D Kclose_all_socketsYsockets_internalsVnetworkMM0I (D);
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF93;
static D KUhandler_functionUF93I (D, D);
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF90;
static D KUhandler_functionUF90I (D, D);
static _KLsignatureGVKe K91;
static _KLsimple_object_vectorGVKd_2 K92;
static _KLsignatureGVKe K94;
static _KLsimple_object_vectorGVKd_2 K95;
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF104;
static D KUhandler_functionUF104I (D, D);
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF103;
static D KUhandler_functionUF103I (D, D);
extern _KLsimple_methodGVKe Kshutdown_socketYsockets_internalsVnetworkMM0;
D Kshutdown_socketYsockets_internalsVnetworkMM0I (D);
static _KLsignatureGVKe K102;
static _KLsignatureGVKe K105;
extern _KLkeyword_methodGVKe Kclose_socketYsocketsVnetworkMM0;
D Kclose_socketYsocketsVnetworkMM0I (D, D);
static _KLpairGVKd K108;
static _KLkeyword_signatureGVKe K109;
static _KLbyte_stringGVKd_12 K110;
static _KLpairGVKd K111;
static _KLpairGVKd K112;
static _KLpairGVKd K113;
static _KLsignatureAvaluesGVKi K114;
static _KLbyte_stringGVKd_17 K115;
static _KLsimple_object_vectorGVKd_1 K116;
static _KLunionGVKe K117;
static _KLunionGVKe K118;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF123;
static D Kanonymous_of_closeF123I (D);
static _KLsymbolGVKd KJalready_unregisteredQ_;
static _KLbyte_stringGVKd_21 K122;
static _KLbyte_stringGVKd_15 K124;
static _KLsignatureGVKe K125;
static _KLkeyword_signatureGVKe K126;
static _KLsimple_object_vectorGVKd_8 K127;
static _KLsymbolGVKd KJsynchronizeQ_;
static _KLbyte_stringGVKd_12 K129;
static _KLsimple_object_vectorGVKd_4 K130;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_initializeF135;
static D Kanonymous_of_initializeF135I (D);
static _KLsymbolGVKd KJalready_registeredQ_;
static _KLbyte_stringGVKd_19 K134;
static _KLkeyword_signatureGVKe K136;
static _KLsimple_object_vectorGVKd_2 K137;
static _KLsimple_object_vectorGVKd_1 K138;
extern _KLsimple_methodGVKe Kstart_socketsYsocketsVnetwork;
D Kstart_socketsYsocketsVnetworkI ();
D Kopen_socketsYsockets_internalsVnetworkMM0I (D);
extern _KLsimple_methodGVKe Kcurrent_socket_managerYsocketsVnetwork;
static _KLsignatureAvaluesGVKi K143;
static _KLsimple_object_vectorGVKd_1 K144;
static _KLimplementation_classGVKe K145;
static _KLsimple_object_vectorGVKd_4 K146;
static _KLsimple_object_vectorGVKd_1 K147;
static _KLsimple_object_vectorGVKd_6 K148;
static _KLsimple_object_vectorGVKd_1 K149;
static _KLsimple_object_vectorGVKd_1 K150;
static _KLbyte_stringGVKd_16 K151;
static _KLimplementation_classGVKe K152;
static _KLsimple_object_vectorGVKd_1 K153;
static _KLsimple_object_vectorGVKd_6 K154;
static _KLsimple_object_vectorGVKd_3 K155;
static _KLsimple_object_vectorGVKd_10 K156;
static _KLbyte_stringGVKd_17 K157;
static _KLsubclassGVKe K158;
static _KLimplementation_classGVKe K159;
extern _KLkeyword_methodGVKe KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0;
D KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0I (D, D);
static _KLsimple_object_vectorGVKd_6 K162;
static _KLsimple_object_vectorGVKd_14 K163;
static _KLkeyword_signatureAvaluesGVKi K164;
static _KLbyte_stringGVKd_15 K165;
extern _KLkeyword_methodGVKe Kinvoke_with_socket_threadYsocketsVnetworkMM0;
D Kinvoke_with_socket_threadYsocketsVnetworkMM0I (D, D, D);
D Kregister_socket_manager_threadYsockets_internalsVnetworkMM0I (D, D, D, D);
D Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0I (D, D, D, D);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF181;
static D Kanonymous_of_unregister_socket_manager_threadF181I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF179;
static D Kanonymous_of_unregister_socket_manager_threadF179I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF176;
static D Kanonymous_of_unregister_socket_manager_threadF176I ();
static _KLbyte_stringGVKd_31 K177;
static _KLsignatureGVKe K178;
static _KLbyte_stringGVKd_45 K180;
static _KLbyte_stringGVKd_33 K182;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF191;
static D Kanonymous_of_register_socket_manager_threadF191I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF190;
static D Kanonymous_of_register_socket_manager_threadF190I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF189;
static D Kanonymous_of_register_socket_manager_threadF189I ();
static _KLkeyword_signatureGVKe K192;
static _KLsimple_object_vectorGVKd_2 K193;
static _KLsymbolGVKd KJserverQ_;
static _KLbyte_stringGVKd_7 K195;
static _KLsimple_object_vectorGVKd_1 K196;
extern _KLkeyword_methodGVKe Kregister_socket_threadYsocketsVnetworkMM0;
D Kregister_socket_threadYsocketsVnetworkMM0I (D, D, D);
extern _KLkeyword_methodGVKe Kregister_socket_manager_threadYsockets_internalsVnetworkMM0;
static _KLkeyword_signatureGVKe K200;
static _KLsimple_object_vectorGVKd_2 K201;
static _KLkeyword_signatureGVKe K202;
static _KLsimple_object_vectorGVKd_4 K203;
static _KLsimple_object_vectorGVKd_2 K204;
static _KLsimple_object_vectorGVKd_2 K205;
extern _KLkeyword_methodGVKe Kunregister_socket_threadYsocketsVnetworkMM0;
D Kunregister_socket_threadYsocketsVnetworkMM0I (D, D, D);
extern _KLkeyword_methodGVKe Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0;
static _KLpairGVKd K209;
static _KLpairGVKd K210;
static _KLpairGVKd K211;
static _KLpairGVKd K212;
static _KLpairGVKd K213;
static _KLpairGVKd K214;
static _KLpairGVKd K215;
static _KLpairGVKd K216;
static _KLpairGVKd K217;
static _KLpairGVKd K218;
static _KLpairGVKd K219;
static _KLpairGVKd K220;
static _KLpairGVKd K221;
static _KLpairGVKd K222;
static _KLpairGVKd K223;
static _KLpairGVKd K224;
static _KLpairGVKd K225;
static _KLpairGVKd K226;
static _KLpairGVKd K227;
static _KLpairGVKd K228;

/* Indirection variables */

static D IKJalready_unregisteredQ_ = &KJalready_unregisteredQ_;
static D IKJsynchronizeQ_ = &KJsynchronizeQ_;
static D IKJalready_registeredQ_ = &KJalready_registeredQ_;
static D IKJserverQ_ = &KJserverQ_;

/* Variables */

D unregister_socket_threadYsocketsVnetwork = &Kunregister_socket_threadYsocketsVnetworkMM0;
D register_socket_threadYsocketsVnetwork = &Kregister_socket_threadYsocketsVnetworkMM0;
D invoke_with_socket_threadYsocketsVnetwork = &Kinvoke_with_socket_threadYsocketsVnetworkMM0;
D socket_manager_lockYsocketsVnetwork = &Ksocket_manager_lockYsocketsVnetwork;
D Lsealed_objectGYsockets_internalsVnetwork = &KLsealed_objectGYsockets_internalsVnetwork;
D Labstract_socketGYsocketsVnetwork = &KLabstract_socketGYsocketsVnetwork;
D local_hostYsocketsVnetwork = &Klocal_hostYsocketsVnetwork;
D local_portYsocketsVnetwork = &Klocal_portYsocketsVnetwork;
D socket_descriptorYsocketsVnetwork = &Ksocket_descriptorYsocketsVnetwork;
D Lsocket_managerGYsockets_internalsVnetwork = &KLsocket_managerGYsockets_internalsVnetwork;
D current_socket_managerYsocketsVnetwork = &Kcurrent_socket_managerYsocketsVnetwork;
D stop_socketsYsockets_internalsVnetwork = &Kstop_socketsYsockets_internalsVnetwork;
D start_socketsYsocketsVnetwork = &Kstart_socketsYsocketsVnetwork;
D close_socketYsocketsVnetwork = &Kclose_socketYsocketsVnetwork;
D socket_openQYsocketsVnetwork = &Ksocket_openQYsocketsVnetwork;
D Tcurrent_socket_managerTYsockets_internalsVnetwork = &KPfalseVKi;

/* Objects */

_KLclassGVKd KLsealed_objectGYsockets_internalsVnetwork = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K165,
  &K159,
  (D) 1,
  &Ksockets_internals_moduleYdylan_userVnetwork
};

_KLmm_wrapperGVKi_0 KLsealed_objectGYsockets_internalsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K159,
  (D) 1,
  1,
  33554439,
  (D) 1
};

_KLstandalone_domainGVKe_1 KmakeVKdRD_networkRD_0 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Knetwork_libraryYdylan_userVnetwork,
  &KPfalseVKi,
  (D) 5,
  &K158
};

_KLstandalone_domainGVKe_1 KinitializeVKdRD_networkRD_0 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Knetwork_libraryYdylan_userVnetwork,
  &KPfalseVKi,
  (D) 5,
  &KLsealed_objectGYsockets_internalsVnetwork
};

_KLclassGVKd KLabstract_socketGYsocketsVnetwork = {
  &KLclassGVKdW /* wrapper */,
  &Kgeneral_rcpl_class_instanceQVKiI,
  &K157,
  &K152,
  (D) 1,
  &Ksockets_moduleYdylan_userVnetwork
};

_KLmm_wrapperGVKi_0 KLabstract_socketGYsocketsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K152,
  (D) 1,
  1,
  33554439,
  (D) 1
};

_KLclassGVKd KLsocket_managerGYsockets_internalsVnetwork = {
  &KLclassGVKdW /* wrapper */,
  &Kgeneral_rcpl_class_instanceQVKiI,
  &K151,
  &K145,
  (D) 1,
  &Ksockets_internals_moduleYdylan_userVnetwork
};

_KLmm_wrapperGVKi_0 KLsocket_managerGYsockets_internalsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K145,
  (D) 1,
  17,
  33554439,
  (D) 1
};

_KLkeyword_methodGVKe KinitializeVKdMnetworkM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K136,
  &key_mep_3,
  &KinitializeVKdMnetworkM1I,
  &K137
};

_KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMnetworkM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_6,
  &K126,
  &key_mep_6,
  &KcloseYcommon_extensionsVcommon_dylanMnetworkM0I,
  &K127
};

_KLincremental_generic_functionGVKe Ksocket_descriptorYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K114,
  (D) 1,
  &K115,
  &K111,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 25
};

_KLincremental_generic_functionGVKe Kclose_socketYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_optional_xep_1,
  &K109,
  (D) 1,
  &K110,
  &K108,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 25
};

_KLsimple_methodGVKe Kstop_socketsYsockets_internalsVnetwork = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_0,
  &K105,
  &Kstop_socketsYsockets_internalsVnetworkI
};

_KLinstance_slot_descriptorGVKe Ksocket_manager_socketsYsockets_internalsVnetworkHLsocket_managerG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 149,
  &K81,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &Ksocket_manager_socketsYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KLtableGVKd
};

_KLinstance_slot_descriptorGVKe Ksocket_manager_threadsYsockets_internalsVnetworkHLsocket_managerG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 149,
  &K74,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &Ksocket_manager_threadsYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KLstretchy_vectorGVKd
};

_KLinstance_slot_descriptorGVKe Ksocket_manager_server_threadsYsockets_internalsVnetworkHLsocket_managerG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 149,
  &K67,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &Ksocket_manager_server_threadsYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KLstretchy_vectorGVKd
};

_KLinstance_slot_descriptorGVKe Ksocket_manager_lockYsocketsVnetworkHLsocket_managerG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 149,
  &K59,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &Ksocket_manager_lockYsocketsVnetwork,
  &KPfalseVKi,
  &KLrecursive_lockGYthreadsVdylan
};

_KLincremental_generic_functionGVKe Klocal_portYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K49,
  (D) 1,
  &K50,
  &K47,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 25
};

_KLincremental_generic_functionGVKe Klocal_hostYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K40,
  (D) 1,
  &K41,
  &K38,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 25
};

_KLincremental_generic_functionGVKe Ksocket_openQYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K35,
  (D) 1,
  &K36,
  &K34,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 25
};

_KLsimple_methodGVKe Ksocket_openQYsocketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K35,
  &Ksocket_openQYsocketsVnetworkMM0I
};

static _KLpairGVKd K34 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_openQYsocketsVnetworkMM0,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K35 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K37,
  &KDsignature_LbooleanG_typesVKi
};

static _KLbyte_stringGVKd_12 K36 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 49,
  "socket-open?"
};

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

static _KLpairGVKd K38 = {
  &KLpairGVKdW /* wrapper */,
  &Klocal_hostYsocketsVnetworkMM0,
  &K39
};

static _KLpairGVKd K39 = {
  &KLpairGVKdW /* wrapper */,
  &Klocal_hostYsocketsVnetworkMM1,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K40 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K42,
  &K43
};

static _KLbyte_stringGVKd_10 K41 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 41,
  "local-host"
};

static _KLsimple_object_vectorGVKd_1 K42 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &K46
};

static _KLsimple_object_vectorGVKd_1 K43 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &K44
};

static _KLunionGVKe K44 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K45,
  &KLinternet_addressGYsocketsVnetwork
};

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

static _KLunionGVKe K46 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &KLabstract_socketGYsocketsVnetwork,
  &KLsocket_accessorGYsockets_internalsVnetwork
};

static _KLpairGVKd K47 = {
  &KLpairGVKdW /* wrapper */,
  &Klocal_portYsocketsVnetworkMM0,
  &K48
};

static _KLpairGVKd K48 = {
  &KLpairGVKdW /* wrapper */,
  &Klocal_portYsocketsVnetworkMM1,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K49 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K42,
  &K51
};

static _KLbyte_stringGVKd_10 K50 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 41,
  "local-port"
};

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

static _KLunionGVKe K52 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K45,
  &KLintegerGVKd
};

static _KLsimple_closure_methodGVKi_0 K59 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K59I,
  (D) 1
};

_KLsealed_generic_functionGVKe Ksocket_manager_lockYsocketsVnetwork = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K58,
  &K57,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Ksocket_manager_lockYsocketsVnetworkMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksocket_manager_lockYsocketsVnetworkHLsocket_managerG
};

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

static _KLbyte_stringGVKd_19 K58 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 77,
  "socket-manager-lock"
};

static _KLsignatureGVKe K60 = {
  &KLsignatureGVKeW /* wrapper */,
  (D) 41944065,
  &KPempty_vectorVKi
};

static _KLsimple_closure_methodGVKi_0 K67 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K67I,
  (D) 1
};

_KLsealed_generic_functionGVKe Ksocket_manager_server_threadsYsockets_internalsVnetwork = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K66,
  &K65,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Ksocket_manager_server_threadsYsockets_internalsVnetworkMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksocket_manager_server_threadsYsockets_internalsVnetworkHLsocket_managerG
};

static _KLpairGVKd K65 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_manager_server_threadsYsockets_internalsVnetworkMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_29 K66 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 117,
  "socket-manager-server-threads"
};

static _KLsimple_closure_methodGVKi_0 K74 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K74I,
  (D) 1
};

_KLsealed_generic_functionGVKe Ksocket_manager_threadsYsockets_internalsVnetwork = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K73,
  &K72,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Ksocket_manager_threadsYsockets_internalsVnetworkMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksocket_manager_threadsYsockets_internalsVnetworkHLsocket_managerG
};

static _KLpairGVKd K72 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_manager_threadsYsockets_internalsVnetworkMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_22 K73 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 89,
  "socket-manager-threads"
};

static _KLsimple_closure_methodGVKi_0 K81 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K81I,
  (D) 1
};

_KLsealed_generic_functionGVKe Ksocket_manager_socketsYsockets_internalsVnetwork = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K80,
  &K79,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Ksocket_manager_socketsYsockets_internalsVnetworkMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksocket_manager_socketsYsockets_internalsVnetworkHLsocket_managerG
};

static _KLpairGVKd K79 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_manager_socketsYsockets_internalsVnetworkMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_22 K80 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 89,
  "socket-manager-sockets"
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF93 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K94,
  &KUhandler_functionUF93I,
  (D) 1
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF90 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K91,
  &KUhandler_functionUF90I,
  (D) 1
};

static _KLsignatureGVKe K91 = {
  &KLsignatureGVKeW /* wrapper */,
  (D) 44040201,
  &K92
};

static _KLsimple_object_vectorGVKd_2 K92 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KLrecoverable_socket_conditionGYsocketsVnetwork,
  &KLobjectGVKd
};

static _KLsignatureGVKe K94 = {
  &KLsignatureGVKeW /* wrapper */,
  (D) 44040201,
  &K95
};

static _KLsimple_object_vectorGVKd_2 K95 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KLsocket_errorGYsocketsVnetwork,
  &KLobjectGVKd
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF104 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K94,
  &KUhandler_functionUF104I,
  (D) 1
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF103 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K91,
  &KUhandler_functionUF103I,
  (D) 1
};

_KLsimple_methodGVKe Kshutdown_socketYsockets_internalsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K102,
  &Kshutdown_socketYsockets_internalsVnetworkMM0I
};

static _KLsignatureGVKe K102 = {
  &KLsignatureGVKeW /* wrapper */,
  (D) 44040197,
  &K37
};

static _KLsignatureGVKe K105 = {
  &KLsignatureGVKeW /* wrapper */,
  (D) 41943041,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe Kclose_socketYsocketsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K109,
  &key_mep_2,
  &Kclose_socketYsocketsVnetworkMM0I,
  &KPempty_vectorVKi
};

static _KLpairGVKd K108 = {
  &KLpairGVKdW /* wrapper */,
  &Kclose_socketYsocketsVnetworkMM0,
  &KPempty_listVKi
};

static _KLkeyword_signatureGVKe K109 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (D) 43253765,
  &K37,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLbyte_stringGVKd_12 K110 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 49,
  "close-socket"
};

static _KLpairGVKd K111 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_descriptorYsocketsVnetworkMM0,
  &K112
};

static _KLpairGVKd K112 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_descriptorYsocketsVnetworkMM1,
  &K113
};

static _KLpairGVKd K113 = {
  &KLpairGVKdW /* wrapper */,
  &Ksocket_descriptorYsocketsVnetworkMM2,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K114 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K42,
  &K116
};

static _KLbyte_stringGVKd_17 K115 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 69,
  "socket-descriptor"
};

static _KLsimple_object_vectorGVKd_1 K116 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &K117
};

static _KLunionGVKe K117 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K45,
  &KLaccessor_socket_descriptorGYsockets_internalsVnetwork
};

static _KLunionGVKe K118 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K45,
  &KLsocket_managerGYsockets_internalsVnetwork
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_closeF123 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &rest_xep_0,
  &K125,
  &Kanonymous_of_closeF123I,
  (D) 1
};

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

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

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

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

static _KLkeyword_signatureGVKe K126 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (D) 47448069,
  &K37,
  &K130,
  &KDsignature_LobjectG_typesVKi
};

static _KLsimple_object_vectorGVKd_8 K127 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 33,
  &KJabortQ_,
  &KPfalseVKi,
  &KJwaitQ_,
  &KPtrueVKi,
  &KJsynchronizeQ_,
  &KPfalseVKi,
  &KJalready_unregisteredQ_,
  &KPfalseVKi
};

static _KLsymbolGVKd KJsynchronizeQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K129
};

static _KLbyte_stringGVKd_12 K129 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 49,
  "synchronize?"
};

static _KLsimple_object_vectorGVKd_4 K130 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 17,
  &KJabortQ_,
  &KJwaitQ_,
  &KJsynchronizeQ_,
  &KJalready_unregisteredQ_
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_initializeF135 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &rest_xep_0,
  &K125,
  &Kanonymous_of_initializeF135I,
  (D) 1
};

static _KLsymbolGVKd KJalready_registeredQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K134
};

static _KLbyte_stringGVKd_19 K134 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 77,
  "already-registered?"
};

static _KLkeyword_signatureGVKe K136 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (D) 47448069,
  &K37,
  &K138,
  &KDsignature_LobjectG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K137 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KJalready_registeredQ_,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_1 K138 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KJalready_registeredQ_
};

_KLsimple_methodGVKe Kstart_socketsYsocketsVnetwork = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_0,
  &K105,
  &Kstart_socketsYsocketsVnetworkI
};

_KLsimple_methodGVKe Kcurrent_socket_managerYsocketsVnetwork = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_0,
  &K143,
  &Kcurrent_socket_managerYsocketsVnetworkI
};

static _KLsignatureAvaluesGVKi K143 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555457,
  &KPempty_vectorVKi,
  &K144
};

static _KLsimple_object_vectorGVKd_1 K144 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLsocket_managerGYsockets_internalsVnetwork
};

static _KLimplementation_classGVKe K145 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 460587025,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KLsocket_managerGYsockets_internalsVnetworkW,
  &KPfalseVKi,
  &K146,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K147,
  &K148,
  (D) 5,
  &K149,
  &K150,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K228,
  &KPempty_vectorVKi,
  &K146,
  &K146,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_4 K146 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 17,
  &Ksocket_manager_socketsYsockets_internalsVnetworkHLsocket_managerG,
  &Ksocket_manager_threadsYsockets_internalsVnetworkHLsocket_managerG,
  &Ksocket_manager_server_threadsYsockets_internalsVnetworkHLsocket_managerG,
  &Ksocket_manager_lockYsocketsVnetworkHLsocket_managerG
};

static _KLsimple_object_vectorGVKd_1 K147 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLobjectGVKd
};

static _KLsimple_object_vectorGVKd_6 K148 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_1 K149 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  (D) 9
};

static _KLsimple_object_vectorGVKd_1 K150 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLsealed_objectGYsockets_internalsVnetwork
};

static _KLbyte_stringGVKd_16 K151 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 65,
  "<socket-manager>"
};

static _KLimplementation_classGVKe K152 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 308543489,
  &KLabstract_socketGYsocketsVnetwork,
  &KLabstract_socketGYsocketsVnetworkW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K153,
  &K154,
  (D) 9,
  &K155,
  &K156,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K226,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_1 K153 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan
};

static _KLsimple_object_vectorGVKd_6 K154 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLabstract_socketGYsocketsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_3 K155 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 13,
  (D) 21,
  (D) 29,
  (D) 41
};

static _KLsimple_object_vectorGVKd_10 K156 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 41,
  &KLbyte_element_streamGYstreams_internalsVio,
  &KLbyte_char_element_streamGYstreams_internalsVio,
  &KLsealed_objectGYsockets_internalsVnetwork,
  &KLtyped_streamGYstreams_internalsVio,
  &KLgeneral_typed_streamGYstreams_internalsVio,
  &KLbuffered_streamGYstreamsVio,
  &KLdouble_buffered_streamGYstreams_internalsVio,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLbasic_streamGYstreamsVio,
  &KLexternal_streamGYstreams_internalsVio
};

static _KLbyte_stringGVKd_17 K157 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 69,
  "<abstract-socket>"
};

static _KLsubclassGVKe K158 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLsealed_objectGYsockets_internalsVnetwork
};

static _KLimplementation_classGVKe K159 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 477102081,
  &KLsealed_objectGYsockets_internalsVnetwork,
  &KLsealed_objectGYsockets_internalsVnetworkW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) -3,
  &KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0,
  &K147,
  &K162,
  (D) 5,
  &KPempty_vectorVKi,
  &K163,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K209,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K164,
  &key_mep_2,
  &KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0I,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_6 K162 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLsealed_objectGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_14 K163 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 57,
  &KLbyte_element_streamGYstreams_internalsVio,
  &KLbyte_char_element_streamGYstreams_internalsVio,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLbasic_streamGYstreamsVio,
  &KLtyped_streamGYstreams_internalsVio,
  &KLgeneral_typed_streamGYstreams_internalsVio,
  &KLbuffered_streamGYstreamsVio,
  &KLdouble_buffered_streamGYstreams_internalsVio,
  &KLexternal_streamGYstreams_internalsVio,
  &KLerrorGVKd,
  &KLconditionGVKd,
  &KLserious_conditionGVKd,
  &KLsimple_conditionGVKe
};

static _KLkeyword_signatureAvaluesGVKi K164 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (D) 35390469,
  &KDsignature_LclassG_typesVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K150
};

static _KLbyte_stringGVKd_15 K165 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 61,
  "<sealed-object>"
};

_KLkeyword_methodGVKe Kinvoke_with_socket_threadYsocketsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K192,
  &key_mep_3,
  &Kinvoke_with_socket_threadYsocketsVnetworkMM0I,
  &K193
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF181 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K178,
  &Kanonymous_of_unregister_socket_manager_threadF181I,
  (D) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF179 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K178,
  &Kanonymous_of_unregister_socket_manager_threadF179I,
  (D) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF176 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K178,
  &Kanonymous_of_unregister_socket_manager_threadF176I,
  (D) 1
};

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

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

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

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

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF191 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K178,
  &Kanonymous_of_register_socket_manager_threadF191I,
  (D) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF190 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K178,
  &Kanonymous_of_register_socket_manager_threadF190I,
  (D) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF189 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K178,
  &Kanonymous_of_register_socket_manager_threadF189I,
  (D) 1
};

static _KLkeyword_signatureGVKe K192 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (D) 42205189,
  &KDsignature_LfunctionG_typesVKi,
  &K196,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K193 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KJserverQ_,
  &KPfalseVKi
};

static _KLsymbolGVKd KJserverQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K195
};

static _KLbyte_stringGVKd_7 K195 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 29,
  "server?"
};

static _KLsimple_object_vectorGVKd_1 K196 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KJserverQ_
};

_KLkeyword_methodGVKe Kregister_socket_threadYsocketsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K202,
  &key_mep_3,
  &Kregister_socket_threadYsocketsVnetworkMM0I,
  &K203
};

_KLkeyword_methodGVKe Kregister_socket_manager_threadYsockets_internalsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K200,
  &key_mep_4,
  &Kregister_socket_manager_threadYsockets_internalsVnetworkMM0I,
  &K193
};

static _KLkeyword_signatureGVKe K200 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (D) 42205193,
  &K201,
  &K196,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K201 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KLthreadGYthreadsVdylan
};

static _KLkeyword_signatureGVKe K202 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (D) 44302337,
  &KPempty_vectorVKi,
  &K204,
  &K205
};

static _KLsimple_object_vectorGVKd_4 K203 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 17,
  &KJthread_,
  &KPunboundVKi,
  &KJserverQ_,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_2 K204 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KJthread_,
  &KJserverQ_
};

static _KLsimple_object_vectorGVKd_2 K205 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KLobjectGVKd,
  &KLbooleanGVKd
};

_KLkeyword_methodGVKe Kunregister_socket_threadYsocketsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K202,
  &key_mep_3,
  &Kunregister_socket_threadYsocketsVnetworkMM0I,
  &K203
};

_KLkeyword_methodGVKe Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K200,
  &key_mep_4,
  &Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0I,
  &K193
};

static _KLpairGVKd K209 = {
  &KLpairGVKdW /* wrapper */,
  &KLstub_managerGYsockets_internalsVnetwork,
  &K210
};

static _KLpairGVKd K210 = {
  &KLpairGVKdW /* wrapper */,
  &KLsocket_accessor_errorGYsocketsVnetwork,
  &K211
};

static _KLpairGVKd K211 = {
  &KLpairGVKdW /* wrapper */,
  &KLsocket_accessor_conditionGYsockets_internalsVnetwork,
  &K212
};

static _KLpairGVKd K212 = {
  &KLpairGVKdW /* wrapper */,
  &KLsocket_accessor_closed_errorGYsockets_internalsVnetwork,
  &K213
};

static _KLpairGVKd K213 = {
  &KLpairGVKdW /* wrapper */,
  &KLsocket_closedGYsocketsVnetwork,
  &K214
};

static _KLpairGVKd K214 = {
  &KLpairGVKdW /* wrapper */,
  &KLaddress_in_useGYsocketsVnetwork,
  &K215
};

static _KLpairGVKd K215 = {
  &KLpairGVKdW /* wrapper */,
  &KLconnection_closedGYsocketsVnetwork,
  &K216
};

static _KLpairGVKd K216 = {
  &KLpairGVKdW /* wrapper */,
  &KLconnection_failedGYsocketsVnetwork,
  &K217
};

static _KLpairGVKd K217 = {
  &KLpairGVKdW /* wrapper */,
  &KLhost_unreachableGYsocketsVnetwork,
  &K218
};

static _KLpairGVKd K218 = {
  &KLpairGVKdW /* wrapper */,
  &KLserver_not_respondingGYsocketsVnetwork,
  &K219
};

static _KLpairGVKd K219 = {
  &KLpairGVKdW /* wrapper */,
  &KLservice_not_foundGYsocketsVnetwork,
  &K220
};

static _KLpairGVKd K220 = {
  &KLpairGVKdW /* wrapper */,
  &KLgeneral_udp_socketGYsockets_internalsVnetwork,
  &K221
};

static _KLpairGVKd K221 = {
  &KLpairGVKdW /* wrapper */,
  &KLbyte_char_udp_socketGYsockets_internalsVnetwork,
  &K222
};

static _KLpairGVKd K222 = {
  &KLpairGVKdW /* wrapper */,
  &KLbyte_udp_socketGYsockets_internalsVnetwork,
  &K223
};

static _KLpairGVKd K223 = {
  &KLpairGVKdW /* wrapper */,
  &KLbyte_tcp_socketGYsockets_internalsVnetwork,
  &K224
};

static _KLpairGVKd K224 = {
  &KLpairGVKdW /* wrapper */,
  &KLbyte_char_tcp_socketGYsockets_internalsVnetwork,
  &K225
};

static _KLpairGVKd K225 = {
  &KLpairGVKdW /* wrapper */,
  &KLgeneral_tcp_socketGYsockets_internalsVnetwork,
  &KPempty_listVKi
};

static _KLpairGVKd K226 = {
  &KLpairGVKdW /* wrapper */,
  &KLserver_socketGYsocketsVnetwork,
  &K227
};

static _KLpairGVKd K227 = {
  &KLpairGVKdW /* wrapper */,
  &KLsocketGYsocketsVnetwork,
  &KPempty_listVKi
};

static _KLpairGVKd K228 = {
  &KLpairGVKdW /* wrapper */,
  &KLstub_managerGYsockets_internalsVnetwork,
  &KPempty_listVKi
};

/* Code */

D KinitializeVKdMnetworkM1I (D the_socket_, D keys_, D already_registeredQ_) {
  D manager_;
  D T5;
  D T6;
  D T7;
  D T8;
  D T9;
  D T10;
  D T11;
  D T12;
  D T13;
  _KLsimple_object_vectorGVKd_4 T14 = {&KLsimple_object_vectorGVKdW, (D) 17};
  D T15;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:178
  T10 = primitive_copy_vector(keys_);
  T8 = primitive_next_methods_parameter();
  T9 = MAKE_CLOSURE_INITD(&Kanonymous_of_initializeF135, 3, T10, T8, the_socket_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:181
  APPLY4(T9, the_socket_, IKJalready_registeredQ_, &KPtrueVKi, T10);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:183
  if (already_registeredQ_ != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:183
    T6 = &KPfalseVKi;
    T7 = T6;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:184
    manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T11 = SLOT_VALUE_INITD(manager_, 0);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T12 = SLOT_VALUE_INITD(T11, 0);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T13 = primitive_instanceQ(the_socket_,T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    if (T13 == &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
      T14.vector_element_[0] = &KJvalue_;
      T14.vector_element_[1] = the_socket_;
      T14.vector_element_[2] = &KJtype_;
      T14.vector_element_[3] = T12;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T15 = CONGRUENT_CALL2(&KLtype_errorGVKd, &T14);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
      CONGRUENT_CALL_PROLOG(&KerrorVKd, 2);
      CONGRUENT_CALL2(T15, &KPempty_vectorVKi);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    KputhashVKiI(the_socket_, T11, the_socket_);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T5 = &KPfalseVKi;
    T7 = T5;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:183
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:178
  MV_SET_COUNT(0);
  return(T7);
}

D KcloseYcommon_extensionsVcommon_dylanMnetworkM0I (D the_socket_, D keys_, D abortQ_, D waitQ_, D synchronizeQ_, D already_unregisteredQ_) {
  D T7;
  D manager_;
  D T9;
  D T10;
  D T11;
  D T12;
  D T13;
  D T14;
  D T15;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:189
  T13 = primitive_copy_vector(keys_);
  T11 = primitive_next_methods_parameter();
  T12 = MAKE_CLOSURE_INITD(&Kanonymous_of_closeF123, 3, T13, T11, the_socket_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
  CONGRUENT_CALL_PROLOG(&Ksocket_openQYsocketsVnetwork, 1);
  T7 = CONGRUENT_CALL1(the_socket_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
  if (T7 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:195
    if (already_unregisteredQ_ == &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:196
      manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:197
      T14 = SLOT_VALUE_INITD(manager_, 0);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:197
      Kremove_keyXVKdMM0I(T14, the_socket_);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:195
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:199
    T15 = APPLY4(T12, the_socket_, IKJalready_unregisteredQ_, &KPtrueVKi, T13);
    T10 = T15;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
    T9 = &KPfalseVKi;
    T10 = T9;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:189
  MV_SET_COUNT(0);
  return(T10);
}

D Kinstall_socket_managerYsockets_internalsVnetworkI (D manager_) {
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:56
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:58
  Tcurrent_socket_managerTYsockets_internalsVnetwork = manager_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:58
  T2 = &KPfalseVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:56
  MV_SET_COUNT(0);
  return(T2);
}

D Kcurrent_socket_managerYsocketsVnetworkI () {
  D T0;
  D T1_0;
  D T2_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:51
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:53
  T0 = Tcurrent_socket_managerTYsockets_internalsVnetwork;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:53
  T1_0 = T0;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:51
  T2_0 = T1_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T1_0);
    primitive_type_check(T2_0, &KLsocket_managerGYsockets_internalsVnetwork);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:51
  MV_SET_COUNT(1);
  return(T2_0);
}

D Kstop_socketsYsockets_internalsVnetworkI () {
  D manager_;
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:61
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:62
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:63
  T2 = Kclose_socketsYsockets_internalsVnetworkMM0I(manager_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:61
  MV_SET_COUNT(0);
  return(T2);
}

D Ksocket_openQYsocketsVnetworkMM0I (D the_socket_) {
  D T2;
  D T3;
  D T4;
  D T5_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:221
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:223
  CONGRUENT_CALL_PROLOG(&Ksocket_descriptorYsocketsVnetwork, 1);
  T2 = CONGRUENT_CALL1(the_socket_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:223
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  T3 = CONGRUENT_CALL2(T2, &KPfalseVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:223
  T4 = primitive_not(T3);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:223
  T5_0 = T4;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:221
  MV_SET_COUNT(1);
  return(T5_0);
}

static D K59I () {
  D T0_0;
  D T1;
  D T2_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:42
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:42
  T2_0 = KLrecursive_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I(&KLrecursive_lock_iGYthreads_internalVdylan, &KPempty_vectorVKi, &KPfalseVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:42
  T1 = T2_0;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:42
  T0_0 = T1;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:42
  MV_SET_COUNT(1);
  return(T0_0);
}

static D K67I () {
  D T0_0;
  D T1_0;
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:41
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:41
  T1_0 = KLstretchy_object_vectorGZ32ZconstructorVKiMM0I(&KLstretchy_object_vectorGVKe, &KPempty_vectorVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:41
  T2 = T1_0;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:41
  T0_0 = T2;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:41
  MV_SET_COUNT(1);
  return(T0_0);
}

static D K74I () {
  D T0_0;
  D T1_0;
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:40
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:40
  T1_0 = KLstretchy_object_vectorGZ32ZconstructorVKiMM0I(&KLstretchy_object_vectorGVKe, &KPempty_vectorVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:40
  T2 = T1_0;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:40
  T0_0 = T2;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:40
  MV_SET_COUNT(1);
  return(T0_0);
}

static D K81I () {
  D T0_0;
  D T1;
  D T2_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:39
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:39
  T2_0 = KLobject_tableGZ32ZconstructorVKiMM0I(&KLobject_tableGVKd, &KPempty_vectorVKi, &KLobjectGVKd, (D) 41, &Kdefault_grow_sizeVKe, &KPfalseVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:39
  T1 = T2_0;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:39
  T0_0 = T1;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:39
  MV_SET_COUNT(1);
  return(T0_0);
}

D Kclose_socketsYsockets_internalsVnetworkMM0I (D manager_) {
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:66
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:67
  Kshutdown_all_socketsYsockets_internalsVnetworkMM0I(manager_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:68
  Kwait_for_socket_threadsYsockets_internalsVnetworkMM0I(manager_, &KPempty_vectorVKi, &KPfalseVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:69
  Kclose_all_socketsYsockets_internalsVnetworkMM0I(manager_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:70
  Kwait_for_socket_threadsYsockets_internalsVnetworkMM0I(manager_, &KPempty_vectorVKi, &KPtrueVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:72
  T2 = Kaccessor_cleanupYsockets_internalsVnetworkI(manager_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:66
  MV_SET_COUNT(0);
  return(T2);
}

D Kshutdown_all_socketsYsockets_internalsVnetworkMM0I (D manager_) {
  volatile D exit_loopPexit_4_;
  volatile D T3;
  volatile D T4;
  volatile D T5;
  volatile D T6;
  volatile D T7;
  volatile D T8;
  volatile D T9;
  volatile D T10T, T10;
  volatile D T11;
  volatile D T12;
  volatile D exit_stepPexit_5_;
  volatile D Uunwind_exceptionUPexit_6_;
  volatile D Uoriginal_handlersUF15;
  volatile D T16;
  volatile D T17;
  volatile D T18;
  volatile D Uunwind_exceptionUPexit_7_;
  volatile D T20;
  volatile D Uoriginal_handlersUF21;
  volatile D T22;
  volatile D T23;
  volatile D T24;
  volatile D T25;
  volatile D T26;
  volatile D T27;
  volatile D T28;
  volatile D T29;
  volatile D T30;
  volatile _KLsimple_object_vectorGVKd_8 T31 = {&KLsimple_object_vectorGVKdW, (D) 33};
  volatile D T32_0;
  volatile D T33;
  volatile D T34;
  volatile _KLsimple_object_vectorGVKd_8 T35 = {&KLsimple_object_vectorGVKdW, (D) 33};
  volatile D T36_0;
  volatile D T37;
  volatile D T38;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:148
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:149
  ENTER_EXIT_FRAME(exit_loopPexit_4_);
  if (nlx_setjmp(FRAME_DEST(exit_loopPexit_4_))) {
    T29 = FRAME_RETVAL(exit_loopPexit_4_);
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T30 = SLOT_VALUE_INITD(manager_, 0);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T4 = CONGRUENT_CALL1(T30);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T5 = T4;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T6 = MV_GET_ELT(1);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T7 = MV_GET_ELT(2);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T8 = MV_GET_ELT(3);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T9 = MV_GET_ELT(5);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    T10T = T5;
  L0: ;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
      T10 = T10T;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
      T11 = CALL3(T8, T30, T10, T6);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
      if (T11 == &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
        T12 = CALL2(T9, T30, T10);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
        ENTER_EXIT_FRAME(exit_stepPexit_5_);
        if (nlx_setjmp(FRAME_DEST(exit_stepPexit_5_))) {
        } else {
          // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
          ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_6_);
          if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_6_))) {
          } else {
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            Uoriginal_handlersUF15 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            T16 = MAKE_CLOSURE_INITD(&KUhandler_functionUF104, 3, Uoriginal_handlersUF15, Uunwind_exceptionUPexit_6_, exit_loopPexit_4_);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            T31.vector_element_[0] = &KJtype_;
            T31.vector_element_[1] = &KLsocket_errorGYsocketsVnetwork;
            T31.vector_element_[2] = &KJfunction_;
            T31.vector_element_[3] = T16;
            T31.vector_element_[4] = &KJtest_;
            T31.vector_element_[5] = &KPfalseVKi;
            T31.vector_element_[6] = &KJinit_arguments_;
            T31.vector_element_[7] = &KPempty_vectorVKi;
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            T32_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T31, &KLsocket_errorGYsocketsVnetwork, T16, &KPfalseVKi, &KPempty_vectorVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            T33 = T32_0;
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            T17 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            T34 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            SLOT_VALUE_SETTER(T33, T34, 0);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            SLOT_VALUE_SETTER(T17, T34, 1);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            primitive_write_thread_variable(Tcurrent_handlersTVKi, T34);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            ENTER_UNWIND_FRAME(T18);
            if (!nlx_setjmp(FRAME_DEST(T18))) {
              // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
              ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_7_);
              if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_7_))) {
                            T26 = FRAME_RETVAL(Uunwind_exceptionUPexit_7_);
              } else {
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                Uoriginal_handlersUF21 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                T22 = MAKE_CLOSURE_INITD(&KUhandler_functionUF103, 3, Uoriginal_handlersUF21, Uunwind_exceptionUPexit_7_, exit_stepPexit_5_);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                T35.vector_element_[0] = &KJtype_;
                T35.vector_element_[1] = &KLrecoverable_socket_conditionGYsocketsVnetwork;
                T35.vector_element_[2] = &KJfunction_;
                T35.vector_element_[3] = T22;
                T35.vector_element_[4] = &KJtest_;
                T35.vector_element_[5] = &KPfalseVKi;
                T35.vector_element_[6] = &KJinit_arguments_;
                T35.vector_element_[7] = &KPempty_vectorVKi;
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                T36_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T35, &KLrecoverable_socket_conditionGYsocketsVnetwork, T22, &KPfalseVKi, &KPempty_vectorVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                T37 = T36_0;
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                T23 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                T38 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                SLOT_VALUE_SETTER(T37, T38, 0);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                SLOT_VALUE_SETTER(T23, T38, 1);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                primitive_write_thread_variable(Tcurrent_handlersTVKi, T38);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                ENTER_UNWIND_FRAME(T24);
                if (!nlx_setjmp(FRAME_DEST(T24))) {
                  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:152
                  T25 = CALL1(&Kshutdown_socketYsockets_internalsVnetworkMM0, T12);
                  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                  FALL_THROUGH_UNWIND(T25);
                }
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersUF21);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
                CONTINUE_UNWIND();
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
              T26 = T25;
                /* invalidate Uunwind_exceptionUPexit_7_ */
              }
              // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
              // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
              FALL_THROUGH_UNWIND(T26);
            }
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersUF15);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            CONTINUE_UNWIND();
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
            /* invalidate Uunwind_exceptionUPexit_6_ */
          }
          // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
          /* invalidate exit_stepPexit_5_ */
        }
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
        T27 = CALL2(T7, T30, T10);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
        T10T = T27;
        goto L0;
      }
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
      T28 = &KPfalseVKi;
      MV_SET_ELT(0, &KPfalseVKi);
      MV_SET_COUNT(1);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:150
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:149
  T29 = T28;
    /* invalidate exit_loopPexit_4_ */
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:149
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:148
  MV_SET_COUNT(0);
  return(T29);
}

D Kwait_for_socket_threadsYsockets_internalsVnetworkMM0I (D manager_, D Urest_, D serverQ_) {
  D serverQF4;
  D sockets_;
  D T6;
  D T7;
  D T8;
  D T9;
  D T10;
  D T11;
  D T12;
  D T13;
  D T14;
  D T15T, T15;
  D T16;
  D T17;
  D T18;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:89
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:89
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF4 = serverQ_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:91
  if (serverQF4 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:92
    T6 = SLOT_VALUE_INITD(manager_, 2);
    sockets_ = T6;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:94
    T7 = SLOT_VALUE_INITD(manager_, 1);
    sockets_ = T7;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:91
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
  T9 = CONGRUENT_CALL1(sockets_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T10 = T9;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T11 = MV_GET_ELT(1);
;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T12 = MV_GET_ELT(2);
;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T13 = MV_GET_ELT(3);
;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T14 = MV_GET_ELT(5);
;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T15T = T10;
L0: ;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
    T15 = T15T;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
    T16 = CALL3(T13, sockets_, T15, T11);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
    if (T16 == &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
      T17 = CALL2(T14, sockets_, T15);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
      CALL1(&Kjoin_threadYthreadsVdylan, T17);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
      T18 = CALL2(T12, sockets_, T15);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
      T15T = T18;
      goto L0;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:96
  T8 = &KPfalseVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:89
  MV_SET_COUNT(0);
  return(T8);
}

D Kclose_all_socketsYsockets_internalsVnetworkMM0I (D manager_) {
  volatile D exit_loopPexit_0_;
  volatile D T3;
  volatile D T4;
  volatile D T5;
  volatile D T6;
  volatile D T7;
  volatile D T8;
  volatile D T9;
  volatile D T10T, T10;
  volatile D T11;
  volatile D T12;
  volatile D exit_stepPexit_1_;
  volatile D Uunwind_exceptionUPexit_2_;
  volatile D Uoriginal_handlersUF15;
  volatile D T16;
  volatile D T17;
  volatile D T18;
  volatile D Uunwind_exceptionUPexit_3_;
  volatile D T20;
  volatile D Uoriginal_handlersUF21;
  volatile D T22;
  volatile D T23;
  volatile D T24;
  volatile D T25;
  volatile D T26;
  volatile D T27;
  volatile D T28;
  volatile D T29;
  volatile D T30;
  volatile _KLsimple_object_vectorGVKd_8 T31 = {&KLsimple_object_vectorGVKdW, (D) 33};
  volatile D T32_0;
  volatile D T33;
  volatile D T34;
  volatile _KLsimple_object_vectorGVKd_8 T35 = {&KLsimple_object_vectorGVKdW, (D) 33};
  volatile D T36_0;
  volatile D T37;
  volatile D T38;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:133
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:134
  ENTER_EXIT_FRAME(exit_loopPexit_0_);
  if (nlx_setjmp(FRAME_DEST(exit_loopPexit_0_))) {
    T29 = FRAME_RETVAL(exit_loopPexit_0_);
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T30 = SLOT_VALUE_INITD(manager_, 0);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T4 = CONGRUENT_CALL1(T30);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T5 = T4;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T6 = MV_GET_ELT(1);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T7 = MV_GET_ELT(2);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T8 = MV_GET_ELT(3);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T9 = MV_GET_ELT(5);
;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    T10T = T5;
  L0: ;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
      T10 = T10T;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
      T11 = CALL3(T8, T30, T10, T6);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
      if (T11 == &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
        T12 = CALL2(T9, T30, T10);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
        ENTER_EXIT_FRAME(exit_stepPexit_1_);
        if (nlx_setjmp(FRAME_DEST(exit_stepPexit_1_))) {
        } else {
          // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
          ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_2_);
          if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_2_))) {
          } else {
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            Uoriginal_handlersUF15 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            T16 = MAKE_CLOSURE_INITD(&KUhandler_functionUF93, 3, Uoriginal_handlersUF15, Uunwind_exceptionUPexit_2_, exit_loopPexit_0_);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            T31.vector_element_[0] = &KJtype_;
            T31.vector_element_[1] = &KLsocket_errorGYsocketsVnetwork;
            T31.vector_element_[2] = &KJfunction_;
            T31.vector_element_[3] = T16;
            T31.vector_element_[4] = &KJtest_;
            T31.vector_element_[5] = &KPfalseVKi;
            T31.vector_element_[6] = &KJinit_arguments_;
            T31.vector_element_[7] = &KPempty_vectorVKi;
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            T32_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T31, &KLsocket_errorGYsocketsVnetwork, T16, &KPfalseVKi, &KPempty_vectorVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            T33 = T32_0;
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            T17 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            T34 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            SLOT_VALUE_SETTER(T33, T34, 0);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            SLOT_VALUE_SETTER(T17, T34, 1);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            primitive_write_thread_variable(Tcurrent_handlersTVKi, T34);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            ENTER_UNWIND_FRAME(T18);
            if (!nlx_setjmp(FRAME_DEST(T18))) {
              // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
              ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_3_);
              if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_3_))) {
                            T26 = FRAME_RETVAL(Uunwind_exceptionUPexit_3_);
              } else {
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                Uoriginal_handlersUF21 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                T22 = MAKE_CLOSURE_INITD(&KUhandler_functionUF90, 4, Uoriginal_handlersUF21, Uunwind_exceptionUPexit_3_, exit_stepPexit_1_, T12);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                T35.vector_element_[0] = &KJtype_;
                T35.vector_element_[1] = &KLrecoverable_socket_conditionGYsocketsVnetwork;
                T35.vector_element_[2] = &KJfunction_;
                T35.vector_element_[3] = T22;
                T35.vector_element_[4] = &KJtest_;
                T35.vector_element_[5] = &KPfalseVKi;
                T35.vector_element_[6] = &KJinit_arguments_;
                T35.vector_element_[7] = &KPempty_vectorVKi;
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                T36_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T35, &KLrecoverable_socket_conditionGYsocketsVnetwork, T22, &KPfalseVKi, &KPempty_vectorVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                T37 = T36_0;
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                T23 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                T38 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                SLOT_VALUE_SETTER(T37, T38, 0);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                SLOT_VALUE_SETTER(T23, T38, 1);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                primitive_write_thread_variable(Tcurrent_handlersTVKi, T38);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                ENTER_UNWIND_FRAME(T24);
                if (!nlx_setjmp(FRAME_DEST(T24))) {
                  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:137
                  T25 = CALL1(&KcloseYcommon_extensionsVcommon_dylan, T12);
                  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                  FALL_THROUGH_UNWIND(T25);
                }
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersUF21);
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
                CONTINUE_UNWIND();
                // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
              T26 = T25;
                /* invalidate Uunwind_exceptionUPexit_3_ */
              }
              // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
              // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
              FALL_THROUGH_UNWIND(T26);
            }
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersUF15);
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            CONTINUE_UNWIND();
            // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
            /* invalidate Uunwind_exceptionUPexit_2_ */
          }
          // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
          /* invalidate exit_stepPexit_1_ */
        }
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
        T27 = CALL2(T7, T30, T10);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
        T10T = T27;
        goto L0;
      }
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
      T28 = &KPfalseVKi;
      MV_SET_ELT(0, &KPfalseVKi);
      MV_SET_COUNT(1);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:135
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:134
  T29 = T28;
    /* invalidate exit_loopPexit_0_ */
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:134
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:133
  MV_SET_COUNT(0);
  return(T29);
}

static D KUhandler_functionUF93I (D unrecoverable_condition_, D Unext_handlerU_) {
  D all_values_;
  D T4;
  D T5;
  D T6;
  D T7;
  CAPTURE_ENVIRONMENT

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:134
  T4 = MV_SET_REST_AT(&KPempty_vectorVKi, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:134
  T5 = NLX(CREF(2), T4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  all_values_ = MV_GET_REST_AT(T5, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  T6 = MV_SET_REST_AT(all_values_, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  T7 = NLX(CREF(1), T6);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  return(T7);
}

static D KUhandler_functionUF90I (D recoverable_condition_, D Unext_handlerU_) {
  D all_values_;
  D T4;
  D T5;
  D T6;
  D T7;
  CAPTURE_ENVIRONMENT

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:139
  CALL3(&KcloseYcommon_extensionsVcommon_dylan, CREF(3), &KJabortQ_, &KPtrueVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  T4 = MV_SET_REST_AT(&KPempty_vectorVKi, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  T5 = NLX(CREF(2), T4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  all_values_ = MV_GET_REST_AT(T5, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  T6 = MV_SET_REST_AT(all_values_, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  T7 = NLX(CREF(1), T6);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:136
  return(T7);
}

static D KUhandler_functionUF104I (D unrecoverable_condition_, D Unext_handlerU_) {
  D all_values_;
  D T4;
  D T5;
  D T6;
  D T7;
  CAPTURE_ENVIRONMENT

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:149
  T4 = MV_SET_REST_AT(&KPempty_vectorVKi, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:149
  T5 = NLX(CREF(2), T4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  all_values_ = MV_GET_REST_AT(T5, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  T6 = MV_SET_REST_AT(all_values_, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  T7 = NLX(CREF(1), T6);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  return(T7);
}

static D KUhandler_functionUF103I (D recoverable_condition_, D Unext_handlerU_) {
  D all_values_;
  D T4;
  D T5;
  D T6;
  D T7;
  CAPTURE_ENVIRONMENT

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  T4 = MV_SET_REST_AT(&KPempty_vectorVKi, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  T5 = NLX(CREF(2), T4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  all_values_ = MV_GET_REST_AT(T5, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  T6 = MV_SET_REST_AT(all_values_, 0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  T7 = NLX(CREF(1), T6);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:151
  return(T7);
}

D Kshutdown_socketYsockets_internalsVnetworkMM0I (D socket_) {
  D the_descriptor_;
  D T3;
  D T4;
  D T5;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:162
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:163
  CONGRUENT_CALL_PROLOG(&Ksocket_descriptorYsocketsVnetwork, 1);
  the_descriptor_ = CONGRUENT_CALL1(socket_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:164
  if (the_descriptor_ != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:165
    T3 = CALL1(&Kaccessor_shutdownYsockets_internalsVnetworkMM0, the_descriptor_);
    T5 = T3;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:164
    T4 = &KPfalseVKi;
    MV_SET_ELT(0, &KPfalseVKi);
    MV_SET_COUNT(1);
    T5 = T4;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:164
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:162
  return(T5);
}

D Kclose_socketYsocketsVnetworkMM0I (D socket_, D keys_) {
  D T3;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:207
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:209
  T3 = APPLY2(&KcloseYcommon_extensionsVcommon_dylan, socket_, keys_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:207
  MV_SET_COUNT(0);
  return(T3);
}

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

  T6 = primitive_idQ(CREF(1),&KPempty_listVKi);
  if (T6 != &KPfalseVKi) {
    T14 = KerrorVKdMM1I(&K124, &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 D Kanonymous_of_initializeF135I (D Unext_method_argsU_) {
  D T2;
  D T3;
  D T4;
  D T5;
  D T6;
  D T7;
  DWORD T8;
  D T9;
  D T10;
  D T11;
  D T12;
  D T13;
  D T14;
  CAPTURE_ENVIRONMENT

  T6 = primitive_idQ(CREF(1),&KPempty_listVKi);
  if (T6 != &KPfalseVKi) {
    T14 = KerrorVKdMM1I(&K124, &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);
}

D Kstart_socketsYsocketsVnetworkI () {
  D manager_;
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:169
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:170
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:171
  T2 = Kopen_socketsYsockets_internalsVnetworkMM0I(manager_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:169
  MV_SET_COUNT(0);
  return(T2);
}

D Kopen_socketsYsockets_internalsVnetworkMM0I (D manager_) {
  D T2;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:174
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:175
  T2 = Kaccessor_startupYsockets_internalsVnetworkI(manager_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:174
  MV_SET_COUNT(0);
  return(T2);
}

D KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0I (D class_, D init_args_) {
  D T3;
  D T4_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:9
  T3 = primitive_object_allocate_filled(1,&KLsealed_objectGYsockets_internalsVnetworkW,0,&KPunboundVKi,0,0,&KPunboundVKi);
  APPLY2(&KinitializeVKd, T3, init_args_);
  T4_0 = T3;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:9
  MV_SET_COUNT(1);
  return(T4_0);
}

D Kinvoke_with_socket_threadYsocketsVnetworkMM0I (D function_, D Urest_, D serverQ_) {
  D serverQF4;
  D manager_;
  D thread_;
  D T7;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:81
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:81
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF4 = serverQ_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:82
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:83
  thread_ = Kcurrent_threadYthreadsVdylanI();
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:84
  Kregister_socket_manager_threadYsockets_internalsVnetworkMM0I(manager_, thread_, &KPempty_vectorVKi, serverQF4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:85
  CALL0(function_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:86
  T7 = Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0I(manager_, thread_, &KPempty_vectorVKi, serverQF4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:81
  MV_SET_COUNT(0);
  return(T7);
}

D Kregister_socket_manager_threadYsockets_internalsVnetworkMM0I (D manager_, D thread_, D Urest_, D serverQ_) {
  D serverQF5;
  D T6;
  D T7;
  D T8;
  D T9;
  D T10;
  D T11;
  D T12;
  D T13;
  D T14;
  D T15;
  D T16;
  D T17;
  D T18;
  D T19_0;
  D T20;
  D T21;
  D T22;
  D T23;
  D T24;
  D T25;
  D T26;
  D T27;
  D T28;
  D T29;
  D T30;
  D T31_0;
  D T32;
  D T33;
  D T34;
  D T35;
  D T36;
  D T37;
  D T38_0;
  D T39;
  D T40;
  D T41;
  D T42;
  D T43;
  D T44;
  D T45;
  D T46;
  D T47;
  D T48;
  D T49;
  D T50_0;
  D T51;
  D T52;
  D T53;
  D T54;
  D res_;
  D T56;
  _KLsimple_object_vectorGVKd_2 T57 = {&KLsimple_object_vectorGVKdW, (D) 9};
  D T58;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:109
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:109
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF5 = serverQ_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T12 = SLOT_VALUE_INITD(manager_, 3);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T13 = TdebuggingQTVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T13 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T14 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T15 = primitive_idQ(T14,&KPempty_listVKi);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T16 = primitive_not(T15);
    T17 = T16;
  } else {
    T17 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T17 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T18 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T19_0 = KmemberQVKdMM3I(&KJlock_, T18, &KPempty_vectorVKi, &KEEVKd);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T20 = T19_0;
    T21 = T20;
  } else {
    T21 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T21 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T22 = Tdebug_out_functionTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T23 = MAKE_CLOSURE_INITD(&Kanonymous_of_register_socket_manager_threadF191, 1, T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    CALL1(T22, T23);
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T24 = primitive_wait_for_recursive_lock(T12);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T25 = TdebuggingQTVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T25 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T26 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T27 = primitive_idQ(T26,&KPempty_listVKi);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T28 = primitive_not(T27);
    T29 = T28;
  } else {
    T29 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T29 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T30 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T31_0 = KmemberQVKdMM3I(&KJlock_, T30, &KPempty_vectorVKi, &KEEVKd);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T32 = T31_0;
    T33 = T32;
  } else {
    T33 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T33 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T34 = Tdebug_out_functionTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T35 = MAKE_CLOSURE_INITD(&Kanonymous_of_register_socket_manager_threadF190, 2, T24, T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    CALL1(T34, T35);
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T36 = primitive_idQ(T24,(D) 1);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T36 != &KPfalseVKi) {
    T41 = &KPtrueVKi;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T37 = primitive_idQ(T24,(D) 5);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    if (T37 != &KPfalseVKi) {
      T40 = &KPfalseVKi;
    } else {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T38_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(T12, T24);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T39 = T38_0;
      T40 = T39;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T41 = T40;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T41 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    ENTER_UNWIND_FRAME(T6);
    if (!nlx_setjmp(FRAME_DEST(T6))) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:113
      if (serverQF5 != &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:114
        T42 = SLOT_VALUE_INITD(manager_, 2);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:114
        CONGRUENT_CALL_PROLOG(&Kadd_newXVKd, 3);
        T7 = CONGRUENT_CALL3(T42, thread_, &KPempty_vectorVKi);
        T9 = T7;
      } else {
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:116
        T43 = SLOT_VALUE_INITD(manager_, 1);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:116
        CONGRUENT_CALL_PROLOG(&Kadd_newXVKd, 3);
        T8 = CONGRUENT_CALL3(T43, thread_, &KPempty_vectorVKi);
        T9 = T8;
      }
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:113
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      FALL_THROUGH_UNWIND(T9);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T44 = TdebuggingQTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    if (T44 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T45 = Tdebug_partsTVKi;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T46 = primitive_idQ(T45,&KPempty_listVKi);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T47 = primitive_not(T46);
      T48 = T47;
    } else {
      T48 = &KPfalseVKi;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    if (T48 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T49 = Tdebug_partsTVKi;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T50_0 = KmemberQVKdMM3I(&KJlock_, T49, &KPempty_vectorVKi, &KEEVKd);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T51 = T50_0;
      T52 = T51;
    } else {
      T52 = &KPfalseVKi;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    if (T52 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T53 = Tdebug_out_functionTVKi;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      T54 = MAKE_CLOSURE_INITD(&Kanonymous_of_register_socket_manager_threadF189, 1, T12);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      CALL1(T53, T54);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    res_ = primitive_release_recursive_lock(T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T56 = primitive_idQ(res_,(D) 1);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    if (T56 == &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
      Klock_release_result_errorYthreads_internalVdylanMM0I(T12, res_);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    CONTINUE_UNWIND();
    T11 = T9;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T57.vector_element_[0] = &KJsynchronization_;
    T57.vector_element_[1] = T12;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T10 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T57);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T58 = KsignalVKdMM0I(T10, &KPempty_vectorVKi);
    T11 = T58;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:109
  MV_SET_COUNT(0);
  return(T11);
}

D Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0I (D manager_, D thread_, D Urest_, D serverQ_) {
  D serverQF5;
  D T6;
  D T7;
  D T8;
  D T9;
  D T10;
  D T11;
  D T12;
  D T13;
  D T14;
  D T15;
  D T16;
  D T17;
  D T18;
  D T19_0;
  D T20;
  D T21;
  D T22;
  D T23;
  D T24;
  D T25;
  D T26;
  D T27;
  D T28;
  D T29;
  D T30;
  D T31_0;
  D T32;
  D T33;
  D T34;
  D T35;
  D T36;
  D T37;
  D T38_0;
  D T39;
  D T40;
  D T41;
  D T42;
  D T43;
  D T44;
  D T45;
  D T46;
  D T47;
  D T48;
  D T49;
  D T50_0;
  D T51;
  D T52;
  D T53;
  D T54;
  D res_;
  D T56;
  _KLsimple_object_vectorGVKd_2 T57 = {&KLsimple_object_vectorGVKdW, (D) 9};
  D T58;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:121
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:121
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF5 = serverQ_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T12 = SLOT_VALUE_INITD(manager_, 3);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T13 = TdebuggingQTVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T13 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T14 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T15 = primitive_idQ(T14,&KPempty_listVKi);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T16 = primitive_not(T15);
    T17 = T16;
  } else {
    T17 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T17 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T18 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T19_0 = KmemberQVKdMM3I(&KJlock_, T18, &KPempty_vectorVKi, &KEEVKd);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T20 = T19_0;
    T21 = T20;
  } else {
    T21 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T21 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T22 = Tdebug_out_functionTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T23 = MAKE_CLOSURE_INITD(&Kanonymous_of_unregister_socket_manager_threadF181, 1, T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    CALL1(T22, T23);
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T24 = primitive_wait_for_recursive_lock(T12);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T25 = TdebuggingQTVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T25 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T26 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T27 = primitive_idQ(T26,&KPempty_listVKi);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T28 = primitive_not(T27);
    T29 = T28;
  } else {
    T29 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T29 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T30 = Tdebug_partsTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T31_0 = KmemberQVKdMM3I(&KJlock_, T30, &KPempty_vectorVKi, &KEEVKd);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T32 = T31_0;
    T33 = T32;
  } else {
    T33 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T33 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T34 = Tdebug_out_functionTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T35 = MAKE_CLOSURE_INITD(&Kanonymous_of_unregister_socket_manager_threadF179, 2, T24, T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    CALL1(T34, T35);
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T36 = primitive_idQ(T24,(D) 1);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T36 != &KPfalseVKi) {
    T41 = &KPtrueVKi;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T37 = primitive_idQ(T24,(D) 5);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    if (T37 != &KPfalseVKi) {
      T40 = &KPfalseVKi;
    } else {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T38_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(T12, T24);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T39 = T38_0;
      T40 = T39;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T41 = T40;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T41 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    ENTER_UNWIND_FRAME(T6);
    if (!nlx_setjmp(FRAME_DEST(T6))) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:125
      if (serverQF5 != &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:126
        T42 = SLOT_VALUE_INITD(manager_, 2);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:126
        CONGRUENT_CALL_PROLOG(&KremoveXVKd, 3);
        T7 = CONGRUENT_CALL3(T42, thread_, &KPempty_vectorVKi);
        T9 = T7;
      } else {
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:128
        T43 = SLOT_VALUE_INITD(manager_, 1);
        // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:128
        CONGRUENT_CALL_PROLOG(&KremoveXVKd, 3);
        T8 = CONGRUENT_CALL3(T43, thread_, &KPempty_vectorVKi);
        T9 = T8;
      }
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:125
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      FALL_THROUGH_UNWIND(T9);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T44 = TdebuggingQTVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    if (T44 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T45 = Tdebug_partsTVKi;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T46 = primitive_idQ(T45,&KPempty_listVKi);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T47 = primitive_not(T46);
      T48 = T47;
    } else {
      T48 = &KPfalseVKi;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    if (T48 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T49 = Tdebug_partsTVKi;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T50_0 = KmemberQVKdMM3I(&KJlock_, T49, &KPempty_vectorVKi, &KEEVKd);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T51 = T50_0;
      T52 = T51;
    } else {
      T52 = &KPfalseVKi;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    if (T52 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T53 = Tdebug_out_functionTVKi;
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      T54 = MAKE_CLOSURE_INITD(&Kanonymous_of_unregister_socket_manager_threadF176, 1, T12);
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      CALL1(T53, T54);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    res_ = primitive_release_recursive_lock(T12);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T56 = primitive_idQ(res_,(D) 1);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    if (T56 == &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
      Klock_release_result_errorYthreads_internalVdylanMM0I(T12, res_);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    CONTINUE_UNWIND();
    T11 = T9;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T57.vector_element_[0] = &KJsynchronization_;
    T57.vector_element_[1] = T12;
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T10 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T57);
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T58 = KsignalVKdMM0I(T10, &KPempty_vectorVKi);
    T11 = T58;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:121
  MV_SET_COUNT(0);
  return(T11);
}

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

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

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

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

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

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

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

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

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

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

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

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

D Kregister_socket_threadYsocketsVnetworkMM0I (D Urest_, D thread_, D serverQ_) {
  D T4;
  D T5;
  D threadF6;
  D serverQF7;
  D manager_;
  D T9;
  D T10;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
  T10 = primitive_idQ(thread_,&KPunboundVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
  if (T10 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
    T4 = Kcurrent_threadYthreadsVdylanI();
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
    T5 = T4;
    threadF6 = T5;
  } else {
    threadF6 = thread_;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF7 = serverQ_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:100
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:101
  T9 = CALL4(&Kregister_socket_manager_threadYsockets_internalsVnetworkMM0, manager_, threadF6, IKJserverQ_, serverQF7);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:99
  return(T9);
}

D Kunregister_socket_threadYsocketsVnetworkMM0I (D Urest_, D thread_, D serverQ_) {
  D T4;
  D T5;
  D threadF6;
  D serverQF7;
  D manager_;
  D T9;
  D T10;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  T10 = primitive_idQ(thread_,&KPunboundVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  if (T10 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
    T4 = Kcurrent_threadYthreadsVdylanI();
    // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
    T5 = T4;
    threadF6 = T5;
  } else {
    threadF6 = thread_;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF7 = serverQ_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:105
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:106
  T9 = CALL4(&Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0, manager_, threadF6, IKJserverQ_, serverQF7);
  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  return(T9);
}


/* SYSTEM INIT CODE */

void _Init_network__X_12Eabstract_sockets_for_system () {
  extern D KPresolve_symbolVKiI(D);
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJalready_unregisteredQ_);
    if (T0 != &KJalready_unregisteredQ_) {
      primitive_repeated_slot_value_setter(T0, &K130, 1, 3);
      primitive_repeated_slot_value_setter(T0, &K127, 1, 6);
      IKJalready_unregisteredQ_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJsynchronizeQ_);
    if (T0 != &KJsynchronizeQ_) {
      primitive_repeated_slot_value_setter(T0, &K130, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K127, 1, 4);
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJalready_registeredQ_);
    if (T0 != &KJalready_registeredQ_) {
      primitive_repeated_slot_value_setter(T0, &K138, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K137, 1, 0);
      IKJalready_registeredQ_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJserverQ_);
    if (T0 != &KJserverQ_) {
      IKJserverQ_ = T0;
      primitive_repeated_slot_value_setter(T0, &K204, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K203, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K196, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K193, 1, 0);
    }
  }
{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:9
  T0 = KPadd_classVKeI(&KLsealed_objectGYsockets_internalsVnetwork);
  goto I0;
}
I0:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:17
  T0 = KPadd_classVKeI(&KLabstract_socketGYsocketsVnetwork);
  goto I7;
}
I7:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:38
  T0 = KPadd_classVKeI(&KLsocket_managerGYsockets_internalsVnetwork);
  goto I10;
}
I10:

  return;
}

/* USER INIT CODE */

void _Init_network__X_12Eabstract_sockets_for_user () {
{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:11
  T0 = KPadd_nonsiblinged_domainVKnI(&KmakeVKd, &KmakeVKdRD_networkRD_0);
  goto I4;
}
I4:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:12
  T0 = KPadd_nonsiblinged_domainVKnI(&KinitializeVKd, &KinitializeVKdRD_networkRD_0);
  goto I6;
}
I6:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:178
  T0 = KPadd_a_methodVKnI(&KinitializeVKd, &KinitializeVKdMnetworkM1, &Knetwork_libraryYdylan_userVnetwork, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I15;
}
I15:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:189
  T0 = KPadd_a_methodVKnI(&KcloseYcommon_extensionsVcommon_dylan, &KcloseYcommon_extensionsVcommon_dylanMnetworkM0, &Knetwork_libraryYdylan_userVnetwork, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I18;
}
I18:

  return;
}


/* eof */
