#include "opendylan/run-time.h"

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

/* Typedefs for referenced classes */

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

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

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

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

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(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 { \
    dylan_value wrapper; \
    dylan_value 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 {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_values_;
} _KLsignatureAvaluesGVKi;

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLinternet_addressGYsocketsVnetwork;

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

typedef struct {
  dylan_value wrapper;
} _KLsocket_accessorGYsockets_internalsVnetwork;

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

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

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

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLstretchy_vectorGVKd;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLstreamGYcommon_extensionsVcommon_dylan;

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

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

typedef struct {
  dylan_value wrapper;
} _KLclosable_objectGYcommon_extensionsVcommon_dylan;

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

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

typedef struct {
  dylan_value wrapper;
} _KLerrorGVKd;

typedef struct {
  dylan_value wrapper;
} _KLconditionGVKd;

typedef struct {
  dylan_value wrapper;
} _KLserious_conditionGVKd;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
} _KLsealed_objectGYsockets_internalsVnetwork;

typedef struct {
  dylan_value wrapper;
} _KLabstract_socketGYsocketsVnetwork;

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


/* Referenced object declarations */

dylan_value KPadd_classVKeI (dylan_value);
dylan_value KPadd_nonsiblinged_domainVKnI (dylan_value, dylan_value);
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;
dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLlibraryGVKe Knetwork_libraryYdylan_userVnetwork;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _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;
dylan_value Kunion_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLinternet_addressGYsocketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLinternet_addressGYsocketsVnetworkW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
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;
dylan_value KLrecursive_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I (dylan_value, dylan_value, dylan_value);
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;
dylan_value KLstretchy_object_vectorGZ32ZconstructorVKiMM0I (dylan_value, dylan_value);
extern _KLclassGVKd KLstretchy_object_vectorGVKe;
extern _KLmm_wrapperGVKi_0 KLstretchy_object_vectorGVKeW;
extern _KLclassGVKd KLtableGVKd;
extern _KLmm_wrapperGVKi_0 KLtableGVKdW;
dylan_value KLobject_tableGZ32ZconstructorVKiMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLobject_tableGVKd;
extern _KLmm_wrapperGVKi_0 KLobject_tableGVKdW;
extern _KLsimple_methodGVKe Kdefault_grow_sizeVKe;
dylan_value Kaccessor_cleanupYsockets_internalsVnetworkI (dylan_value);
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_;
dylan_value KLhandlerGZ32ZconstructorVKiMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
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;
dylan_value Kremove_keyXVKdMM0I (dylan_value, dylan_value);
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
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;
dylan_value KputhashVKiI (dylan_value, dylan_value, dylan_value);
dylan_value Kaccessor_startupYsockets_internalsVnetworkI (dylan_value);
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
dylan_value Kgeneral_rcpl_class_instanceQVKiI (dylan_value, dylan_value);
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;
dylan_value Ksubclass_instanceQVKiI (dylan_value, dylan_value);
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;
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);
dylan_value Kcurrent_threadYthreadsVdylanI ();
dylan_value KmemberQVKdMM4I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsymbolGVKd KJlock_;
extern _KLsimple_methodGVKe KEEVKd;
dylan_value Klock_wait_result_errorYthreads_internalVdylanMM0I (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KremoveXVKd;
dylan_value Klock_release_result_errorYthreads_internalVdylanMM0I (dylan_value, dylan_value);
extern _KLsymbolGVKd KJsynchronization_;
extern _KLclassGVKd KLtimeout_expiredGYthreadsVdylan;
extern _KLmm_wrapperGVKi_0 KLtimeout_expiredGYthreadsVdylanW;
dylan_value KsignalVKdMM0I (dylan_value, dylan_value);
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 dylan_value Tcurrent_handlersTVKi;
extern dylan_value TdebuggingQTVKi;
extern dylan_value Tdebug_partsTVKi;
extern dylan_value 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;
dylan_value KinitializeVKdMnetworkM1I (dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMnetworkM0;
dylan_value KcloseYcommon_extensionsVcommon_dylanMnetworkM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
dylan_value Kinstall_socket_managerYsockets_internalsVnetworkI (dylan_value);
dylan_value Kcurrent_socket_managerYsocketsVnetworkI ();
extern _KLincremental_generic_functionGVKe Ksocket_descriptorYsocketsVnetwork;
extern _KLincremental_generic_functionGVKe Kclose_socketYsocketsVnetwork;
extern _KLsimple_methodGVKe Kstop_socketsYsockets_internalsVnetwork;
dylan_value 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;
dylan_value Ksocket_openQYsocketsVnetworkMM0I (dylan_value);
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 dylan_value 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 dylan_value 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 dylan_value 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 dylan_value K81I ();
extern _KLsealed_generic_functionGVKe Ksocket_manager_socketsYsockets_internalsVnetwork;
extern _KLgetter_methodGVKi Ksocket_manager_socketsYsockets_internalsVnetworkMM0;
static _KLpairGVKd K79;
static _KLbyte_stringGVKd_22 K80;
dylan_value Kclose_socketsYsockets_internalsVnetworkMM0I (dylan_value);
dylan_value Kshutdown_all_socketsYsockets_internalsVnetworkMM0I (dylan_value);
dylan_value Kwait_for_socket_threadsYsockets_internalsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
dylan_value Kclose_all_socketsYsockets_internalsVnetworkMM0I (dylan_value);
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF93;
static dylan_value KUhandler_functionUF93I (dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF90;
static dylan_value KUhandler_functionUF90I (dylan_value, dylan_value);
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 dylan_value KUhandler_functionUF104I (dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF103;
static dylan_value KUhandler_functionUF103I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kshutdown_socketYsockets_internalsVnetworkMM0;
dylan_value Kshutdown_socketYsockets_internalsVnetworkMM0I (dylan_value);
static _KLsignatureGVKe K102;
static _KLsignatureGVKe K105;
extern _KLkeyword_methodGVKe Kclose_socketYsocketsVnetworkMM0;
dylan_value Kclose_socketYsocketsVnetworkMM0I (dylan_value, dylan_value);
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 dylan_value Kanonymous_of_closeF123I (dylan_value);
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 dylan_value Kanonymous_of_initializeF135I (dylan_value);
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;
dylan_value Kstart_socketsYsocketsVnetworkI ();
dylan_value Kopen_socketsYsockets_internalsVnetworkMM0I (dylan_value);
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;
dylan_value KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0I (dylan_value, dylan_value);
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;
dylan_value Kinvoke_with_socket_threadYsocketsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
dylan_value Kregister_socket_manager_threadYsockets_internalsVnetworkMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
dylan_value Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF181;
static dylan_value Kanonymous_of_unregister_socket_manager_threadF181I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF179;
static dylan_value Kanonymous_of_unregister_socket_manager_threadF179I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_unregister_socket_manager_threadF176;
static dylan_value 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 dylan_value Kanonymous_of_register_socket_manager_threadF191I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF190;
static dylan_value Kanonymous_of_register_socket_manager_threadF190I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_register_socket_manager_threadF189;
static dylan_value 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;
dylan_value Kregister_socket_threadYsocketsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
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;
dylan_value Kunregister_socket_threadYsocketsVnetworkMM0I (dylan_value, dylan_value, dylan_value);
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 dylan_value IKJalready_unregisteredQ_ = &KJalready_unregisteredQ_;
static dylan_value IKJsynchronizeQ_ = &KJsynchronizeQ_;
static dylan_value IKJalready_registeredQ_ = &KJalready_registeredQ_;
static dylan_value IKJserverQ_ = &KJserverQ_;

/* Variables */

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

/* Objects */

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

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

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

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

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

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

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

_KLmm_wrapperGVKi_0 KLsocket_managerGYsockets_internalsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K145,
  (dylan_value) 1,
  17,
  33554439,
  (dylan_value) 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,
  (dylan_value) 1,
  &K115,
  &K111,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLincremental_generic_functionGVKe Kclose_socketYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_optional_xep_1,
  &K109,
  (dylan_value) 1,
  &K110,
  &K108,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 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 */,
  (dylan_value) 149,
  &K81,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &Ksocket_manager_socketsYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KLtableGVKd
};

_KLinstance_slot_descriptorGVKe Ksocket_manager_threadsYsockets_internalsVnetworkHLsocket_managerG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 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 */,
  (dylan_value) 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,
  (dylan_value) 1,
  &K50,
  &K47,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

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

_KLincremental_generic_functionGVKe Ksocket_openQYsocketsVnetwork = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K35,
  (dylan_value) 1,
  &K36,
  &K34,
  &RSINGULAR_Labsent_engine_nodeG,
  &Ksockets_moduleYdylan_userVnetwork,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 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 */,
  (dylan_value) 33555461,
  &K37,
  &KDsignature_LbooleanG_typesVKi
};

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

static _KLsimple_object_vectorGVKd_1 K37 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 33555461,
  &K42,
  &K43
};

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

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

static _KLsimple_object_vectorGVKd_1 K43 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 33555461,
  &K42,
  &K51
};

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

static _KLsimple_object_vectorGVKd_1 K51 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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,
  (dylan_value) 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 */,
  (dylan_value) 77,
  "socket-manager-lock"
};

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

static _KLsimple_closure_methodGVKi_0 K67 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K67I,
  (dylan_value) 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 */,
  (dylan_value) 117,
  "socket-manager-server-threads"
};

static _KLsimple_closure_methodGVKi_0 K74 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K74I,
  (dylan_value) 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 */,
  (dylan_value) 89,
  "socket-manager-threads"
};

static _KLsimple_closure_methodGVKi_0 K81 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K60,
  &K81I,
  (dylan_value) 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 */,
  (dylan_value) 89,
  "socket-manager-sockets"
};

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

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

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

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

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

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

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

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

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

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

static _KLsignatureGVKe K105 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 43253765,
  &K37,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLbyte_stringGVKd_12 K110 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 33555461,
  &K42,
  &K116
};

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

static _KLsimple_object_vectorGVKd_1 K116 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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,
  (dylan_value) 1
};

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

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

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

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

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

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

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

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

static _KLsimple_object_vectorGVKd_4 K130 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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,
  (dylan_value) 1
};

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

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

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

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

static _KLsimple_object_vectorGVKd_1 K138 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 33555457,
  &KPempty_vectorVKi,
  &K144
};

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

static _KLimplementation_classGVKe K145 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 460587025,
  &KLsocket_managerGYsockets_internalsVnetwork,
  &KLsocket_managerGYsockets_internalsVnetworkW,
  &KPfalseVKi,
  &K146,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K147,
  &K148,
  (dylan_value) 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 */,
  (dylan_value) 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 */,
  (dylan_value) 5,
  &KLobjectGVKd
};

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

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

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

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

static _KLimplementation_classGVKe K152 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 308543489,
  &KLabstract_socketGYsocketsVnetwork,
  &KLabstract_socketGYsocketsVnetworkW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K153,
  &K154,
  (dylan_value) 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 */,
  (dylan_value) 5,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan
};

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

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

static _KLsimple_object_vectorGVKd_10 K156 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 69,
  "<abstract-socket>"
};

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

static _KLimplementation_classGVKe K159 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 477102081,
  &KLsealed_objectGYsockets_internalsVnetwork,
  &KLsealed_objectGYsockets_internalsVnetworkW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) -3,
  &KLsealed_objectGZ32ZconstructorYsockets_internalsVnetworkMM0,
  &K147,
  &K162,
  (dylan_value) 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 */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLsealed_objectGYsockets_internalsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_14 K163 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K150
};

static _KLbyte_stringGVKd_15 K165 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 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,
  (dylan_value) 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,
  (dylan_value) 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,
  (dylan_value) 1
};

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

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

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

static _KLbyte_stringGVKd_33 K182 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 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,
  (dylan_value) 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,
  (dylan_value) 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,
  (dylan_value) 1
};

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

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

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

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

static _KLsimple_object_vectorGVKd_1 K196 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 42205193,
  &K201,
  &K196,
  &KDsignature_LbooleanG_typesVKi
};

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

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

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

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

static _KLsimple_object_vectorGVKd_2 K205 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */

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

  // /home/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_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:181
  APPLY4(T9, the_socket_, IKJalready_registeredQ_, &KPtrueVKi, T10);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:183
  if (already_registeredQ_ != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:183
    T6 = &KPfalseVKi;
    T7 = T6;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:184
    manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T11 = SLOT_VALUE_INITD(manager_, 0);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T12 = SLOT_VALUE_INITD(T11, 0);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T13 = primitive_instanceQ(the_socket_,T12);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    if (T13 == &KPfalseVKi) {
      // /home/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;
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T15 = CONGRUENT_CALL2(&KLtype_errorGVKd, &T14);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
      CONGRUENT_CALL_PROLOG(&KerrorVKd, 2);
      CONGRUENT_CALL2(T15, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    KputhashVKiI(the_socket_, T11, the_socket_);
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:185
    T5 = &KPfalseVKi;
    T7 = T5;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:183
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:178
  MV_SET_COUNT(0);
  return(T7);
}

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

  // /home/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_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
  CONGRUENT_CALL_PROLOG(&Ksocket_openQYsocketsVnetwork, 1);
  T7 = CONGRUENT_CALL1(the_socket_);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
  if (T7 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:195
    if (already_unregisteredQ_ == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:196
      manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:197
      T14 = SLOT_VALUE_INITD(manager_, 0);
      // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:197
      Kremove_keyXVKdMM0I(T14, the_socket_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:195
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:199
    T15 = APPLY4(T12, the_socket_, IKJalready_unregisteredQ_, &KPtrueVKi, T13);
    T10 = T15;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
    T9 = &KPfalseVKi;
    T10 = T9;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:194
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:189
  MV_SET_COUNT(0);
  return(T10);
}

dylan_value Kinstall_socket_managerYsockets_internalsVnetworkI (dylan_value manager_) {
  dylan_value T2;

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

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:51
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:53
  T0 = Tcurrent_socket_managerTYsockets_internalsVnetwork;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:53
  T1_0 = T0;
  // /home/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();
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:51
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value Kstop_socketsYsockets_internalsVnetworkI () {
  dylan_value manager_;
  dylan_value T2;

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

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

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

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

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

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

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

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

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

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

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

dylan_value Kclose_socketsYsockets_internalsVnetworkMM0I (dylan_value manager_) {
  dylan_value T2;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

dylan_value Kstart_socketsYsocketsVnetworkI () {
  dylan_value manager_;
  dylan_value T2;

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

dylan_value Kopen_socketsYsockets_internalsVnetworkMM0I (dylan_value manager_) {
  dylan_value T2;

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

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

  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:9
  MV_SET_COUNT(1);
  return(T4_0);
}

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

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

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

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

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

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

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  MV_SET_COUNT(1);
  return(T7_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /home/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);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  MV_SET_COUNT(1);
  return(T7_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:124
  MV_SET_COUNT(1);
  return(T7_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  MV_SET_COUNT(1);
  return(T7_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /home/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);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  MV_SET_COUNT(1);
  return(T7_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:112
  MV_SET_COUNT(1);
  return(T7_0);
}

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

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

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

  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  T10 = primitive_idQ(thread_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  if (T10 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
    T4 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
    T5 = T4;
    threadF6 = T5;
  } else {
    threadF6 = thread_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:104
  primitive_type_check(serverQ_, &KLbooleanGVKd);
  serverQF7 = serverQ_;
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:105
  manager_ = Kcurrent_socket_managerYsocketsVnetworkI();
  // /home/bruce/Development/dylan/opendylan/sources/network/sockets/abstract-sockets.dylan:106
  T9 = CALL4(&Kunregister_socket_manager_threadYsockets_internalsVnetworkMM0, manager_, threadF6, IKJserverQ_, serverQF7);
  // /home/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 dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value 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;
    }
  }
  {
    dylan_value 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);
    }
  }
  {
    dylan_value 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;
    }
  }
  {
    dylan_value 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);
    }
  }
{
  dylan_value T0;

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

{
  dylan_value T0;

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

{
  dylan_value T0;

  // /home/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 () {
{
  dylan_value T0;

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

{
  dylan_value T0;

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

{
  dylan_value T0;

  // /home/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:

{
  dylan_value T0;

  // /home/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 */
