#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 element_type_;
  dylan_value representation_;
} _KLobject_dequeGVKe;

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);

#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(7);
define__KLsimple_object_vectorGVKd(14);
define__KLsimple_object_vectorGVKd(5);
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(9);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(8);
define__KLsimple_object_vectorGVKd(16);
define__KLsimple_object_vectorGVKd(256);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(3);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(0);

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

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

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

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

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;
  D handle1_;
  dylan_value synchronization_name_;
  dylan_value associated_lock_;
} _KLnotificationGYthreadsVdylan;

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 xep_;
  dylan_value function_signature_;
  dylan_value mep_;
} _KLsimple_methodGVKe;

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

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

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
} _KLerrorGVKd;

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 synchronization_;
} _KLtimeout_expiredGYthreadsVdylan;

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

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(24);
define__KLbyte_stringGVKd(15);
define__KLbyte_stringGVKd(17);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(14);
define__KLbyte_stringGVKd(20);
define__KLbyte_stringGVKd(27);
define__KLbyte_stringGVKd(21);
define__KLbyte_stringGVKd(11);
define__KLbyte_stringGVKd(19);
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(45);
define__KLbyte_stringGVKd(33);
define__KLbyte_stringGVKd(31);

#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;
} _KLexternal_stream_accessorGYstreams_internalsVio;

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

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 head_;
  dylan_value tail_;
} _KLpairGVKd;

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

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;
} _KLintegerGVKd;

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

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

#define  define__KLbufferGYstreamsVio(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value buffer_next_; \
    dylan_value buffer_end_; \
    dylan_value buffer_position_; \
    dylan_value buffer_dirtyQ_; \
    dylan_value buffer_start_; \
    dylan_value buffer_on_page_bits_; \
    dylan_value buffer_off_page_bits_; \
    dylan_value buffer_use_count_; \
    dylan_value buffer_owning_stream_; \
    dylan_value size_; \
    char buffer_element_[nrepeated+1]; \
  } _KLbufferGYstreamsVio_##nrepeated;

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

typedef struct {
  dylan_value wrapper;
} _KLstreamGYcommon_extensionsVcommon_dylan;

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 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 namespace_name_;
  dylan_value home_library_;
} _KLmoduleGVKe;

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

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 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 type_error_value_;
  dylan_value type_error_expected_type_;
} _KLtype_errorGVKd;


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value pending_operation_;
  dylan_value pending_status_;
  dylan_value pending_stream_;
  dylan_value pending_accessor_;
} _KLpending_operationGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
  dylan_value pending_operation_;
  dylan_value pending_status_;
  dylan_value pending_stream_;
  dylan_value pending_accessor_;
  dylan_value pending_file_offset_;
  dylan_value pending_buffer_;
  dylan_value pending_pool_bufferQ_;
  dylan_value pending_count_;
  dylan_value pending_buffer_offset_;
} _KLpending_writeGYstreams_internalsVio;


/* Referenced object declarations */

dylan_value KPadd_classVKeI (dylan_value);
dylan_value KLobject_dequeGZ32ZconstructorVKiMM0I (dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLobject_dequeGVKe;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLobject_dequeGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
dylan_value KLsimple_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I (dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLsimple_lock_iGYthreads_internalVdylan;
extern _KLmm_wrapperGVKi_1 KLsimple_lock_iGYthreads_internalVdylanW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLsymbolGVKd KJlock_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLclassGVKd KLnotificationGYthreadsVdylan;
extern _KLmm_wrapperGVKi_1 KLnotificationGYthreadsVdylanW;
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;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
dylan_value KmakeVKdMM35I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLlistGVKd;
extern _KLmm_wrapperGVKi_0 KLlistGVKdW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLerrorGVKd;
extern _KLmm_wrapperGVKi_0 KLerrorGVKdW;
extern _KLsealed_generic_functionGVKe KerrorVKd;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
dylan_value KmemberQVKdMM4I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe KEEVKd;
dylan_value Klock_wait_result_errorYthreads_internalVdylanMM0I (dylan_value, dylan_value);
dylan_value KgethashVKiI (dylan_value, dylan_value, dylan_value, dylan_value);
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 _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
dylan_value Kunion_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
dylan_value Kcurrent_threadYthreadsVdylanI ();
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLfunction_classGVKi KLsimple_closure_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsimple_closure_methodGVKiW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLexternal_stream_accessorGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_stream_accessorGYstreams_internalsVioW;
extern _KLincremental_generic_functionGVKe Kforward_iteration_protocolVKd;
dylan_value Kwait_forYthreadsVdylanMM4I (dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KLVKd;
extern _KLincremental_generic_functionGVKe KAVKd;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLsymbolGVKd KJcount_;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_2VKi;
extern _KLclassGVKd KLsetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsetter_methodGVKiW;
extern _KLclassGVKd KLbufferGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbufferGYstreamsVioW;
extern _KLclassGVKd KLfunctionGVKd;
extern _KLmm_wrapperGVKi_0 KLfunctionGVKdW;
extern _KLclassGVKd KLstreamGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLstreamGYcommon_extensionsVcommon_dylanW;
extern _KLincremental_generic_functionGVKe KinitializeVKd;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLsymbolGVKd KJoperation_;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LclassG_typesVKi;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kstreams_internals_moduleYdylan_userVio;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLincremental_generic_functionGVKe KaccessorYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_preferred_buffer_sizeYstreams_internalsVio;
extern _KLsymbolGVKd KJsize_;
dylan_value Kmake_Lpower_of_two_bufferGYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KEVKd;
extern _KLsymbolGVKd KJfunction_;
extern _KLsymbolGVKd KJname_;
extern _KLclassGVKd KLthreadGYthreadsVdylan;
extern _KLmm_wrapperGVKi_1 KLthreadGYthreadsVdylanW;
extern _KLincremental_generic_functionGVKe Kpush_lastVKd;
dylan_value Krelease_allYthreadsVdylanI (dylan_value, dylan_value);
extern _KLsymbolGVKd KJtype_;
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 _KLincremental_generic_functionGVKe KpopVKd;
extern _KLincremental_generic_functionGVKe KemptyQVKd;
extern _KLincremental_generic_functionGVKe KelementVKd;
extern _KLsymbolGVKd KJvalue_;
extern _KLclassGVKd KLtype_errorGVKd;
extern _KLmm_wrapperGVKi_0 KLtype_errorGVKdW;
dylan_value KputhashVKiI (dylan_value, dylan_value, dylan_value);
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);
extern dylan_value TdebuggingQTVKi;
extern dylan_value Tdebug_partsTVKi;
extern dylan_value Tdebug_out_functionTVKi;
extern dylan_value Tcurrent_handlersTVKi;

/* Defined object declarations */

extern _KLclassGVKd KLpending_operationGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLpending_operationGYstreams_internalsVioW;
extern _KLsimple_methodGVKe Kasync_check_for_errorsYstreams_internalsVio;
dylan_value Kasync_check_for_errorsYstreams_internalsVioI (dylan_value);
dylan_value Kasync_get_errorYstreams_internalsVioI (dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_get_errorF28;
static dylan_value Kanonymous_of_async_get_errorF28I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_get_errorF26;
static dylan_value Kanonymous_of_async_get_errorF26I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_get_errorF23;
static dylan_value Kanonymous_of_async_get_errorF23I ();
static _KLunionGVKe K21;
static _KLsingletonGVKd K22;
static _KLbyte_stringGVKd_31 K24;
static _KLsignatureGVKe K25;
static _KLbyte_stringGVKd_33 K27;
static _KLbyte_stringGVKd_45 K29;
static _KLsignatureGVKe K30;
static _KLsimple_object_vectorGVKd_1 K31;
extern _KLsimple_methodGVKe Kasync_wait_for_overlapping_write_completionYstreams_internalsVio;
dylan_value Kasync_wait_for_overlapping_write_completionYstreams_internalsVioI (dylan_value, dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_overlapping_write_completionF136;
static dylan_value Kanonymous_of_async_wait_for_overlapping_write_completionF136I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_overlapping_write_completionF135;
static dylan_value Kanonymous_of_async_wait_for_overlapping_write_completionF135I ();
static _KLsimple_closure_methodGVKi_0 KoverlapQF43;
static dylan_value KoverlapQF43I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_overlapping_write_completionF42;
static dylan_value Kanonymous_of_async_wait_for_overlapping_write_completionF42I ();
extern _KLclassGVKd KLpending_writeGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLpending_writeGYstreams_internalsVioW;
extern _KLsealed_generic_functionGVKe Kpending_file_offsetYstreams_internalsVio;
extern _KLsealed_generic_functionGVKe Kpending_countYstreams_internalsVio;
extern _KLgetter_methodGVKi Kpending_countYstreams_internalsVioMM0;
static _KLpairGVKd K49;
static _KLbyte_stringGVKd_13 K50;
extern _KLinstance_slot_descriptorGVKe Kpending_countYstreams_internalsVioHLpending_writeG;
extern _KLgetter_methodGVKi Kpending_file_offsetYstreams_internalsVioMM0;
static _KLpairGVKd K53;
static _KLbyte_stringGVKd_19 K54;
extern _KLinstance_slot_descriptorGVKe Kpending_file_offsetYstreams_internalsVioHLpending_writeG;
static _KLsymbolGVKd KJfile_offset_;
static _KLbyte_stringGVKd_11 K57;
static _KLimplementation_classGVKe K58;
static _KLsimple_object_vectorGVKd_9 K59;
extern _KLkeyword_methodGVKe KLpending_writeGZ32ZconstructorYstreams_internalsVioMM0;
dylan_value KLpending_writeGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K62;
static _KLsimple_object_vectorGVKd_6 K63;
static _KLsimple_object_vectorGVKd_5 K64;
extern _KLinstance_slot_descriptorGVKe Kpending_bufferYstreams_internalsVioHLpending_writeG;
extern _KLinstance_slot_descriptorGVKe Kpending_pool_bufferQYstreams_internalsVioHLpending_writeG;
extern _KLinstance_slot_descriptorGVKe Kpending_buffer_offsetYstreams_internalsVioHLpending_writeG;
static _KLsymbolGVKd KJbuffer_offset_;
extern _KLsealed_generic_functionGVKe Kpending_buffer_offsetYstreams_internalsVio;
extern _KLgetter_methodGVKi Kpending_buffer_offsetYstreams_internalsVioMM0;
static _KLpairGVKd K71;
static _KLbyte_stringGVKd_21 K72;
static _KLbyte_stringGVKd_13 K73;
extern _KLsealed_generic_functionGVKe Kpending_pool_bufferQYstreams_internalsVio;
extern _KLsealed_generic_functionGVKe Kpending_pool_bufferQ_setterYstreams_internalsVio;
extern _KLsetter_methodGVKi Kpending_pool_bufferQ_setterYstreams_internalsVioMM0;
static _KLpairGVKd K77;
static _KLbyte_stringGVKd_27 K78;
extern _KLgetter_methodGVKi Kpending_pool_bufferQYstreams_internalsVioMM0;
static _KLpairGVKd K80;
static _KLbyte_stringGVKd_20 K81;
static _KLsymbolGVKd KJbuffer_;
extern _KLsealed_generic_functionGVKe Kpending_bufferYstreams_internalsVio;
extern _KLgetter_methodGVKi Kpending_bufferYstreams_internalsVioMM0;
static _KLpairGVKd K85;
static _KLbyte_stringGVKd_14 K86;
static _KLbyte_stringGVKd_6 K87;
static _KLkeyword_signatureAvaluesGVKi K88;
static _KLsimple_object_vectorGVKd_14 K89;
static _KLsymbolGVKd KJstream_;
static _KLsymbolGVKd KJaccessor_;
static _KLbyte_stringGVKd_8 K92;
static _KLbyte_stringGVKd_6 K93;
static _KLsimple_object_vectorGVKd_7 K94;
static _KLsimple_object_vectorGVKd_1 K95;
extern _KLinstance_slot_descriptorGVKe Kpending_operationYstreams_internalsVioHLpending_operationG;
extern _KLinstance_slot_descriptorGVKe Kpending_statusYstreams_internalsVioHLpending_operationG;
extern _KLinstance_slot_descriptorGVKe Kpending_streamYstreams_internalsVioHLpending_operationG;
extern _KLinstance_slot_descriptorGVKe Kpending_accessorYstreams_internalsVioHLpending_operationG;
extern _KLsealed_generic_functionGVKe Kpending_accessorYstreams_internalsVio;
extern _KLgetter_methodGVKi Kpending_accessorYstreams_internalsVioMM0;
static _KLpairGVKd K102;
static _KLbyte_stringGVKd_16 K103;
extern _KLsealed_generic_functionGVKe Kpending_streamYstreams_internalsVio;
extern _KLgetter_methodGVKi Kpending_streamYstreams_internalsVioMM0;
static _KLpairGVKd K106;
static _KLbyte_stringGVKd_14 K107;
extern _KLsealed_generic_functionGVKe Kpending_statusYstreams_internalsVio;
extern _KLsealed_generic_functionGVKe Kpending_status_setterYstreams_internalsVio;
static _KLunionGVKe K110;
static _KLunionGVKe K111;
static _KLsingletonGVKd K112;
static _KLsymbolGVKd KJcomplete_;
static _KLbyte_stringGVKd_8 K114;
static _KLunionGVKe K115;
static _KLsingletonGVKd K116;
static _KLsymbolGVKd KJin_progress_;
static _KLbyte_stringGVKd_11 K118;
static _KLsingletonGVKd K119;
static _KLsymbolGVKd KJin_queue_;
static _KLbyte_stringGVKd_8 K121;
extern _KLsetter_methodGVKi Kpending_status_setterYstreams_internalsVioMM0;
static _KLpairGVKd K123;
static _KLbyte_stringGVKd_21 K124;
extern _KLgetter_methodGVKi Kpending_statusYstreams_internalsVioMM0;
static _KLpairGVKd K126;
static _KLbyte_stringGVKd_14 K127;
extern _KLsealed_generic_functionGVKe Kpending_operationYstreams_internalsVio;
extern _KLgetter_methodGVKi Kpending_operationYstreams_internalsVioMM0;
static _KLpairGVKd K130;
static _KLbyte_stringGVKd_17 K131;
static _KLbyte_stringGVKd_15 K132;
static _KLsignatureAvaluesGVKi K133;
static _KLsimple_object_vectorGVKd_4 K134;
static _KLsignatureGVKe K137;
static _KLsimple_object_vectorGVKd_3 K138;
extern _KLsimple_methodGVKe Kenqueue_writeYstreams_internalsVio;
dylan_value Kenqueue_writeYstreams_internalsVioI (dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF236;
static dylan_value Kanonymous_of_enqueue_writeF236I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF235;
static dylan_value Kanonymous_of_enqueue_writeF235I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF234;
static dylan_value Kanonymous_of_enqueue_writeF234I ();
dylan_value Kenqueue_operationYstreams_internalsVioI (dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF167;
static dylan_value Kanonymous_of_enqueue_writeF167I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF166;
static dylan_value Kanonymous_of_enqueue_writeF166I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF165;
static dylan_value Kanonymous_of_enqueue_writeF165I ();
static _KLsymbolGVKd KJknown_power_of_two_sizeQ_;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF163;
static dylan_value Kanonymous_of_enqueue_writeF163I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF162;
static dylan_value Kanonymous_of_enqueue_writeF162I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF161;
static dylan_value Kanonymous_of_enqueue_writeF161I ();
static _KLbyte_stringGVKd_24 K164;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF232;
static dylan_value Kanonymous_of_enqueue_operationF232I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF231;
static dylan_value Kanonymous_of_enqueue_operationF231I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF230;
static dylan_value Kanonymous_of_enqueue_operationF230I ();
extern _KLsimple_methodGVKe Kasync_io_handlerYstreams_internalsVio;
dylan_value Kasync_io_handlerYstreams_internalsVioI ();
static _KLbyte_stringGVKd_24 K176;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF185;
static dylan_value Kanonymous_of_enqueue_operationF185I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF184;
static dylan_value Kanonymous_of_enqueue_operationF184I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF183;
static dylan_value Kanonymous_of_enqueue_operationF183I ();
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF217;
static dylan_value KUhandler_functionUF217I (dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF216;
static dylan_value Kanonymous_of_async_io_handlerF216I ();
dylan_value Kget_opYstreams_internalsVioI ();
extern _KLsealed_generic_functionGVKe Kasync_post_operationYstreams_internalsVio;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF197;
static dylan_value Kanonymous_of_async_io_handlerF197I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF196;
static dylan_value Kanonymous_of_async_io_handlerF196I ();
extern _KLsimple_methodGVKe Kasync_post_operationYstreams_internalsVioMM0;
dylan_value Kasync_post_operationYstreams_internalsVioMM0I (dylan_value);
extern _KLsimple_methodGVKe Kasync_post_operationYstreams_internalsVioMM1;
dylan_value Kasync_post_operationYstreams_internalsVioMM1I (dylan_value);
static _KLpairGVKd K202;
static _KLpairGVKd K203;
static _KLsignatureGVKe K204;
static _KLbyte_stringGVKd_20 K205;
static _KLsignatureGVKe K206;
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_get_opF215;
static dylan_value Kanonymous_of_get_opF215I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_get_opF214;
static dylan_value Kanonymous_of_get_opF214I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_get_opF213;
static dylan_value Kanonymous_of_get_opF213I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF226;
static dylan_value Kanonymous_of_async_io_handlerF226I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF225;
static dylan_value Kanonymous_of_async_io_handlerF225I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF224;
static dylan_value Kanonymous_of_async_io_handlerF224I ();
static _KLsignatureGVKe K227;
static _KLsimple_object_vectorGVKd_2 K228;
static _KLsignatureGVKe K229;
static _KLunionGVKe K233;
static _KLsignatureAvaluesGVKi K237;
static _KLsimple_object_vectorGVKd_2 K238;
static _KLsimple_object_vectorGVKd_1 K239;
extern _KLsimple_methodGVKe Kenqueue_operationYstreams_internalsVio;
static _KLimplementation_classGVKe K241;
static _KLsimple_object_vectorGVKd_4 K242;
extern _KLkeyword_methodGVKe KLpending_operationGZ32ZconstructorYstreams_internalsVioMM0;
dylan_value KLpending_operationGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K245;
static _KLsimple_object_vectorGVKd_6 K246;
static _KLkeyword_signatureAvaluesGVKi K247;
static _KLsimple_object_vectorGVKd_6 K248;
static _KLsimple_object_vectorGVKd_3 K249;
static _KLbyte_stringGVKd_19 K250;
extern _KLsimple_methodGVKe Kasync_wait_for_completionYstreams_internalsVioMM0;
dylan_value Kasync_wait_for_completionYstreams_internalsVioMM0I (dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_completionF266;
static dylan_value Kanonymous_of_async_wait_for_completionF266I ();
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_completionF265;
static dylan_value Kanonymous_of_async_wait_for_completionF265I ();
static _KLsimple_closure_methodGVKi_0 KsameQF262;
static dylan_value KsameQF262I (dylan_value, dylan_value);
static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_completionF261;
static dylan_value Kanonymous_of_async_wait_for_completionF261I ();
static _KLsignatureAvaluesGVKi K263;
static _KLsimple_object_vectorGVKd_2 K264;
static _KLpairGVKd K267;

/* Indirection variables */

static dylan_value IKJfile_offset_ = &KJfile_offset_;
static dylan_value IKJbuffer_offset_ = &KJbuffer_offset_;
static dylan_value IKJbuffer_ = &KJbuffer_;
static dylan_value IKJstream_ = &KJstream_;
static dylan_value IKJaccessor_ = &KJaccessor_;
static dylan_value IKJcomplete_ = &KJcomplete_;
static dylan_value IKJin_progress_ = &KJin_progress_;
static dylan_value IKJin_queue_ = &KJin_queue_;
static dylan_value IKJknown_power_of_two_sizeQ_ = &KJknown_power_of_two_sizeQ_;

/* Variables */

dylan_value async_wait_for_completionYstreams_internalsVio = &Kasync_wait_for_completionYstreams_internalsVioMM0;
dylan_value pending_file_offsetYstreams_internalsVio = &Kpending_file_offsetYstreams_internalsVio;
dylan_value pending_bufferYstreams_internalsVio = &Kpending_bufferYstreams_internalsVio;
dylan_value pending_countYstreams_internalsVio = &Kpending_countYstreams_internalsVio;
dylan_value pending_buffer_offsetYstreams_internalsVio = &Kpending_buffer_offsetYstreams_internalsVio;
dylan_value pending_streamYstreams_internalsVio = &Kpending_streamYstreams_internalsVio;
dylan_value pending_accessorYstreams_internalsVio = &Kpending_accessorYstreams_internalsVio;
dylan_value Lpending_operationGYstreams_internalsVio = &KLpending_operationGYstreams_internalsVio;
dylan_value Lpending_writeGYstreams_internalsVio = &KLpending_writeGYstreams_internalsVio;
dylan_value Tpending_operationsTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tpending_operations_lockTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tpending_operations_add_notificationTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tpending_operations_remove_notificationTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tasync_error_tableTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tasync_error_lockTYstreams_internalsVio = &KPunboundVKi;
dylan_value Twriter_thread_lockTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tbuffer_poolTYstreams_internalsVio = &KPunboundVKi;
dylan_value Tbuffer_pool_lockTYstreams_internalsVio = &KPunboundVKi;
dylan_value enqueue_operationYstreams_internalsVio = &Kenqueue_operationYstreams_internalsVio;
dylan_value enqueue_writeYstreams_internalsVio = &Kenqueue_writeYstreams_internalsVio;
dylan_value async_wait_for_overlapping_write_completionYstreams_internalsVio = &Kasync_wait_for_overlapping_write_completionYstreams_internalsVio;
dylan_value async_check_for_errorsYstreams_internalsVio = &Kasync_check_for_errorsYstreams_internalsVio;
dylan_value Twriter_threadTYstreams_internalsVio = &KPfalseVKi;

/* Objects */

_KLclassGVKd KLpending_operationGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K250,
  &K241,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

_KLmm_wrapperGVKi_0 KLpending_operationGYstreams_internalsVioW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K241,
  (dylan_value) 1,
  17,
  33554439,
  (dylan_value) 1
};

_KLsimple_methodGVKe Kasync_check_for_errorsYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K30,
  &Kasync_check_for_errorsYstreams_internalsVioI
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_get_errorF28 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_get_errorF28I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_get_errorF26 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_get_errorF26I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_get_errorF23 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_get_errorF23I,
  (dylan_value) 1
};

static _KLunionGVKe K21 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K22,
  &KLerrorGVKd
};

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

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

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

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

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

static _KLsignatureGVKe K30 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943045,
  &K31
};

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

_KLsimple_methodGVKe Kasync_wait_for_overlapping_write_completionYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K137,
  &Kasync_wait_for_overlapping_write_completionYstreams_internalsVioI
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_overlapping_write_completionF136 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_wait_for_overlapping_write_completionF136I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_overlapping_write_completionF135 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_wait_for_overlapping_write_completionF135I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 KoverlapQF43 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_4,
  &K133,
  &KoverlapQF43I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_overlapping_write_completionF42 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_wait_for_overlapping_write_completionF42I,
  (dylan_value) 1
};

_KLclassGVKd KLpending_writeGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K132,
  &K58,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

_KLmm_wrapperGVKi_0 KLpending_writeGYstreams_internalsVioW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K58,
  (dylan_value) 1,
  37,
  33554439,
  (dylan_value) 1
};

_KLsealed_generic_functionGVKe Kpending_file_offsetYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K54,
  &K53,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe Kpending_countYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K50,
  &K49,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kpending_countYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_countYstreams_internalsVioHLpending_writeG
};

static _KLpairGVKd K49 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_countYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_13 K50 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 53,
  "pending-count"
};

_KLinstance_slot_descriptorGVKe Kpending_countYstreams_internalsVioHLpending_writeG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_writeGYstreams_internalsVio,
  &KJcount_,
  &Kpending_countYstreams_internalsVio,
  &KPfalseVKi,
  &KLintegerGVKd
};

_KLgetter_methodGVKi Kpending_file_offsetYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_file_offsetYstreams_internalsVioHLpending_writeG
};

static _KLpairGVKd K53 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_file_offsetYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_19 K54 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 77,
  "pending-file-offset"
};

_KLinstance_slot_descriptorGVKe Kpending_file_offsetYstreams_internalsVioHLpending_writeG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_writeGYstreams_internalsVio,
  &KJfile_offset_,
  &Kpending_file_offsetYstreams_internalsVio,
  &KPfalseVKi,
  &KLintegerGVKd
};

static _KLsymbolGVKd KJfile_offset_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K57
};

static _KLbyte_stringGVKd_11 K57 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 45,
  "file-offset"
};

static _KLimplementation_classGVKe K58 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433765,
  &KLpending_writeGYstreams_internalsVio,
  &KLpending_writeGYstreams_internalsVioW,
  &KPfalseVKi,
  &K59,
  (dylan_value) -3,
  &KLpending_writeGZ32ZconstructorYstreams_internalsVioMM0,
  &K62,
  &K63,
  (dylan_value) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &K64,
  &K59,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_9 K59 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 37,
  &Kpending_operationYstreams_internalsVioHLpending_operationG,
  &Kpending_statusYstreams_internalsVioHLpending_operationG,
  &Kpending_streamYstreams_internalsVioHLpending_operationG,
  &Kpending_accessorYstreams_internalsVioHLpending_operationG,
  &Kpending_file_offsetYstreams_internalsVioHLpending_writeG,
  &Kpending_bufferYstreams_internalsVioHLpending_writeG,
  &Kpending_pool_bufferQYstreams_internalsVioHLpending_writeG,
  &Kpending_countYstreams_internalsVioHLpending_writeG,
  &Kpending_buffer_offsetYstreams_internalsVioHLpending_writeG
};

_KLkeyword_methodGVKe KLpending_writeGZ32ZconstructorYstreams_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_9,
  &K88,
  &key_mep_2,
  &KLpending_writeGZ32ZconstructorYstreams_internalsVioMM0I,
  &K89
};

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

static _KLsimple_object_vectorGVKd_6 K63 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLpending_operationGYstreams_internalsVio,
  &KLpending_writeGYstreams_internalsVio,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_5 K64 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 21,
  &Kpending_file_offsetYstreams_internalsVioHLpending_writeG,
  &Kpending_bufferYstreams_internalsVioHLpending_writeG,
  &Kpending_pool_bufferQYstreams_internalsVioHLpending_writeG,
  &Kpending_countYstreams_internalsVioHLpending_writeG,
  &Kpending_buffer_offsetYstreams_internalsVioHLpending_writeG
};

_KLinstance_slot_descriptorGVKe Kpending_bufferYstreams_internalsVioHLpending_writeG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_writeGYstreams_internalsVio,
  &KJbuffer_,
  &Kpending_bufferYstreams_internalsVio,
  &KPfalseVKi,
  &KLbufferGYstreamsVio
};

_KLinstance_slot_descriptorGVKe Kpending_pool_bufferQYstreams_internalsVioHLpending_writeG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  &KPfalseVKi,
  &KLpending_writeGYstreams_internalsVio,
  &KPfalseVKi,
  &Kpending_pool_bufferQYstreams_internalsVio,
  &Kpending_pool_bufferQ_setterYstreams_internalsVio,
  &KLbooleanGVKd
};

_KLinstance_slot_descriptorGVKe Kpending_buffer_offsetYstreams_internalsVioHLpending_writeG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_writeGYstreams_internalsVio,
  &KJbuffer_offset_,
  &Kpending_buffer_offsetYstreams_internalsVio,
  &KPfalseVKi,
  &KLintegerGVKd
};

static _KLsymbolGVKd KJbuffer_offset_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K73
};

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

_KLgetter_methodGVKi Kpending_buffer_offsetYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_buffer_offsetYstreams_internalsVioHLpending_writeG
};

static _KLpairGVKd K71 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_buffer_offsetYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_21 K72 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 85,
  "pending-buffer-offset"
};

static _KLbyte_stringGVKd_13 K73 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 53,
  "buffer-offset"
};

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

_KLsealed_generic_functionGVKe Kpending_pool_bufferQ_setterYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K78,
  &K77,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsetter_methodGVKi Kpending_pool_bufferQ_setterYstreams_internalsVioMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &Kpending_pool_bufferQYstreams_internalsVioHLpending_writeG
};

static _KLpairGVKd K77 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_pool_bufferQ_setterYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_27 K78 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 109,
  "pending-pool-buffer?-setter"
};

_KLgetter_methodGVKi Kpending_pool_bufferQYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_pool_bufferQYstreams_internalsVioHLpending_writeG
};

static _KLpairGVKd K80 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_pool_bufferQYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_20 K81 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 81,
  "pending-pool-buffer?"
};

static _KLsymbolGVKd KJbuffer_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K87
};

_KLsealed_generic_functionGVKe Kpending_bufferYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K86,
  &K85,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kpending_bufferYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_bufferYstreams_internalsVioHLpending_writeG
};

static _KLpairGVKd K85 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_bufferYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_14 K86 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 57,
  "pending-buffer"
};

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

static _KLkeyword_signatureAvaluesGVKi K88 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K94,
  &KDsignature_LobjectG_typesVKi,
  &K95
};

static _KLsimple_object_vectorGVKd_14 K89 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 57,
  &KJoperation_,
  &KPunboundVKi,
  &KJstream_,
  &KPunboundVKi,
  &KJaccessor_,
  &KPunboundVKi,
  &KJfile_offset_,
  &KPunboundVKi,
  &KJbuffer_,
  &KPunboundVKi,
  &KJcount_,
  &KPunboundVKi,
  &KJbuffer_offset_,
  &KPunboundVKi
};

static _KLsymbolGVKd KJstream_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K93
};

static _KLsymbolGVKd KJaccessor_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K92
};

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

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

static _KLsimple_object_vectorGVKd_7 K94 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 29,
  &KJoperation_,
  &KJstream_,
  &KJaccessor_,
  &KJfile_offset_,
  &KJbuffer_,
  &KJcount_,
  &KJbuffer_offset_
};

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

_KLinstance_slot_descriptorGVKe Kpending_operationYstreams_internalsVioHLpending_operationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_operationGYstreams_internalsVio,
  &KJoperation_,
  &Kpending_operationYstreams_internalsVio,
  &KPfalseVKi,
  &KLfunctionGVKd
};

_KLinstance_slot_descriptorGVKe Kpending_statusYstreams_internalsVioHLpending_operationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  &KPfalseVKi,
  &KLpending_operationGYstreams_internalsVio,
  &KPfalseVKi,
  &Kpending_statusYstreams_internalsVio,
  &Kpending_status_setterYstreams_internalsVio,
  &K110
};

_KLinstance_slot_descriptorGVKe Kpending_streamYstreams_internalsVioHLpending_operationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_operationGYstreams_internalsVio,
  &KJstream_,
  &Kpending_streamYstreams_internalsVio,
  &KPfalseVKi,
  &KLstreamGYcommon_extensionsVcommon_dylan
};

_KLinstance_slot_descriptorGVKe Kpending_accessorYstreams_internalsVioHLpending_operationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLpending_operationGYstreams_internalsVio,
  &KJaccessor_,
  &Kpending_accessorYstreams_internalsVio,
  &KPfalseVKi,
  &KLexternal_stream_accessorGYstreams_internalsVio
};

_KLsealed_generic_functionGVKe Kpending_accessorYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K103,
  &K102,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kpending_accessorYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_accessorYstreams_internalsVioHLpending_operationG
};

static _KLpairGVKd K102 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_accessorYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_16 K103 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "pending-accessor"
};

_KLsealed_generic_functionGVKe Kpending_streamYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K107,
  &K106,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kpending_streamYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_streamYstreams_internalsVioHLpending_operationG
};

static _KLpairGVKd K106 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_streamYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_14 K107 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 57,
  "pending-stream"
};

_KLsealed_generic_functionGVKe Kpending_statusYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K127,
  &K126,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe Kpending_status_setterYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K124,
  &K123,
  &RSINGULAR_Labsent_engine_nodeG
};

static _KLunionGVKe K110 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K111,
  &K112
};

static _KLunionGVKe K111 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K115,
  &K116
};

static _KLsingletonGVKd K112 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KJcomplete_
};

static _KLsymbolGVKd KJcomplete_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K114
};

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

static _KLunionGVKe K115 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K22,
  &K119
};

static _KLsingletonGVKd K116 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KJin_progress_
};

static _KLsymbolGVKd KJin_progress_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K118
};

static _KLbyte_stringGVKd_11 K118 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 45,
  "in-progress"
};

static _KLsingletonGVKd K119 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KJin_queue_
};

static _KLsymbolGVKd KJin_queue_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K121
};

static _KLbyte_stringGVKd_8 K121 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 33,
  "in-queue"
};

_KLsetter_methodGVKi Kpending_status_setterYstreams_internalsVioMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &Kpending_statusYstreams_internalsVioHLpending_operationG
};

static _KLpairGVKd K123 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_status_setterYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_21 K124 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 85,
  "pending-status-setter"
};

_KLgetter_methodGVKi Kpending_statusYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_statusYstreams_internalsVioHLpending_operationG
};

static _KLpairGVKd K126 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_statusYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_14 K127 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 57,
  "pending-status"
};

_KLsealed_generic_functionGVKe Kpending_operationYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K131,
  &K130,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kpending_operationYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kpending_operationYstreams_internalsVioHLpending_operationG
};

static _KLpairGVKd K130 = {
  &KLpairGVKdW /* wrapper */,
  &Kpending_operationYstreams_internalsVioMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_17 K131 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 69,
  "pending-operation"
};

static _KLbyte_stringGVKd_15 K132 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "<pending-write>"
};

static _KLsignatureAvaluesGVKi K133 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555473,
  &K134,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_4 K134 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLobjectGVKd,
  &KLobjectGVKd,
  &KLobjectGVKd,
  &KLpending_operationGYstreams_internalsVio
};

static _KLsignatureGVKe K137 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943053,
  &K138
};

static _KLsimple_object_vectorGVKd_3 K138 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLexternal_stream_accessorGYstreams_internalsVio,
  &KLintegerGVKd,
  &KLintegerGVKd
};

_KLsimple_methodGVKe Kenqueue_writeYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K237,
  &Kenqueue_writeYstreams_internalsVioI
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF236 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF236I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF235 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF235I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF234 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF234I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF167 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF167I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF166 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF166I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF165 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF165I,
  (dylan_value) 1
};

static _KLsymbolGVKd KJknown_power_of_two_sizeQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K164
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF163 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF163I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF162 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF162I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_writeF161 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_writeF161I,
  (dylan_value) 1
};

static _KLbyte_stringGVKd_24 K164 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 97,
  "known-power-of-two-size?"
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF232 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_operationF232I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF231 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_operationF231I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF230 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_operationF230I,
  (dylan_value) 1
};

_KLsimple_methodGVKe Kasync_io_handlerYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_0,
  &K229,
  &Kasync_io_handlerYstreams_internalsVioI
};

static _KLbyte_stringGVKd_24 K176 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 97,
  "asynchronous I/O handler"
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF185 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_operationF185I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF184 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_operationF184I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_enqueue_operationF183 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_enqueue_operationF183I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF217 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K227,
  &KUhandler_functionUF217I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF216 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_io_handlerF216I,
  (dylan_value) 1
};

_KLsealed_generic_functionGVKe Kasync_post_operationYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K204,
  (dylan_value) 1,
  &K205,
  &K202,
  &RSINGULAR_Labsent_engine_nodeG
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF197 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_io_handlerF197I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF196 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_io_handlerF196I,
  (dylan_value) 1
};

_KLsimple_methodGVKe Kasync_post_operationYstreams_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K204,
  &Kasync_post_operationYstreams_internalsVioMM0I
};

_KLsimple_methodGVKe Kasync_post_operationYstreams_internalsVioMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K206,
  &Kasync_post_operationYstreams_internalsVioMM1I
};

static _KLpairGVKd K202 = {
  &KLpairGVKdW /* wrapper */,
  &Kasync_post_operationYstreams_internalsVioMM0,
  &K203
};

static _KLpairGVKd K203 = {
  &KLpairGVKdW /* wrapper */,
  &Kasync_post_operationYstreams_internalsVioMM1,
  &KPempty_listVKi
};

static _KLsignatureGVKe K204 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943045,
  &K62
};

static _KLbyte_stringGVKd_20 K205 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 81,
  "async-post-operation"
};

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

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_get_opF215 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_get_opF215I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_get_opF214 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_get_opF214I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_get_opF213 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_get_opF213I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF226 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_io_handlerF226I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF225 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_io_handlerF225I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_io_handlerF224 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_io_handlerF224I,
  (dylan_value) 1
};

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

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

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

static _KLunionGVKe K233 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K22,
  &KLthreadGYthreadsVdylan
};

static _KLsignatureAvaluesGVKi K237 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K238,
  &K239
};

static _KLsimple_object_vectorGVKd_2 K238 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLpending_writeGYstreams_internalsVio,
  &KLbooleanGVKd
};

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

_KLsimple_methodGVKe Kenqueue_operationYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K204,
  &Kenqueue_operationYstreams_internalsVioI
};

static _KLimplementation_classGVKe K241 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433745,
  &KLpending_operationGYstreams_internalsVio,
  &KLpending_operationGYstreams_internalsVioW,
  &KPfalseVKi,
  &K242,
  (dylan_value) -3,
  &KLpending_operationGZ32ZconstructorYstreams_internalsVioMM0,
  &K245,
  &K246,
  (dylan_value) 5,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K267,
  &KPempty_vectorVKi,
  &K242,
  &K242,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_4 K242 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &Kpending_operationYstreams_internalsVioHLpending_operationG,
  &Kpending_statusYstreams_internalsVioHLpending_operationG,
  &Kpending_streamYstreams_internalsVioHLpending_operationG,
  &Kpending_accessorYstreams_internalsVioHLpending_operationG
};

_KLkeyword_methodGVKe KLpending_operationGZ32ZconstructorYstreams_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_5,
  &K247,
  &key_mep_2,
  &KLpending_operationGZ32ZconstructorYstreams_internalsVioMM0I,
  &K248
};

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

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

static _KLkeyword_signatureAvaluesGVKi K247 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K249,
  &KDsignature_LobjectG_typesVKi,
  &K62
};

static _KLsimple_object_vectorGVKd_6 K248 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KJoperation_,
  &KPunboundVKi,
  &KJstream_,
  &KPunboundVKi,
  &KJaccessor_,
  &KPunboundVKi
};

static _KLsimple_object_vectorGVKd_3 K249 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KJoperation_,
  &KJstream_,
  &KJaccessor_
};

static _KLbyte_stringGVKd_19 K250 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 77,
  "<pending-operation>"
};

_KLsimple_methodGVKe Kasync_wait_for_completionYstreams_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K30,
  &Kasync_wait_for_completionYstreams_internalsVioMM0I
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_completionF266 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_wait_for_completionF266I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_completionF265 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_wait_for_completionF265I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 KsameQF262 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K263,
  &KsameQF262I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 Kanonymous_of_async_wait_for_completionF261 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K25,
  &Kanonymous_of_async_wait_for_completionF261I,
  (dylan_value) 1
};

static _KLsignatureAvaluesGVKi K263 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K264,
  &KDsignature_LbooleanG_typesVKi
};

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

static _KLpairGVKd K267 = {
  &KLpairGVKdW /* wrapper */,
  &KLpending_writeGYstreams_internalsVio,
  &KPempty_listVKi
};

/* Code */

dylan_value Kasync_check_for_errorsYstreams_internalsVioI (dylan_value accessor_) {
  dylan_value err_;
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:196
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:198
  err_ = Kasync_get_errorYstreams_internalsVioI(accessor_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:199
  if (err_ != &KPfalseVKi) {
    T6 = err_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:200
    CONGRUENT_CALL_PROLOG(&KerrorVKd, 2);
    T3 = CONGRUENT_CALL2(T6, &KPempty_vectorVKi);
    T5 = T3;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:199
    T4 = &KPfalseVKi;
    T5 = T4;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:199
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:196
  MV_SET_COUNT(0);
  return(T5);
}

dylan_value Kasync_get_errorYstreams_internalsVioI (dylan_value accessor_) {
  dylan_value T1;
  dylan_value T2;
  dylan_value T3_0;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10_0;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21_0;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28_0;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32_0;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38;
  dylan_value T39_0;
  dylan_value T40;
  dylan_value T41;
  dylan_value T42;
  dylan_value res_;
  dylan_value T44;
  _KLsimple_object_vectorGVKd_2 T45 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T46_0;
  dylan_value T47_0;
  dylan_value T48_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:186
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T4 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T4 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T5 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T6 = primitive_idQ(T5,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T7 = primitive_not(T6);
    T8 = T7;
  } else {
    T8 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T8 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T9 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T10_0 = KmemberQVKdMM4I(&KJlock_, T9, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T11 = T10_0;
    T12 = T11;
  } else {
    T12 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T12 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T13 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    CALL1(T13, &Kanonymous_of_async_get_errorF26);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T14 = primitive_wait_for_simple_lock(Tasync_error_lockTYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T15 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T15 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T16 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T17 = primitive_idQ(T16,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T18 = primitive_not(T17);
    T19 = T18;
  } else {
    T19 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T19 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T20 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T21_0 = KmemberQVKdMM4I(&KJlock_, T20, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T22 = T21_0;
    T23 = T22;
  } else {
    T23 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T23 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T24 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T25 = MAKE_CLOSURE_INITD(&Kanonymous_of_async_get_errorF28, 1, T14);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    CALL1(T24, T25);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T26 = primitive_idQ(T14,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T26 != &KPfalseVKi) {
    T31 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T27 = primitive_idQ(T14,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    if (T27 != &KPfalseVKi) {
      T30 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T28_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tasync_error_lockTYstreams_internalsVio, T14);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T29 = T28_0;
      T30 = T29;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T31 = T30;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T31 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    ENTER_UNWIND_FRAME(T1);
    if (!nlx_setjmp(FRAME_DEST(T1))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:189
      T32_0 = KgethashVKiI(Tasync_error_tableTYstreams_internalsVio, accessor_, &KPfalseVKi, &KPtrueVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      FALL_THROUGH_UNWIND(T32_0);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T33 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    if (T33 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T34 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T35 = primitive_idQ(T34,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T36 = primitive_not(T35);
      T37 = T36;
    } else {
      T37 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    if (T37 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T38 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T39_0 = KmemberQVKdMM4I(&KJlock_, T38, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T40 = T39_0;
      T41 = T40;
    } else {
      T41 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    if (T41 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      T42 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      CALL1(T42, &Kanonymous_of_async_get_errorF23);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    res_ = primitive_release_simple_lock(Tasync_error_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T44 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    if (T44 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
      Klock_release_result_errorYthreads_internalVdylanMM0I(Tasync_error_lockTYstreams_internalsVio, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    CONTINUE_UNWIND();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:189
    T47_0 = T32_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T32_0);
      primitive_type_check(T47_0, &K21);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T3_0 = T47_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T45.vector_element_[0] = &KJsynchronization_;
    T45.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T2 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T45);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T46_0 = KsignalVKdMM0I(T2, &KPempty_vectorVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T48_0 = T46_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T46_0);
      primitive_type_check(T48_0, &K21);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T3_0 = T48_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:186
  MV_SET_COUNT(1);
  return(T3_0);
}

static dylan_value Kanonymous_of_async_get_errorF28I () {
  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/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_get_errorF26I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_get_errorF23I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:188
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kasync_wait_for_overlapping_write_completionYstreams_internalsVioI (dylan_value accessor_, dylan_value offset_, dylan_value size_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13_0;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24_0;
  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;
  dylan_value T39;
  dylan_value T40;
  dylan_value T41T, T41;
  dylan_value result_T, result_;
  dylan_value T43;
  dylan_value T44;
  dylan_value T45;
  dylan_value T46;
  dylan_value T47;
  dylan_value T48;
  dylan_value T49;
  dylan_value T50;
  dylan_value T51;
  dylan_value T52;
  dylan_value T53_0;
  dylan_value T54;
  dylan_value T55;
  dylan_value T56;
  dylan_value res_;
  dylan_value T58;
  _KLsimple_object_vectorGVKd_2 T59 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T60;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:153
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T7 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T7 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T8 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T9 = primitive_idQ(T8,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T10 = primitive_not(T9);
    T11 = T10;
  } else {
    T11 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T11 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T12 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T13_0 = KmemberQVKdMM4I(&KJlock_, T12, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T14 = T13_0;
    T15 = T14;
  } else {
    T15 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T15 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T16 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    CALL1(T16, &Kanonymous_of_async_wait_for_overlapping_write_completionF135);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T17 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T18 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T18 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T19 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T20 = primitive_idQ(T19,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T21 = primitive_not(T20);
    T22 = T21;
  } else {
    T22 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T22 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T23 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T24_0 = KmemberQVKdMM4I(&KJlock_, T23, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T25 = T24_0;
    T26 = T25;
  } else {
    T26 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T26 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T27 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T28 = MAKE_CLOSURE_INITD(&Kanonymous_of_async_wait_for_overlapping_write_completionF136, 1, T17);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    CALL1(T27, T28);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T29 = primitive_idQ(T17,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T29 != &KPfalseVKi) {
    T34 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T30 = primitive_idQ(T17,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    if (T30 != &KPfalseVKi) {
      T33 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T31_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T17);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T32 = T31_0;
      T33 = T32;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T34 = T33;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T34 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    ENTER_UNWIND_FRAME(T3);
    if (!nlx_setjmp(FRAME_DEST(T3))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
    L0: ;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
        T35 = CONGRUENT_CALL1(Tpending_operationsTYstreams_internalsVio);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        T36 = T35;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        T37 = MV_GET_ELT(1);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        T38 = MV_GET_ELT(2);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        T39 = MV_GET_ELT(3);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        T40 = MV_GET_ELT(5);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        T41T = T36;
        result_T = &KPfalseVKi;
      L1: ;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          T41 = T41T;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          result_ = result_T;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          T43 = CALL3(T39, Tpending_operationsTYstreams_internalsVio, T41, T37);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          if (T43 == &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
            T44 = CALL2(T40, Tpending_operationsTYstreams_internalsVio, T41);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
            if (result_ == &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
              T45 = CALL2(T38, Tpending_operationsTYstreams_internalsVio, T41);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
              T46 = CALL4(&KoverlapQF43, size_, offset_, accessor_, T44);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
              T41T = T45;
              result_T = T46;
              goto L1;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        if (result_ != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:165
          Kwait_forYthreadsVdylanMM4I(Tpending_operations_remove_notificationTYstreams_internalsVio, &KPempty_vectorVKi, &KPfalseVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
          goto L0;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:164
      T4 = &KPfalseVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      FALL_THROUGH_UNWIND(T4);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T47 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    if (T47 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T48 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T49 = primitive_idQ(T48,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T50 = primitive_not(T49);
      T51 = T50;
    } else {
      T51 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    if (T51 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T52 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T53_0 = KmemberQVKdMM4I(&KJlock_, T52, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T54 = T53_0;
      T55 = T54;
    } else {
      T55 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    if (T55 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      T56 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      CALL1(T56, &Kanonymous_of_async_wait_for_overlapping_write_completionF42);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    res_ = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T58 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    if (T58 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
      Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    CONTINUE_UNWIND();
    T6 = T4;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T59.vector_element_[0] = &KJsynchronization_;
    T59.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T5 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T59);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T60 = KsignalVKdMM0I(T5, &KPempty_vectorVKi);
    T6 = T60;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:153
  MV_SET_COUNT(0);
  return(T6);
}

static dylan_value Kanonymous_of_async_wait_for_overlapping_write_completionF136I () {
  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/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_wait_for_overlapping_write_completionF135I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value KoverlapQF43I (dylan_value size_, dylan_value offset_, dylan_value accessor_, dylan_value op_) {
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9_0;
  dylan_value T10_0;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15_0;
  dylan_value T16;
  dylan_value T17;
  DWORD T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:156
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
  T12 = primitive_instanceQ(op_,&KLpending_writeGYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
  if (T12 != &KPfalseVKi) {
    T11 = op_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
    T13 = SLOT_VALUE(T11, 3);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
    T14 = primitive_idQ(T13,accessor_);
    T4 = T14;
  } else {
    T4 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
  if (T4 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:158
    T5 = CALL1(&Kpending_file_offsetYstreams_internalsVio, op_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:158
    CONGRUENT_CALL_PROLOG(&KLVKd, 2);
    T15_0 = CONGRUENT_CALL2(T5, offset_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:158
    T16 = T15_0;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:158
    if (T16 != &KPfalseVKi) {
      T17 = offset_;
    } else {
      T17 = T5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:158
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T18 = primitive_cast_integer_as_raw(offset_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T19 = primitive_cast_integer_as_raw(size_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T20 = primitive_machine_word_logxor(T19,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T21 = primitive_machine_word_add_signal_overflow(T18,T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T22 = primitive_cast_raw_as_integer(T21);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T6 = CALL1(&Kpending_file_offsetYstreams_internalsVio, op_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    T7 = CALL1(&Kpending_countYstreams_internalsVio, op_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    CONGRUENT_CALL_PROLOG(&KAVKd, 2);
    T8 = CONGRUENT_CALL2(T6, T7);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    CONGRUENT_CALL_PROLOG(&KLVKd, 2);
    T23 = CONGRUENT_CALL2(T22, T8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    if (T23 != &KPfalseVKi) {
      T24 = T22;
    } else {
      T24 = T8;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:159
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:160
    CONGRUENT_CALL_PROLOG(&KLVKd, 2);
    T25_0 = CONGRUENT_CALL2(T17, T24);
    T10_0 = T25_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
    T9_0 = &KPfalseVKi;
    T10_0 = T9_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:157
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:156
  MV_SET_COUNT(1);
  return(T10_0);
}

static dylan_value Kanonymous_of_async_wait_for_overlapping_write_completionF42I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:163
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value KLpending_writeGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_pending_operation_, dylan_value Uunique_pending_stream_, dylan_value Uunique_pending_accessor_, dylan_value Uunique_pending_file_offset_, dylan_value Uunique_pending_buffer_, dylan_value Uunique_pending_count_, dylan_value Uunique_pending_buffer_offset_) {
  dylan_value T10;
  dylan_value Uunique_pending_operationF11;
  dylan_value Uunique_pending_operationF12;
  dylan_value Uunique_pending_streamF13;
  dylan_value Uunique_pending_streamF14;
  dylan_value Uunique_pending_accessorF15;
  dylan_value Uunique_pending_accessorF16;
  dylan_value Uunique_pending_file_offsetF17;
  dylan_value Uunique_pending_file_offsetF18;
  dylan_value Uunique_pending_bufferF19;
  dylan_value Uunique_pending_bufferF20;
  dylan_value Uunique_pending_countF21;
  dylan_value Uunique_pending_countF22;
  dylan_value Uunique_pending_buffer_offsetF23;
  dylan_value Uunique_pending_buffer_offsetF24;
  dylan_value T25_0;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:39
  T10 = primitive_object_allocate_filled(10,&KLpending_writeGYstreams_internalsVioW,9,&KPunboundVKi,0,0,&KPunboundVKi);
  T26 = primitive_idQ(Uunique_pending_operation_,&KPunboundVKi);
  if (T26 != &KPfalseVKi) {
    Uunique_pending_operationF12 = Uunique_pending_operation_;
  } else {
    primitive_type_check(Uunique_pending_operation_, &KLfunctionGVKd);
    Uunique_pending_operationF11 = Uunique_pending_operation_;
    Uunique_pending_operationF12 = Uunique_pending_operationF11;
  }
  SLOT_VALUE_SETTER(Uunique_pending_operationF12, T10, 0);
  SLOT_VALUE_SETTER(&KPfalseVKi, T10, 1);
  T27 = primitive_idQ(Uunique_pending_stream_,&KPunboundVKi);
  if (T27 != &KPfalseVKi) {
    Uunique_pending_streamF14 = Uunique_pending_stream_;
  } else {
    primitive_type_check(Uunique_pending_stream_, &KLstreamGYcommon_extensionsVcommon_dylan);
    Uunique_pending_streamF13 = Uunique_pending_stream_;
    Uunique_pending_streamF14 = Uunique_pending_streamF13;
  }
  SLOT_VALUE_SETTER(Uunique_pending_streamF14, T10, 2);
  T28 = primitive_idQ(Uunique_pending_accessor_,&KPunboundVKi);
  if (T28 != &KPfalseVKi) {
    Uunique_pending_accessorF16 = Uunique_pending_accessor_;
  } else {
    primitive_type_check(Uunique_pending_accessor_, &KLexternal_stream_accessorGYstreams_internalsVio);
    Uunique_pending_accessorF15 = Uunique_pending_accessor_;
    Uunique_pending_accessorF16 = Uunique_pending_accessorF15;
  }
  SLOT_VALUE_SETTER(Uunique_pending_accessorF16, T10, 3);
  T29 = primitive_idQ(Uunique_pending_file_offset_,&KPunboundVKi);
  if (T29 != &KPfalseVKi) {
    Uunique_pending_file_offsetF18 = Uunique_pending_file_offset_;
  } else {
    primitive_type_check(Uunique_pending_file_offset_, &KLintegerGVKd);
    Uunique_pending_file_offsetF17 = Uunique_pending_file_offset_;
    Uunique_pending_file_offsetF18 = Uunique_pending_file_offsetF17;
  }
  SLOT_VALUE_SETTER(Uunique_pending_file_offsetF18, T10, 4);
  T30 = primitive_idQ(Uunique_pending_buffer_,&KPunboundVKi);
  if (T30 != &KPfalseVKi) {
    Uunique_pending_bufferF20 = Uunique_pending_buffer_;
  } else {
    primitive_type_check(Uunique_pending_buffer_, &KLbufferGYstreamsVio);
    Uunique_pending_bufferF19 = Uunique_pending_buffer_;
    Uunique_pending_bufferF20 = Uunique_pending_bufferF19;
  }
  SLOT_VALUE_SETTER(Uunique_pending_bufferF20, T10, 5);
  SLOT_VALUE_SETTER(&KPfalseVKi, T10, 6);
  T31 = primitive_idQ(Uunique_pending_count_,&KPunboundVKi);
  if (T31 != &KPfalseVKi) {
    Uunique_pending_countF22 = Uunique_pending_count_;
  } else {
    primitive_type_check(Uunique_pending_count_, &KLintegerGVKd);
    Uunique_pending_countF21 = Uunique_pending_count_;
    Uunique_pending_countF22 = Uunique_pending_countF21;
  }
  SLOT_VALUE_SETTER(Uunique_pending_countF22, T10, 7);
  T32 = primitive_idQ(Uunique_pending_buffer_offset_,&KPunboundVKi);
  if (T32 != &KPfalseVKi) {
    Uunique_pending_buffer_offsetF24 = Uunique_pending_buffer_offset_;
  } else {
    primitive_type_check(Uunique_pending_buffer_offset_, &KLintegerGVKd);
    Uunique_pending_buffer_offsetF23 = Uunique_pending_buffer_offset_;
    Uunique_pending_buffer_offsetF24 = Uunique_pending_buffer_offsetF23;
  }
  SLOT_VALUE_SETTER(Uunique_pending_buffer_offsetF24, T10, 8);
  APPLY2(&KinitializeVKd, T10, init_args_);
  T25_0 = T10;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:39
  MV_SET_COUNT(1);
  return(T25_0);
}

dylan_value Kenqueue_writeYstreams_internalsVioI (dylan_value op_, dylan_value return_fresh_bufferQ_) {
  volatile dylan_value T2;
  volatile dylan_value preferred_buffer_size_;
  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 T10;
  volatile dylan_value T11;
  volatile dylan_value T12_0;
  volatile dylan_value T13_0;
  volatile dylan_value T14_0;
  volatile dylan_value T15;
  volatile dylan_value T16_0;
  volatile dylan_value T17_0;
  volatile dylan_value T18;
  volatile dylan_value T19;
  volatile dylan_value T20_0;
  volatile dylan_value T21;
  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 dylan_value T31_0;
  volatile dylan_value T32;
  volatile dylan_value T33;
  volatile dylan_value T34;
  volatile dylan_value T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile dylan_value T38;
  volatile dylan_value T39;
  volatile dylan_value T40;
  volatile dylan_value T41;
  volatile dylan_value T42_0;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile dylan_value T45;
  volatile dylan_value T46;
  volatile dylan_value T47;
  volatile dylan_value T48;
  volatile dylan_value T49_0;
  volatile dylan_value T50;
  volatile dylan_value T51;
  volatile dylan_value T52;
  volatile dylan_value T53;
  volatile dylan_value T54;
  volatile dylan_value T55;
  volatile dylan_value T56;
  volatile dylan_value T57;
  volatile dylan_value T58;
  volatile dylan_value T59;
  volatile dylan_value T60_0;
  volatile dylan_value T61;
  volatile dylan_value T62;
  volatile dylan_value T63;
  volatile dylan_value T64;
  volatile dylan_value T65;
  volatile dylan_value T66;
  volatile dylan_value T67;
  volatile dylan_value T68;
  volatile dylan_value T69;
  volatile dylan_value T70;
  volatile dylan_value T71_0;
  volatile dylan_value T72;
  volatile dylan_value T73;
  volatile dylan_value T74;
  volatile dylan_value T75;
  volatile dylan_value T76;
  volatile dylan_value T77;
  volatile dylan_value T78_0;
  volatile dylan_value T79;
  volatile dylan_value T80;
  volatile dylan_value T81;
  volatile dylan_value T82;
  volatile dylan_value T83;
  volatile dylan_value T84;
  volatile dylan_value T85;
  volatile dylan_value T86;
  volatile dylan_value T87;
  volatile dylan_value T88;
  volatile dylan_value T89_0;
  volatile dylan_value T90;
  volatile dylan_value T91;
  volatile dylan_value T92;
  volatile dylan_value resF93;
  volatile dylan_value T94;
  volatile _KLsimple_object_vectorGVKd_2 T95 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile dylan_value T96;
  volatile dylan_value T97;
  volatile _KLsimple_object_vectorGVKd_4 T98 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  volatile dylan_value T99;
  volatile dylan_value T100;
  volatile dylan_value T101;
  volatile dylan_value T102;
  volatile dylan_value T103;
  volatile dylan_value T104;
  volatile dylan_value T105_0;
  volatile dylan_value T106;
  volatile dylan_value T107;
  volatile dylan_value T108;
  volatile dylan_value resF109;
  volatile dylan_value T110;
  volatile _KLsimple_object_vectorGVKd_2 T111 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile dylan_value T112_0;
  volatile dylan_value T113_0;
  volatile dylan_value T114;
  volatile dylan_value T115;
  volatile dylan_value T116;
  volatile dylan_value T117;
  volatile dylan_value T118;
  volatile dylan_value T119;
  volatile dylan_value T120_0;
  volatile dylan_value T121;
  volatile dylan_value T122;
  volatile dylan_value T123;
  volatile dylan_value T124;
  volatile dylan_value T125;
  volatile dylan_value T126;
  volatile dylan_value T127;
  volatile dylan_value T128;
  volatile dylan_value T129;
  volatile dylan_value T130;
  volatile dylan_value T131_0;
  volatile dylan_value T132;
  volatile dylan_value T133;
  volatile dylan_value T134;
  volatile dylan_value T135;
  volatile dylan_value T136;
  volatile dylan_value T137;
  volatile dylan_value T138_0;
  volatile dylan_value T139;
  volatile dylan_value T140;
  volatile dylan_value T141;
  volatile dylan_value T142;
  volatile dylan_value T143;
  volatile dylan_value T144;
  volatile dylan_value T145;
  volatile dylan_value T146;
  volatile dylan_value T147;
  volatile dylan_value T148;
  volatile dylan_value T149;
  volatile dylan_value T150_0;
  volatile dylan_value T151;
  volatile dylan_value T152;
  volatile dylan_value T153;
  volatile dylan_value resF154;
  volatile dylan_value T155;
  volatile _KLsimple_object_vectorGVKd_2 T156 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile dylan_value T157_0;
  volatile dylan_value T158_0;
  volatile dylan_value T159_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:104
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:108
  T21 = SLOT_VALUE(op_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:108
  T2 = CALL1(&KaccessorYstreams_internalsVio, T21);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:108
  preferred_buffer_size_ = CALL1(&Kaccessor_preferred_buffer_sizeYstreams_internalsVio, T2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:109
  T22 = SLOT_VALUE(op_, 5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:109
  T23 = SLOT_VALUE_INITD(T22, 9);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:109
  T24 = primitive_idQ(T23,preferred_buffer_size_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:109
  if (T24 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:114
    SLOT_VALUE_SETTER(return_fresh_bufferQ_, op_, 6);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:117
    Kenqueue_operationYstreams_internalsVioI(op_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:119
    if (return_fresh_bufferQ_ != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      T25 = TdebuggingQTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T25 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T26 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T27 = primitive_idQ(T26,&KPempty_listVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T28 = primitive_not(T27);
        T29 = T28;
      } else {
        T29 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T29 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T30 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T31_0 = KmemberQVKdMM4I(&KJlock_, T30, &KPempty_vectorVKi, &KEEVKd);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T32 = T31_0;
        T33 = T32;
      } else {
        T33 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T33 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T34 = Tdebug_out_functionTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        CALL1(T34, &Kanonymous_of_enqueue_writeF167);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      T35 = primitive_wait_for_simple_lock(Tbuffer_pool_lockTYstreams_internalsVio);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      T36 = TdebuggingQTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T36 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T37 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T38 = primitive_idQ(T37,&KPempty_listVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T39 = primitive_not(T38);
        T40 = T39;
      } else {
        T40 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T40 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T41 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T42_0 = KmemberQVKdMM4I(&KJlock_, T41, &KPempty_vectorVKi, &KEEVKd);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T43 = T42_0;
        T44 = T43;
      } else {
        T44 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T44 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T45 = Tdebug_out_functionTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T46 = MAKE_CLOSURE_INITD(&Kanonymous_of_enqueue_writeF236, 1, T35);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        CALL1(T45, T46);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      T47 = primitive_idQ(T35,(dylan_value) 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T47 != &KPfalseVKi) {
        T52 = &KPtrueVKi;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T48 = primitive_idQ(T35,(dylan_value) 5);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        if (T48 != &KPfalseVKi) {
          T51 = &KPfalseVKi;
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T49_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tbuffer_pool_lockTYstreams_internalsVio, T35);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T50 = T49_0;
          T51 = T50;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T52 = T51;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      if (T52 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        ENTER_UNWIND_FRAME(T4);
        if (!nlx_setjmp(FRAME_DEST(T4))) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:122
          T5 = Tbuffer_poolTYstreams_internalsVio;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:122
          T53 = primitive_idQ(T5,&KPempty_listVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:122
          if (T53 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            T54 = TdebuggingQTVKi;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T54 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T55 = Tdebug_partsTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T56 = primitive_idQ(T55,&KPempty_listVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T57 = primitive_not(T56);
              T58 = T57;
            } else {
              T58 = &KPfalseVKi;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T58 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T59 = Tdebug_partsTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T60_0 = KmemberQVKdMM4I(&KJlock_, T59, &KPempty_vectorVKi, &KEEVKd);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T61 = T60_0;
              T62 = T61;
            } else {
              T62 = &KPfalseVKi;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T62 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T63 = Tdebug_out_functionTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              CALL1(T63, &Kanonymous_of_enqueue_writeF166);
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            T64 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            T65 = TdebuggingQTVKi;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T65 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T66 = Tdebug_partsTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T67 = primitive_idQ(T66,&KPempty_listVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T68 = primitive_not(T67);
              T69 = T68;
            } else {
              T69 = &KPfalseVKi;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T69 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T70 = Tdebug_partsTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T71_0 = KmemberQVKdMM4I(&KJlock_, T70, &KPempty_vectorVKi, &KEEVKd);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T72 = T71_0;
              T73 = T72;
            } else {
              T73 = &KPfalseVKi;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T73 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T74 = Tdebug_out_functionTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T75 = MAKE_CLOSURE_INITD(&Kanonymous_of_enqueue_writeF235, 1, T64);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              CALL1(T74, T75);
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            T76 = primitive_idQ(T64,(dylan_value) 1);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T76 != &KPfalseVKi) {
              T81 = &KPtrueVKi;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T77 = primitive_idQ(T64,(dylan_value) 5);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              if (T77 != &KPfalseVKi) {
                T80 = &KPfalseVKi;
              } else {
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T78_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T64);
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T79 = T78_0;
                T80 = T79;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T81 = T80;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
            if (T81 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              ENTER_UNWIND_FRAME(T6);
              if (!nlx_setjmp(FRAME_DEST(T6))) {
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
              L0: ;
                  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
                  T7 = Tbuffer_poolTYstreams_internalsVio;
                  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
                  T82 = primitive_idQ(T7,&KPempty_listVKi);
                  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
                  if (T82 != &KPfalseVKi) {
                    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:125
                    Kwait_forYthreadsVdylanMM4I(Tpending_operations_remove_notificationTYstreams_internalsVio, &KPempty_vectorVKi, &KPfalseVKi);
                    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
                    goto L0;
                  }
                  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
                  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:124
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                FALL_THROUGH_UNWIND(&KPfalseVKi);
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T83 = TdebuggingQTVKi;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              if (T83 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T84 = Tdebug_partsTVKi;
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T85 = primitive_idQ(T84,&KPempty_listVKi);
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T86 = primitive_not(T85);
                T87 = T86;
              } else {
                T87 = &KPfalseVKi;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              if (T87 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T88 = Tdebug_partsTVKi;
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T89_0 = KmemberQVKdMM4I(&KJlock_, T88, &KPempty_vectorVKi, &KEEVKd);
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T90 = T89_0;
                T91 = T90;
              } else {
                T91 = &KPfalseVKi;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              if (T91 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                T92 = Tdebug_out_functionTVKi;
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                CALL1(T92, &Kanonymous_of_enqueue_writeF165);
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              resF93 = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T94 = primitive_idQ(resF93,(dylan_value) 1);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              if (T94 == &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
                Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, resF93);
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              CONTINUE_UNWIND();
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              T95.vector_element_[0] = &KJsynchronization_;
              T95.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
              T8 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T95);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
              KsignalVKdMM0I(T8, &KPempty_vectorVKi);
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:122
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:129
          T9 = Tbuffer_poolTYstreams_internalsVio;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:129
          T96 = SLOT_VALUE_INITD(T9, 0);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:130
          T10 = Tbuffer_poolTYstreams_internalsVio;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:130
          T97 = SLOT_VALUE_INITD(T10, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:130
          primitive_type_check(T97, &KLlistGVKd);
          T11 = T97;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:130
          Tbuffer_poolTYstreams_internalsVio = T11;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:132
          if (T96 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:132
            T12_0 = T96;
            T14_0 = T12_0;
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:132
            T98.vector_element_[0] = IKJknown_power_of_two_sizeQ_;
            T98.vector_element_[1] = &KPtrueVKi;
            T98.vector_element_[2] = &KJsize_;
            T98.vector_element_[3] = preferred_buffer_size_;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:132
            T13_0 = Kmake_Lpower_of_two_bufferGYstreams_internalsVioMM0I(&T98, &KPtrueVKi, preferred_buffer_size_, C(0x0));
            T14_0 = T13_0;
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:132
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          FALL_THROUGH_UNWIND(T14_0);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T99 = TdebuggingQTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        if (T99 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T100 = Tdebug_partsTVKi;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T101 = primitive_idQ(T100,&KPempty_listVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T102 = primitive_not(T101);
          T103 = T102;
        } else {
          T103 = &KPfalseVKi;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        if (T103 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T104 = Tdebug_partsTVKi;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T105_0 = KmemberQVKdMM4I(&KJlock_, T104, &KPempty_vectorVKi, &KEEVKd);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T106 = T105_0;
          T107 = T106;
        } else {
          T107 = &KPfalseVKi;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        if (T107 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          T108 = Tdebug_out_functionTVKi;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          CALL1(T108, &Kanonymous_of_enqueue_writeF163);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        resF109 = primitive_release_simple_lock(Tbuffer_pool_lockTYstreams_internalsVio);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T110 = primitive_idQ(resF109,(dylan_value) 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        if (T110 == &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
          Klock_release_result_errorYthreads_internalVdylanMM0I(Tbuffer_pool_lockTYstreams_internalsVio, resF109);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        CONTINUE_UNWIND();
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:132
        T158_0 = T14_0;
        {
          MV_CHECK_TYPE_PROLOGUE(T14_0);
          primitive_type_check(T158_0, &KLbufferGYstreamsVio);
          MV_CHECK_TYPE_EPILOGUE();
        }
        T16_0 = T158_0;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T111.vector_element_[0] = &KJsynchronization_;
        T111.vector_element_[1] = Tbuffer_pool_lockTYstreams_internalsVio;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
        T15 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T111);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T112_0 = KsignalVKdMM0I(T15, &KPempty_vectorVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
        T159_0 = T112_0;
        {
          MV_CHECK_TYPE_PROLOGUE(T112_0);
          primitive_type_check(T159_0, &KLbufferGYstreamsVio);
          MV_CHECK_TYPE_EPILOGUE();
        }
        T16_0 = T159_0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
      T17_0 = T16_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:137
      T113_0 = T22;
      T17_0 = T113_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:119
    T20_0 = T17_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:140
    Kenqueue_operationYstreams_internalsVioI(op_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T114 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T114 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T115 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T116 = primitive_idQ(T115,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T117 = primitive_not(T116);
      T118 = T117;
    } else {
      T118 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T118 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T119 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T120_0 = KmemberQVKdMM4I(&KJlock_, T119, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T121 = T120_0;
      T122 = T121;
    } else {
      T122 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T122 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T123 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      CALL1(T123, &Kanonymous_of_enqueue_writeF162);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T124 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T125 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T125 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T126 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T127 = primitive_idQ(T126,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T128 = primitive_not(T127);
      T129 = T128;
    } else {
      T129 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T129 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T130 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T131_0 = KmemberQVKdMM4I(&KJlock_, T130, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T132 = T131_0;
      T133 = T132;
    } else {
      T133 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T133 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T134 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T135 = MAKE_CLOSURE_INITD(&Kanonymous_of_enqueue_writeF234, 1, T124);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      CALL1(T134, T135);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T136 = primitive_idQ(T124,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T136 != &KPfalseVKi) {
      T141 = &KPtrueVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T137 = primitive_idQ(T124,(dylan_value) 5);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      if (T137 != &KPfalseVKi) {
        T140 = &KPfalseVKi;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T138_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T124);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T139 = T138_0;
        T140 = T139;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T141 = T140;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    if (T141 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      ENTER_UNWIND_FRAME(T18);
      if (!nlx_setjmp(FRAME_DEST(T18))) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
      L1: ;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
          T142 = SLOT_VALUE_INITD(op_, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
          CONGRUENT_CALL_PROLOG(&KEVKd, 2);
          T143 = CONGRUENT_CALL2(T142, IKJcomplete_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
          if (T143 == &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:143
            Kwait_forYthreadsVdylanMM4I(Tpending_operations_remove_notificationTYstreams_internalsVio, &KPempty_vectorVKi, &KPfalseVKi);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
            goto L1;
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:142
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        FALL_THROUGH_UNWIND(&KPfalseVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T144 = TdebuggingQTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      if (T144 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T145 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T146 = primitive_idQ(T145,&KPempty_listVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T147 = primitive_not(T146);
        T148 = T147;
      } else {
        T148 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      if (T148 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T149 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T150_0 = KmemberQVKdMM4I(&KJlock_, T149, &KPempty_vectorVKi, &KEEVKd);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T151 = T150_0;
        T152 = T151;
      } else {
        T152 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      if (T152 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        T153 = Tdebug_out_functionTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        CALL1(T153, &Kanonymous_of_enqueue_writeF161);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      resF154 = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T155 = primitive_idQ(resF154,(dylan_value) 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      if (T155 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
        Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, resF154);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      CONTINUE_UNWIND();
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      T156.vector_element_[0] = &KJsynchronization_;
      T156.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T19 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T156);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
      KsignalVKdMM0I(T19, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:146
    T157_0 = T22;
    T20_0 = T157_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:109
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:104
  MV_SET_COUNT(1);
  return(T20_0);
}

static dylan_value Kanonymous_of_enqueue_writeF236I () {
  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/io/streams/async-writes.dylan:121
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tbuffer_pool_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF235I () {
  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/io/streams/async-writes.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF234I () {
  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/io/streams/async-writes.dylan:141
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kenqueue_operationYstreams_internalsVioI (dylan_value op_) {
  volatile dylan_value T1;
  volatile dylan_value T2;
  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 T10;
  volatile dylan_value T11;
  volatile dylan_value T12;
  volatile dylan_value T13;
  volatile dylan_value T14;
  volatile dylan_value T15;
  volatile dylan_value T16_0;
  volatile dylan_value T17;
  volatile dylan_value T18;
  volatile dylan_value T19;
  volatile dylan_value T20;
  volatile dylan_value T21;
  volatile dylan_value T22;
  volatile dylan_value T23;
  volatile dylan_value T24;
  volatile dylan_value T25;
  volatile dylan_value T26;
  volatile dylan_value T27_0;
  volatile dylan_value T28;
  volatile dylan_value T29;
  volatile dylan_value T30;
  volatile dylan_value T31;
  volatile dylan_value T32;
  volatile dylan_value T33;
  volatile dylan_value T34_0;
  volatile dylan_value T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile _KLsimple_object_vectorGVKd_4 T38 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  volatile dylan_value T39;
  volatile dylan_value T40;
  volatile dylan_value T41;
  volatile dylan_value T42;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile dylan_value T45_0;
  volatile dylan_value T46;
  volatile dylan_value T47;
  volatile dylan_value T48;
  volatile dylan_value resF49;
  volatile dylan_value T50;
  volatile _KLsimple_object_vectorGVKd_2 T51 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile dylan_value T52;
  volatile dylan_value T53;
  volatile dylan_value T54;
  volatile dylan_value T55;
  volatile dylan_value T56;
  volatile dylan_value T57;
  volatile dylan_value T58_0;
  volatile dylan_value T59;
  volatile dylan_value T60;
  volatile dylan_value T61;
  volatile dylan_value T62;
  volatile dylan_value T63;
  volatile dylan_value T64;
  volatile dylan_value T65;
  volatile dylan_value T66;
  volatile dylan_value T67;
  volatile dylan_value T68;
  volatile dylan_value T69_0;
  volatile dylan_value T70;
  volatile dylan_value T71;
  volatile dylan_value T72;
  volatile dylan_value T73;
  volatile dylan_value T74;
  volatile dylan_value T75;
  volatile dylan_value T76_0;
  volatile dylan_value T77;
  volatile dylan_value T78;
  volatile dylan_value T79;
  volatile dylan_value T80;
  volatile dylan_value T81;
  volatile dylan_value T82;
  volatile dylan_value T83;
  volatile dylan_value T84;
  volatile dylan_value T85;
  volatile dylan_value T86_0;
  volatile dylan_value T87;
  volatile dylan_value T88;
  volatile dylan_value T89;
  volatile dylan_value resF90;
  volatile dylan_value T91;
  volatile _KLsimple_object_vectorGVKd_2 T92 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile dylan_value T93;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:85
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:86
  T1 = Twriter_threadTYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:86
  if (T1 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T10 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T10 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T11 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T12 = primitive_idQ(T11,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T13 = primitive_not(T12);
      T14 = T13;
    } else {
      T14 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T14 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T15 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T16_0 = KmemberQVKdMM4I(&KJlock_, T15, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T17 = T16_0;
      T18 = T17;
    } else {
      T18 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T18 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T19 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      CALL1(T19, &Kanonymous_of_enqueue_operationF230);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T20 = primitive_wait_for_simple_lock(Twriter_thread_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T21 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T21 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T22 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T23 = primitive_idQ(T22,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T24 = primitive_not(T23);
      T25 = T24;
    } else {
      T25 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T25 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T26 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T27_0 = KmemberQVKdMM4I(&KJlock_, T26, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T28 = T27_0;
      T29 = T28;
    } else {
      T29 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T29 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T30 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T31 = MAKE_CLOSURE_INITD(&Kanonymous_of_enqueue_operationF232, 1, T20);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      CALL1(T30, T31);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T32 = primitive_idQ(T20,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T32 != &KPfalseVKi) {
      T37 = &KPtrueVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T33 = primitive_idQ(T20,(dylan_value) 5);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      if (T33 != &KPfalseVKi) {
        T36 = &KPfalseVKi;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T34_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Twriter_thread_lockTYstreams_internalsVio, T20);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T35 = T34_0;
        T36 = T35;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T37 = T36;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    if (T37 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      ENTER_UNWIND_FRAME(T2);
      if (!nlx_setjmp(FRAME_DEST(T2))) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:88
        T3 = Twriter_threadTYstreams_internalsVio;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:88
        if (T3 == &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:89
          T38.vector_element_[0] = &KJfunction_;
          T38.vector_element_[1] = &Kasync_io_handlerYstreams_internalsVio;
          T38.vector_element_[2] = &KJname_;
          T38.vector_element_[3] = &K176;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:89
          CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
          T4 = CONGRUENT_CALL2(&KLthreadGYthreadsVdylan, &T38);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:89
          Twriter_threadTYstreams_internalsVio = T4;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:88
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        FALL_THROUGH_UNWIND(&KPfalseVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T39 = TdebuggingQTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      if (T39 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T40 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T41 = primitive_idQ(T40,&KPempty_listVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T42 = primitive_not(T41);
        T43 = T42;
      } else {
        T43 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      if (T43 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T44 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T45_0 = KmemberQVKdMM4I(&KJlock_, T44, &KPempty_vectorVKi, &KEEVKd);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T46 = T45_0;
        T47 = T46;
      } else {
        T47 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      if (T47 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        T48 = Tdebug_out_functionTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        CALL1(T48, &Kanonymous_of_enqueue_operationF185);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      resF49 = primitive_release_simple_lock(Twriter_thread_lockTYstreams_internalsVio);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T50 = primitive_idQ(resF49,(dylan_value) 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      if (T50 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
        Klock_release_result_errorYthreads_internalVdylanMM0I(Twriter_thread_lockTYstreams_internalsVio, resF49);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      CONTINUE_UNWIND();
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      T51.vector_element_[0] = &KJsynchronization_;
      T51.vector_element_[1] = Twriter_thread_lockTYstreams_internalsVio;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T5 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T51);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
      KsignalVKdMM0I(T5, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:86
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T52 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T52 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T53 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T54 = primitive_idQ(T53,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T55 = primitive_not(T54);
    T56 = T55;
  } else {
    T56 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T56 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T57 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T58_0 = KmemberQVKdMM4I(&KJlock_, T57, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T59 = T58_0;
    T60 = T59;
  } else {
    T60 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T60 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T61 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    CALL1(T61, &Kanonymous_of_enqueue_operationF184);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T62 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T63 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T63 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T64 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T65 = primitive_idQ(T64,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T66 = primitive_not(T65);
    T67 = T66;
  } else {
    T67 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T67 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T68 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T69_0 = KmemberQVKdMM4I(&KJlock_, T68, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T70 = T69_0;
    T71 = T70;
  } else {
    T71 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T71 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T72 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T73 = MAKE_CLOSURE_INITD(&Kanonymous_of_enqueue_operationF231, 1, T62);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    CALL1(T72, T73);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T74 = primitive_idQ(T62,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T74 != &KPfalseVKi) {
    T79 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T75 = primitive_idQ(T62,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    if (T75 != &KPfalseVKi) {
      T78 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T76_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T62);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T77 = T76_0;
      T78 = T77;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T79 = T78;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T79 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    ENTER_UNWIND_FRAME(T6);
    if (!nlx_setjmp(FRAME_DEST(T6))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:95
      CONGRUENT_CALL_PROLOG(&Kpush_lastVKd, 2);
      CONGRUENT_CALL2(Tpending_operationsTYstreams_internalsVio, op_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:96
      SLOT_VALUE_SETTER(IKJin_queue_, op_, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:97
      T7 = Krelease_allYthreadsVdylanI(Tpending_operations_add_notificationTYstreams_internalsVio, &KPempty_vectorVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      FALL_THROUGH_UNWIND(T7);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T80 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    if (T80 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T81 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T82 = primitive_idQ(T81,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T83 = primitive_not(T82);
      T84 = T83;
    } else {
      T84 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    if (T84 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T85 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T86_0 = KmemberQVKdMM4I(&KJlock_, T85, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T87 = T86_0;
      T88 = T87;
    } else {
      T88 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    if (T88 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      T89 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      CALL1(T89, &Kanonymous_of_enqueue_operationF183);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    resF90 = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T91 = primitive_idQ(resF90,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    if (T91 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
      Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, resF90);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    CONTINUE_UNWIND();
    T9 = T7;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T92.vector_element_[0] = &KJsynchronization_;
    T92.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T8 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T92);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T93 = KsignalVKdMM0I(T8, &KPempty_vectorVKi);
    T9 = T93;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:85
  MV_SET_COUNT(0);
  return(T9);
}

static dylan_value Kanonymous_of_enqueue_writeF167I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tbuffer_pool_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF166I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF165I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:123
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF163I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tbuffer_pool_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:121
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF162I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_writeF161I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:141
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_operationF232I () {
  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/io/streams/async-writes.dylan:87
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Twriter_thread_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_operationF231I () {
  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/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_operationF230I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Twriter_thread_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kasync_io_handlerYstreams_internalsVioI () {
  volatile dylan_value T0;
  volatile dylan_value Uunwind_exceptionUPexit_1_;
  volatile dylan_value Uoriginal_handlersU_;
  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 _KLsimple_object_vectorGVKd_8 T10 = {&KLsimple_object_vectorGVKdW, (dylan_value) 33};
  volatile dylan_value T11_0;
  volatile dylan_value T12;
  volatile dylan_value T13;
  volatile dylan_value T14;
  volatile dylan_value T15;
  volatile dylan_value T16;
  volatile dylan_value T17;
  volatile dylan_value T18;
  volatile dylan_value T19;
  volatile dylan_value T20;
  volatile dylan_value T21_0;
  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 dylan_value T31;
  volatile dylan_value T32_0;
  volatile dylan_value T33;
  volatile dylan_value T34;
  volatile dylan_value T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile dylan_value T38;
  volatile dylan_value T39_0;
  volatile dylan_value T40;
  volatile dylan_value T41;
  volatile dylan_value T42;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile dylan_value T45;
  volatile dylan_value T46;
  volatile dylan_value T47;
  volatile dylan_value T48;
  volatile dylan_value T49_0;
  volatile dylan_value T50;
  volatile dylan_value T51;
  volatile dylan_value T52;
  volatile dylan_value res_;
  volatile dylan_value T54;
  volatile _KLsimple_object_vectorGVKd_2 T55 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:219
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:220
L0: ;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:223
    T0 = Kget_opYstreams_internalsVioI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
    ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_1_);
    if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_1_))) {
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      Uoriginal_handlersU_ = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      T3 = MAKE_CLOSURE_INITD(&KUhandler_functionUF217, 3, Uoriginal_handlersU_, Uunwind_exceptionUPexit_1_, T0);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      T10.vector_element_[0] = &KJtype_;
      T10.vector_element_[1] = &KLerrorGVKd;
      T10.vector_element_[2] = &KJfunction_;
      T10.vector_element_[3] = T3;
      T10.vector_element_[4] = &KJtest_;
      T10.vector_element_[5] = &KPfalseVKi;
      T10.vector_element_[6] = &KJinit_arguments_;
      T10.vector_element_[7] = &KPempty_vectorVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      T11_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T10, &KLerrorGVKd, T3, &KPfalseVKi, &KPempty_vectorVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      T12 = T11_0;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      T4 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      T13 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      SLOT_VALUE_SETTER(T12, T13, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      SLOT_VALUE_SETTER(T4, T13, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      primitive_write_thread_variable(Tcurrent_handlersTVKi, T13);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      ENTER_UNWIND_FRAME(T5);
      if (!nlx_setjmp(FRAME_DEST(T5))) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:227
        T14 = SLOT_VALUE(T0, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:227
        T6 = CALL1(T14, T0);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
        FALL_THROUGH_UNWIND(T6);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersU_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      CONTINUE_UNWIND();
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
      /* invalidate Uunwind_exceptionUPexit_1_ */
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:236
    CONGRUENT_CALL_PROLOG(&Kasync_post_operationYstreams_internalsVio, 1);
    CONGRUENT_CALL1(T0);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T15 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T15 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T16 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T17 = primitive_idQ(T16,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T18 = primitive_not(T17);
      T19 = T18;
    } else {
      T19 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T19 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T20 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T21_0 = KmemberQVKdMM4I(&KJlock_, T20, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T22 = T21_0;
      T23 = T22;
    } else {
      T23 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T23 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T24 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      CALL1(T24, &Kanonymous_of_async_io_handlerF197);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T25 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T26 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T26 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T27 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T28 = primitive_idQ(T27,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T29 = primitive_not(T28);
      T30 = T29;
    } else {
      T30 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T30 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T31 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T32_0 = KmemberQVKdMM4I(&KJlock_, T31, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T33 = T32_0;
      T34 = T33;
    } else {
      T34 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T34 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T35 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T36 = MAKE_CLOSURE_INITD(&Kanonymous_of_async_io_handlerF216, 1, T25);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      CALL1(T35, T36);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T37 = primitive_idQ(T25,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T37 != &KPfalseVKi) {
      T42 = &KPtrueVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T38 = primitive_idQ(T25,(dylan_value) 5);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      if (T38 != &KPfalseVKi) {
        T41 = &KPfalseVKi;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T39_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T25);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T40 = T39_0;
        T41 = T40;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T42 = T41;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    if (T42 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      ENTER_UNWIND_FRAME(T7);
      if (!nlx_setjmp(FRAME_DEST(T7))) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:240
        SLOT_VALUE_SETTER(IKJcomplete_, T0, 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:241
        CONGRUENT_CALL_PROLOG(&KpopVKd, 1);
        CONGRUENT_CALL1(Tpending_operationsTYstreams_internalsVio);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:242
        Krelease_allYthreadsVdylanI(Tpending_operations_remove_notificationTYstreams_internalsVio, &KPempty_vectorVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        FALL_THROUGH_UNWIND(&KPfalseVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T43 = TdebuggingQTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      if (T43 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T44 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T45 = primitive_idQ(T44,&KPempty_listVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T46 = primitive_not(T45);
        T47 = T46;
      } else {
        T47 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      if (T47 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T48 = Tdebug_partsTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T49_0 = KmemberQVKdMM4I(&KJlock_, T48, &KPempty_vectorVKi, &KEEVKd);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T50 = T49_0;
        T51 = T50;
      } else {
        T51 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      if (T51 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        T52 = Tdebug_out_functionTVKi;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        CALL1(T52, &Kanonymous_of_async_io_handlerF196);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      res_ = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T54 = primitive_idQ(res_,(dylan_value) 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      if (T54 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
        Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, res_);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      CONTINUE_UNWIND();
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      T55.vector_element_[0] = &KJsynchronization_;
      T55.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T8 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T55);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
      KsignalVKdMM0I(T8, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:220
    goto L0;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:220
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:220
  T9 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:219
  MV_SET_COUNT(0);
  return(T9);
}

static dylan_value Kanonymous_of_enqueue_operationF185I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Twriter_thread_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:87
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_operationF184I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_enqueue_operationF183I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:94
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value KUhandler_functionUF217I (dylan_value e_, dylan_value Unext_handlerU_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value all_values_;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16_0;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27_0;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34_0;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38;
  dylan_value T39_0;
  dylan_value T40;
  dylan_value T41;
  dylan_value T42;
  _KLsimple_object_vectorGVKd_4 T43 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T44;
  dylan_value T45;
  dylan_value T46;
  dylan_value T47;
  dylan_value T48;
  dylan_value T49;
  dylan_value T50;
  dylan_value T51_0;
  dylan_value T52;
  dylan_value T53;
  dylan_value T54;
  dylan_value res_;
  dylan_value T56;
  _KLsimple_object_vectorGVKd_2 T57 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T58;
  dylan_value T59;
  dylan_value T60;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T10 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T10 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T11 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T12 = primitive_idQ(T11,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T13 = primitive_not(T12);
    T14 = T13;
  } else {
    T14 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T14 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T15 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T16_0 = KmemberQVKdMM4I(&KJlock_, T15, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T17 = T16_0;
    T18 = T17;
  } else {
    T18 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T18 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T19 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    CALL1(T19, &Kanonymous_of_async_io_handlerF225);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T20 = primitive_wait_for_simple_lock(Tasync_error_lockTYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T21 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T21 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T22 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T23 = primitive_idQ(T22,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T24 = primitive_not(T23);
    T25 = T24;
  } else {
    T25 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T25 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T26 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T27_0 = KmemberQVKdMM4I(&KJlock_, T26, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T28 = T27_0;
    T29 = T28;
  } else {
    T29 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T29 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T30 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T31 = MAKE_CLOSURE_INITD(&Kanonymous_of_async_io_handlerF226, 1, T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    CALL1(T30, T31);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T32 = primitive_idQ(T20,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T32 != &KPfalseVKi) {
    T37 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T33 = primitive_idQ(T20,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    if (T33 != &KPfalseVKi) {
      T36 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T34_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tasync_error_lockTYstreams_internalsVio, T20);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T35 = T34_0;
      T36 = T35;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T37 = T36;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T37 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    ENTER_UNWIND_FRAME(T3);
    if (!nlx_setjmp(FRAME_DEST(T3))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:230
      T38 = SLOT_VALUE(CREF(2), 3);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:230
      T39_0 = KgethashVKiI(Tasync_error_tableTYstreams_internalsVio, T38, &KPfalseVKi, &KPtrueVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:230
      T40 = T39_0;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:230
      if (T40 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:230
        T5 = &KPfalseVKi;
        MV_SET_ELT(0, &KPfalseVKi);
        MV_SET_COUNT(1);
        T6 = T5;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
        T41 = SLOT_VALUE_INITD(Tasync_error_tableTYstreams_internalsVio, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
        T42 = primitive_instanceQ(e_,T41);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
        if (T42 == &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
          T43.vector_element_[0] = &KJvalue_;
          T43.vector_element_[1] = e_;
          T43.vector_element_[2] = &KJtype_;
          T43.vector_element_[3] = T41;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
          CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
          T44 = CONGRUENT_CALL2(&KLtype_errorGVKd, &T43);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
          CONGRUENT_CALL_PROLOG(&KerrorVKd, 2);
          CONGRUENT_CALL2(T44, &KPempty_vectorVKi);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
        KputhashVKiI(e_, Tasync_error_tableTYstreams_internalsVio, T38);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:232
        T4 = e_;
        MV_SET_ELT(0, e_);
        MV_SET_COUNT(1);
        T6 = T4;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:230
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      FALL_THROUGH_UNWIND(T6);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T45 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    if (T45 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T46 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T47 = primitive_idQ(T46,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T48 = primitive_not(T47);
      T49 = T48;
    } else {
      T49 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    if (T49 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T50 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T51_0 = KmemberQVKdMM4I(&KJlock_, T50, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T52 = T51_0;
      T53 = T52;
    } else {
      T53 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    if (T53 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      T54 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      CALL1(T54, &Kanonymous_of_async_io_handlerF224);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    res_ = primitive_release_simple_lock(Tasync_error_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T56 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    if (T56 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
      Klock_release_result_errorYthreads_internalVdylanMM0I(Tasync_error_lockTYstreams_internalsVio, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    CONTINUE_UNWIND();
    T8 = T6;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T57.vector_element_[0] = &KJsynchronization_;
    T57.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T7 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T57);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T58 = KsignalVKdMM0I(T7, &KPempty_vectorVKi);
    T8 = T58;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
  all_values_ = MV_GET_REST_AT(T8, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
  T59 = MV_SET_REST_AT(all_values_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
  T60 = NLX(CREF(1), T59);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:226
  return(T60);
}

static dylan_value Kanonymous_of_async_io_handlerF216I () {
  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/io/streams/async-writes.dylan:239
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kget_opYstreams_internalsVioI () {
  dylan_value T0;
  dylan_value T1;
  dylan_value op_;
  dylan_value T3_0;
  dylan_value T4;
  dylan_value T5_0;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12_0;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23_0;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30_0;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35_0;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38;
  dylan_value T39;
  dylan_value T40;
  dylan_value T41;
  dylan_value T42_0;
  dylan_value T43;
  dylan_value T44;
  dylan_value T45;
  dylan_value res_;
  dylan_value T47;
  _KLsimple_object_vectorGVKd_2 T48 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T49_0;
  dylan_value T50_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:208
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T6 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T7 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T8 = primitive_idQ(T7,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T9 = primitive_not(T8);
    T10 = T9;
  } else {
    T10 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T10 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T11 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T12_0 = KmemberQVKdMM4I(&KJlock_, T11, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T13 = T12_0;
    T14 = T13;
  } else {
    T14 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T14 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T15 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    CALL1(T15, &Kanonymous_of_get_opF214);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T16 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T17 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T17 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T18 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T19 = primitive_idQ(T18,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T20 = primitive_not(T19);
    T21 = T20;
  } else {
    T21 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T21 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T22 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T23_0 = KmemberQVKdMM4I(&KJlock_, T22, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T24 = T23_0;
    T25 = T24;
  } else {
    T25 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T25 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T26 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T27 = MAKE_CLOSURE_INITD(&Kanonymous_of_get_opF215, 1, T16);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    CALL1(T26, T27);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T28 = primitive_idQ(T16,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T28 != &KPfalseVKi) {
    T33 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T29 = primitive_idQ(T16,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    if (T29 != &KPfalseVKi) {
      T32 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T30_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T16);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T31 = T30_0;
      T32 = T31;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T33 = T32;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T33 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    ENTER_UNWIND_FRAME(T0);
    if (!nlx_setjmp(FRAME_DEST(T0))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
    L0: ;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
        CONGRUENT_CALL_PROLOG(&KemptyQVKd, 1);
        T1 = CONGRUENT_CALL1(Tpending_operationsTYstreams_internalsVio);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
        if (T1 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:211
          Kwait_forYthreadsVdylanMM4I(Tpending_operations_add_notificationTYstreams_internalsVio, &KPempty_vectorVKi, &KPfalseVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
          goto L0;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:213
      CONGRUENT_CALL_PROLOG(&KelementVKd, 3);
      T35_0 = CONGRUENT_CALL3(Tpending_operationsTYstreams_internalsVio, (dylan_value) 1, &KPempty_vectorVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:213
      T34 = T35_0;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:210
      primitive_type_check(T34, &KLpending_operationGYstreams_internalsVio);
      op_ = T34;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:214
      SLOT_VALUE_SETTER(IKJin_progress_, op_, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:215
      T3_0 = op_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      FALL_THROUGH_UNWIND(T3_0);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T36 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    if (T36 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T37 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T38 = primitive_idQ(T37,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T39 = primitive_not(T38);
      T40 = T39;
    } else {
      T40 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    if (T40 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T41 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T42_0 = KmemberQVKdMM4I(&KJlock_, T41, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T43 = T42_0;
      T44 = T43;
    } else {
      T44 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    if (T44 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      T45 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      CALL1(T45, &Kanonymous_of_get_opF213);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    res_ = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T47 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    if (T47 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
      Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    CONTINUE_UNWIND();
    T5_0 = T3_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T48.vector_element_[0] = &KJsynchronization_;
    T48.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T4 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T48);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T49_0 = KsignalVKdMM0I(T4, &KPempty_vectorVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T50_0 = T49_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T49_0);
      primitive_type_check(T50_0, &KLpending_operationGYstreams_internalsVio);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T5_0 = T50_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:208
  MV_SET_COUNT(1);
  return(T5_0);
}

static dylan_value Kanonymous_of_async_io_handlerF197I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_io_handlerF196I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:239
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kasync_post_operationYstreams_internalsVioMM0I (dylan_value operation_) {
  dylan_value T2;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:254
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:254
  T2 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:254
  MV_SET_COUNT(0);
  return(T2);
}

dylan_value Kasync_post_operationYstreams_internalsVioMM1I (dylan_value operation_) {
  dylan_value T2;
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:257
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:258
  T6 = SLOT_VALUE_INITD(operation_, 6);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:258
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    T7 = SLOT_VALUE(operation_, 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    T2 = Tbuffer_poolTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    T8 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    SLOT_VALUE_SETTER(T7, T8, 0);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    SLOT_VALUE_SETTER(T2, T8, 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    Tbuffer_poolTYstreams_internalsVio = T8;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:261
    T3 = &KPfalseVKi;
    T5 = T3;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:258
    T4 = &KPfalseVKi;
    T5 = T4;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:258
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:257
  MV_SET_COUNT(0);
  return(T5);
}

static dylan_value Kanonymous_of_get_opF215I () {
  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/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_get_opF214I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_get_opF213I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:209
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_io_handlerF226I () {
  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/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_io_handlerF225I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_io_handlerF224I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tasync_error_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:229
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value KLpending_operationGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_pending_operation_, dylan_value Uunique_pending_stream_, dylan_value Uunique_pending_accessor_) {
  dylan_value T6;
  dylan_value Uunique_pending_operationF7;
  dylan_value Uunique_pending_operationF8;
  dylan_value Uunique_pending_streamF9;
  dylan_value Uunique_pending_streamF10;
  dylan_value Uunique_pending_accessorF11;
  dylan_value Uunique_pending_accessorF12;
  dylan_value T13_0;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:18
  T6 = primitive_object_allocate_filled(5,&KLpending_operationGYstreams_internalsVioW,4,&KPunboundVKi,0,0,&KPunboundVKi);
  T14 = primitive_idQ(Uunique_pending_operation_,&KPunboundVKi);
  if (T14 != &KPfalseVKi) {
    Uunique_pending_operationF8 = Uunique_pending_operation_;
  } else {
    primitive_type_check(Uunique_pending_operation_, &KLfunctionGVKd);
    Uunique_pending_operationF7 = Uunique_pending_operation_;
    Uunique_pending_operationF8 = Uunique_pending_operationF7;
  }
  SLOT_VALUE_SETTER(Uunique_pending_operationF8, T6, 0);
  SLOT_VALUE_SETTER(&KPfalseVKi, T6, 1);
  T15 = primitive_idQ(Uunique_pending_stream_,&KPunboundVKi);
  if (T15 != &KPfalseVKi) {
    Uunique_pending_streamF10 = Uunique_pending_stream_;
  } else {
    primitive_type_check(Uunique_pending_stream_, &KLstreamGYcommon_extensionsVcommon_dylan);
    Uunique_pending_streamF9 = Uunique_pending_stream_;
    Uunique_pending_streamF10 = Uunique_pending_streamF9;
  }
  SLOT_VALUE_SETTER(Uunique_pending_streamF10, T6, 2);
  T16 = primitive_idQ(Uunique_pending_accessor_,&KPunboundVKi);
  if (T16 != &KPfalseVKi) {
    Uunique_pending_accessorF12 = Uunique_pending_accessor_;
  } else {
    primitive_type_check(Uunique_pending_accessor_, &KLexternal_stream_accessorGYstreams_internalsVio);
    Uunique_pending_accessorF11 = Uunique_pending_accessor_;
    Uunique_pending_accessorF12 = Uunique_pending_accessorF11;
  }
  SLOT_VALUE_SETTER(Uunique_pending_accessorF12, T6, 3);
  APPLY2(&KinitializeVKd, T6, init_args_);
  T13_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:18
  MV_SET_COUNT(1);
  return(T13_0);
}

dylan_value Kasync_wait_for_completionYstreams_internalsVioMM0I (dylan_value accessor_) {
  dylan_value T2;
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12_0;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23_0;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30_0;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38;
  dylan_value T39;
  dylan_value T40T, T40;
  dylan_value result_T, result_;
  dylan_value T42;
  dylan_value T43;
  dylan_value T44;
  dylan_value T45;
  dylan_value T46;
  dylan_value T47;
  dylan_value T48;
  dylan_value T49;
  dylan_value T50;
  dylan_value T51;
  dylan_value T52_0;
  dylan_value T53;
  dylan_value T54;
  dylan_value T55;
  dylan_value res_;
  dylan_value T57;
  _KLsimple_object_vectorGVKd_2 T58 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T59;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:173
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T6 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T7 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T8 = primitive_idQ(T7,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T9 = primitive_not(T8);
    T10 = T9;
  } else {
    T10 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T10 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T11 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T12_0 = KmemberQVKdMM4I(&KJlock_, T11, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T13 = T12_0;
    T14 = T13;
  } else {
    T14 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T14 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T15 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    CALL1(T15, &Kanonymous_of_async_wait_for_completionF265);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T16 = primitive_wait_for_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T17 = TdebuggingQTVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T17 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T18 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T19 = primitive_idQ(T18,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T20 = primitive_not(T19);
    T21 = T20;
  } else {
    T21 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T21 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T22 = Tdebug_partsTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T23_0 = KmemberQVKdMM4I(&KJlock_, T22, &KPempty_vectorVKi, &KEEVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T24 = T23_0;
    T25 = T24;
  } else {
    T25 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T25 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T26 = Tdebug_out_functionTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T27 = MAKE_CLOSURE_INITD(&Kanonymous_of_async_wait_for_completionF266, 1, T16);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    CALL1(T26, T27);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T28 = primitive_idQ(T16,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T28 != &KPfalseVKi) {
    T33 = &KPtrueVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T29 = primitive_idQ(T16,(dylan_value) 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    if (T29 != &KPfalseVKi) {
      T32 = &KPfalseVKi;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T30_0 = Klock_wait_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, T16);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T31 = T30_0;
      T32 = T31;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T33 = T32;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T33 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    ENTER_UNWIND_FRAME(T2);
    if (!nlx_setjmp(FRAME_DEST(T2))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
    L0: ;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
        T34 = CONGRUENT_CALL1(Tpending_operationsTYstreams_internalsVio);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        T35 = T34;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        T36 = MV_GET_ELT(1);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        T37 = MV_GET_ELT(2);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        T38 = MV_GET_ELT(3);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        T39 = MV_GET_ELT(5);
;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        T40T = T35;
        result_T = &KPfalseVKi;
      L1: ;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          T40 = T40T;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          result_ = result_T;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          T42 = CALL3(T38, Tpending_operationsTYstreams_internalsVio, T40, T36);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          if (T42 == &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
            T43 = CALL2(T39, Tpending_operationsTYstreams_internalsVio, T40);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
            if (result_ == &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
              T44 = CALL2(T37, Tpending_operationsTYstreams_internalsVio, T40);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
              T45 = CALL2(&KsameQF262, accessor_, T43);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
              T40T = T44;
              result_T = T45;
              goto L1;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        if (result_ != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:180
          Kwait_forYthreadsVdylanMM4I(Tpending_operations_remove_notificationTYstreams_internalsVio, &KPempty_vectorVKi, &KPfalseVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
          goto L0;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:179
      T3 = &KPfalseVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      FALL_THROUGH_UNWIND(T3);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T46 = TdebuggingQTVKi;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    if (T46 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T47 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T48 = primitive_idQ(T47,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T49 = primitive_not(T48);
      T50 = T49;
    } else {
      T50 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    if (T50 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T51 = Tdebug_partsTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T52_0 = KmemberQVKdMM4I(&KJlock_, T51, &KPempty_vectorVKi, &KEEVKd);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T53 = T52_0;
      T54 = T53;
    } else {
      T54 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    if (T54 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      T55 = Tdebug_out_functionTVKi;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      CALL1(T55, &Kanonymous_of_async_wait_for_completionF261);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    res_ = primitive_release_simple_lock(Tpending_operations_lockTYstreams_internalsVio);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T57 = primitive_idQ(res_,(dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    if (T57 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
      Klock_release_result_errorYthreads_internalVdylanMM0I(Tpending_operations_lockTYstreams_internalsVio, res_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    CONTINUE_UNWIND();
    T5 = T3;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T58.vector_element_[0] = &KJsynchronization_;
    T58.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T4 = CONGRUENT_CALL2(&KLtimeout_expiredGYthreadsVdylan, &T58);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T59 = KsignalVKdMM0I(T4, &KPempty_vectorVKi);
    T5 = T59;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:173
  MV_SET_COUNT(0);
  return(T5);
}

static dylan_value Kanonymous_of_async_wait_for_completionF266I () {
  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/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T5.vector_element_[0] = &K29;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  T5.vector_element_[3] = CREF(0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value Kanonymous_of_async_wait_for_completionF265I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T5.vector_element_[0] = &K27;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  MV_SET_COUNT(1);
  return(T7_0);
}

static dylan_value KsameQF262I (dylan_value accessor_, dylan_value op_) {
  dylan_value T2;
  dylan_value T3;
  dylan_value T4_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:175
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:176
  T2 = SLOT_VALUE(op_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:176
  T3 = primitive_idQ(T2,accessor_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:176
  T4_0 = T3;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:175
  MV_SET_COUNT(1);
  return(T4_0);
}

static dylan_value Kanonymous_of_async_wait_for_completionF261I () {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T0 = Kcurrent_threadYthreadsVdylanI();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T1 = SLOT_VALUE_INITD(T0, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  if (T1 != &KPfalseVKi) {
    T4 = T1;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T2_0 = Kcurrent_threadYthreadsVdylanI();
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
    T3 = T2_0;
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T5.vector_element_[0] = &K24;
  T5.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  T5.vector_element_[2] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T6 = primitive_copy_vector(&T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  T7_0 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:178
  MV_SET_COUNT(1);
  return(T7_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJfile_offset_);
    if (T0 != &KJfile_offset_) {
      primitive_repeated_slot_value_setter(T0, &K94, 1, 3);
      primitive_repeated_slot_value_setter(T0, &K89, 1, 6);
      primitive_slot_value_setter(T0, &Kpending_file_offsetYstreams_internalsVioHLpending_writeG, 3);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJbuffer_offset_);
    if (T0 != &KJbuffer_offset_) {
      primitive_repeated_slot_value_setter(T0, &K94, 1, 6);
      primitive_repeated_slot_value_setter(T0, &K89, 1, 12);
      primitive_slot_value_setter(T0, &Kpending_buffer_offsetYstreams_internalsVioHLpending_writeG, 3);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJbuffer_);
    if (T0 != &KJbuffer_) {
      primitive_repeated_slot_value_setter(T0, &K94, 1, 4);
      primitive_repeated_slot_value_setter(T0, &K89, 1, 8);
      primitive_slot_value_setter(T0, &Kpending_bufferYstreams_internalsVioHLpending_writeG, 3);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJstream_);
    if (T0 != &KJstream_) {
      primitive_repeated_slot_value_setter(T0, &K249, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K248, 1, 2);
      primitive_slot_value_setter(T0, &Kpending_streamYstreams_internalsVioHLpending_operationG, 3);
      primitive_repeated_slot_value_setter(T0, &K94, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K89, 1, 2);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJaccessor_);
    if (T0 != &KJaccessor_) {
      primitive_repeated_slot_value_setter(T0, &K249, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K248, 1, 4);
      primitive_slot_value_setter(T0, &Kpending_accessorYstreams_internalsVioHLpending_operationG, 3);
      primitive_repeated_slot_value_setter(T0, &K94, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K89, 1, 4);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJcomplete_);
    if (T0 != &KJcomplete_) {
      IKJcomplete_ = T0;
      primitive_slot_value_setter(T0, &K112, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJin_progress_);
    if (T0 != &KJin_progress_) {
      IKJin_progress_ = T0;
      primitive_slot_value_setter(T0, &K116, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJin_queue_);
    if (T0 != &KJin_queue_) {
      IKJin_queue_ = T0;
      primitive_slot_value_setter(T0, &K119, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJknown_power_of_two_sizeQ_);
    if (T0 != &KJknown_power_of_two_sizeQ_) {
      IKJknown_power_of_two_sizeQ_ = T0;
    }
  }
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:18
  T0 = KPadd_classVKeI(&KLpending_operationGYstreams_internalsVio);
  goto I0;
}
I0:

  return;
}

/* USER INIT CODE */

void _Init_io__X_13Easync_writes_for_user () {
{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:62
  T2_0 = KLobject_dequeGZ32ZconstructorVKiMM0I(&KLobject_dequeGVKe, &KPempty_vectorVKi, &KLobjectGVKd);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:62
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:62
  Tpending_operationsTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:62
  T0 = &KPfalseVKi;
  goto I3;
}
I3:

{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:64
  T2_0 = KLsimple_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I(&KLsimple_lock_iGYthreads_internalVdylan, &KPempty_vectorVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:64
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:63
  Tpending_operations_lockTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:63
  T0 = &KPfalseVKi;
  goto I4;
}
I4:

{
  dylan_value T0;
  dylan_value T1;
  _KLsimple_object_vectorGVKd_2 T2 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:66
  T2.vector_element_[0] = &KJlock_;
  T2.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:66
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T0 = CONGRUENT_CALL2(&KLnotificationGYthreadsVdylan, &T2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:65
  Tpending_operations_add_notificationTYstreams_internalsVio = T0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:65
  T1 = &KPfalseVKi;
  goto I5;
}
I5:

{
  dylan_value T0;
  dylan_value T1;
  _KLsimple_object_vectorGVKd_2 T2 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:68
  T2.vector_element_[0] = &KJlock_;
  T2.vector_element_[1] = Tpending_operations_lockTYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:68
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T0 = CONGRUENT_CALL2(&KLnotificationGYthreadsVdylan, &T2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:67
  Tpending_operations_remove_notificationTYstreams_internalsVio = T0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:67
  T1 = &KPfalseVKi;
  goto I6;
}
I6:

{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:71
  T2_0 = KLobject_tableGZ32ZconstructorVKiMM0I(&KLobject_tableGVKd, &KPempty_vectorVKi, &KLobjectGVKd, (dylan_value) 41, &Kdefault_grow_sizeVKe, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:71
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:71
  Tasync_error_tableTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:71
  T0 = &KPfalseVKi;
  goto I7;
}
I7:

{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:72
  T2_0 = KLsimple_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I(&KLsimple_lock_iGYthreads_internalVdylan, &KPempty_vectorVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:72
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:72
  Tasync_error_lockTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:72
  T0 = &KPfalseVKi;
  goto I8;
}
I8:

{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:76
  T2_0 = KLsimple_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I(&KLsimple_lock_iGYthreads_internalVdylan, &KPempty_vectorVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:76
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:76
  Twriter_thread_lockTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:76
  T0 = &KPfalseVKi;
  goto I9;
}
I9:

{
  dylan_value T0;
  dylan_value T1;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:79
  T1 = KmakeVKdMM35I(&KLlistGVKd, &KPempty_vectorVKi, (dylan_value) 65, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:79
  Tbuffer_poolTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:79
  T0 = &KPfalseVKi;
  goto I10;
}
I10:

{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:80
  T2_0 = KLsimple_lock_iGZ32ZconstructorYthreads_internalVdylanMM0I(&KLsimple_lock_iGYthreads_internalVdylan, &KPempty_vectorVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:80
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:80
  Tbuffer_pool_lockTYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/async-writes.dylan:80
  T0 = &KPfalseVKi;
  goto I11;
}
I11:

  return;
}


/* eof */
