#include "opendylan/run-time.h"

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

/* Typedefs for referenced classes */

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value 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 xep_;
  dylan_value function_signature_;
  dylan_value mep_;
} _KLsimple_methodGVKe;

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

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

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

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

#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 symbol_name_;
} _KLsymbolGVKd;

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(28);
define__KLbyte_stringGVKd(35);
define__KLbyte_stringGVKd(4);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(20);

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLstreamGYcommon_extensionsVcommon_dylan;

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

typedef struct {
  dylan_value wrapper;
} _KLexternal_stream_accessorGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
} _KLexternal_file_accessorGYstreams_internalsVio;

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

typedef struct {
  dylan_value wrapper;
  dylan_value 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_;
} _KLsetter_methodGVKi;

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

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


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value wrapper_file_accessor_stream_;
} _KLwrapper_file_accessorGYsystem_internalsVsystem;


/* Referenced object declarations */

dylan_value KPadd_classVKeI (dylan_value);
dylan_value KPadd_methodVKnI (dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kplatform_accessor_classYstreams_internalsVio;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLlibraryGVKe Ksystem_libraryYdylan_userVsystem;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kaccessor_openYstreams_internalsVio;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLincremental_generic_functionGVKe Kaccessor_closeYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_openQYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_preferred_buffer_sizeYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_read_intoXYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_write_fromYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_force_outputYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_wait_for_completionYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_synchronizeYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_newline_sequenceYstreams_internalsVio;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLsealed_generic_functionGVKe Knewline_sequenceYstreams_internalsVio;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LsequenceG_typesVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLincremental_generic_functionGVKe Ksynchronize_outputYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLexternal_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_streamGYstreams_internalsVioW;
extern _KLincremental_generic_functionGVKe Kwait_for_io_completionYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kforce_outputYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLbufferGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbufferGYstreamsVioW;
extern _KLincremental_generic_functionGVKe Kstream_output_bufferYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe KwriteYstreams_protocolVcommon_dylan;
extern _KLsymbolGVKd KJstart_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLsymbolGVKd KJend_;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLincremental_generic_functionGVKe Kread_intoXYstreams_protocolVcommon_dylan;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LintegerG_typesVKi;
extern _KLincremental_generic_functionGVKe Kstream_openQYstreams_protocolVcommon_dylan;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLincremental_generic_functionGVKe KcloseYcommon_extensionsVcommon_dylan;
extern _KLsymbolGVKd KJabortQ_;
extern _KLsymbolGVKd KJwaitQ_;
extern _KLsymbolGVKd KJdirection_;
extern _KLsymbolGVKd KJif_exists_;
extern _KLsymbolGVKd KJif_does_not_exist_;
extern _KLclassGVKd KLkeyword_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureGVKeW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLstreamGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLstreamGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLclassGVKd KLexternal_stream_accessorGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_stream_accessorGYstreams_internalsVioW;
extern _KLclassGVKd KLexternal_file_accessorGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_file_accessorGYstreams_internalsVioW;
extern _KLincremental_generic_functionGVKe KinitializeVKd;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LclassG_typesVKi;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_2VKi;
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 KLsetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsetter_methodGVKiW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Ksystem_internals_moduleYdylan_userVsystem;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;

/* Defined object declarations */

extern _KLclassGVKd KLwrapper_file_accessorGYsystem_internalsVsystem;
extern _KLmm_wrapperGVKi_0 KLwrapper_file_accessorGYsystem_internalsVsystemW;
extern _KLsimple_methodGVKe Kplatform_accessor_classYstreams_internalsVioMsystemM0;
dylan_value Kplatform_accessor_classYstreams_internalsVioMsystemM0I (dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kaccessor_openYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_openYstreams_internalsVioMsystemM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kaccessor_closeYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_closeYstreams_internalsVioMsystemM0I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kaccessor_openQYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_openQYstreams_internalsVioMsystemM0I (dylan_value);
extern _KLsimple_methodGVKe Kaccessor_preferred_buffer_sizeYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_preferred_buffer_sizeYstreams_internalsVioMsystemM0I (dylan_value);
extern _KLkeyword_methodGVKe Kaccessor_read_intoXYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_read_intoXYstreams_internalsVioMsystemM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kaccessor_write_fromYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_write_fromYstreams_internalsVioMsystemM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kaccessor_force_outputYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_force_outputYstreams_internalsVioMsystemM0I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kaccessor_wait_for_completionYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_wait_for_completionYstreams_internalsVioMsystemM0I (dylan_value);
extern _KLsimple_methodGVKe Kaccessor_synchronizeYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_synchronizeYstreams_internalsVioMsystemM0I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kaccessor_newline_sequenceYstreams_internalsVioMsystemM0;
dylan_value Kaccessor_newline_sequenceYstreams_internalsVioMsystemM0I (dylan_value);
static _KLsignatureAvaluesGVKi K36;
static _KLsimple_object_vectorGVKd_1 K37;
static _KLsignatureGVKe K38;
static _KLsimple_object_vectorGVKd_2 K39;
static _KLsignatureGVKe K40;
static _KLkeyword_signatureAvaluesGVKi K41;
static _KLsimple_object_vectorGVKd_4 K42;
static _KLsymbolGVKd KJbuffer_;
static _KLsymbolGVKd KJreturn_fresh_bufferQ_;
static _KLbyte_stringGVKd_20 K45;
static _KLbyte_stringGVKd_6 K46;
static _KLsimple_object_vectorGVKd_4 K47;
static _KLsimple_object_vectorGVKd_2 K48;
static _KLsimple_object_vectorGVKd_2 K49;
static _KLsymbolGVKd KJon_end_of_stream_;
static _KLbyte_stringGVKd_16 K51;
static _KLkeyword_signatureAvaluesGVKi K52;
static _KLsimple_object_vectorGVKd_2 K53;
static _KLsimple_object_vectorGVKd_1 K54;
static _KLsignatureAvaluesGVKi K55;
static _KLsignatureAvaluesGVKi K56;
static _KLkeyword_signatureAvaluesGVKi K57;
static _KLsimple_object_vectorGVKd_4 K58;
static _KLsimple_object_vectorGVKd_2 K59;
static _KLkeyword_signatureGVKe K60;
static _KLsimple_object_vectorGVKd_6 K61;
static _KLsimple_object_vectorGVKd_2 K62;
static _KLsimple_object_vectorGVKd_3 K63;
static _KLsignatureAvaluesGVKi K64;
static _KLsimple_object_vectorGVKd_2 K65;
static _KLsimple_object_vectorGVKd_1 K66;
static _KLsingletonGVKd K67;
static _KLsingletonGVKd K68;
static _KLsymbolGVKd KJfile_;
static _KLbyte_stringGVKd_4 K70;
static _KLimplementation_classGVKe K71;
static _KLsimple_object_vectorGVKd_1 K72;
extern _KLkeyword_methodGVKe KLwrapper_file_accessorGZ32ZconstructorYsystem_internalsVsystemMM0;
dylan_value KLwrapper_file_accessorGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K75;
static _KLsimple_object_vectorGVKd_6 K76;
static _KLkeyword_signatureAvaluesGVKi K77;
static _KLsimple_object_vectorGVKd_2 K78;
static _KLsymbolGVKd KJstream_;
static _KLbyte_stringGVKd_6 K80;
static _KLsimple_object_vectorGVKd_1 K81;
extern _KLinstance_slot_descriptorGVKe Kwrapper_file_accessor_streamYsystem_internalsVsystemHLwrapper_file_accessorG;
extern _KLsealed_generic_functionGVKe Kwrapper_file_accessor_streamYsystem_internalsVsystem;
extern _KLsealed_generic_functionGVKe Kwrapper_file_accessor_stream_setterYsystem_internalsVsystem;
extern _KLsetter_methodGVKi Kwrapper_file_accessor_stream_setterYsystem_internalsVsystemMM0;
static _KLpairGVKd K86;
static _KLbyte_stringGVKd_35 K87;
extern _KLgetter_methodGVKi Kwrapper_file_accessor_streamYsystem_internalsVsystemMM0;
static _KLpairGVKd K89;
static _KLbyte_stringGVKd_28 K90;
static _KLbyte_stringGVKd_23 K91;

/* Indirection variables */

static dylan_value IKJbuffer_ = &KJbuffer_;
static dylan_value IKJreturn_fresh_bufferQ_ = &KJreturn_fresh_bufferQ_;
static dylan_value IKJon_end_of_stream_ = &KJon_end_of_stream_;
static dylan_value IKJfile_ = &KJfile_;
static dylan_value IKJstream_ = &KJstream_;

/* Variables */

dylan_value Lwrapper_file_accessorGYsystem_internalsVsystem = &KLwrapper_file_accessorGYsystem_internalsVsystem;

/* Objects */

_KLclassGVKd KLwrapper_file_accessorGYsystem_internalsVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K91,
  &K71,
  (dylan_value) 1,
  &Ksystem_internals_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLwrapper_file_accessorGYsystem_internalsVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K71,
  (dylan_value) 1,
  5,
  33554439,
  (dylan_value) 1
};

_KLsimple_methodGVKe Kplatform_accessor_classYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K64,
  &Kplatform_accessor_classYstreams_internalsVioMsystemM0I
};

_KLkeyword_methodGVKe Kaccessor_openYstreams_internalsVioMsystemM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_6,
  &K60,
  &key_mep_6,
  &Kaccessor_openYstreams_internalsVioMsystemM0I,
  &K61
};

_KLkeyword_methodGVKe Kaccessor_closeYstreams_internalsVioMsystemM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K57,
  &key_mep_4,
  &Kaccessor_closeYstreams_internalsVioMsystemM0I,
  &K58
};

_KLsimple_methodGVKe Kaccessor_openQYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K56,
  &Kaccessor_openQYstreams_internalsVioMsystemM0I
};

_KLsimple_methodGVKe Kaccessor_preferred_buffer_sizeYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K55,
  &Kaccessor_preferred_buffer_sizeYstreams_internalsVioMsystemM0I
};

_KLkeyword_methodGVKe Kaccessor_read_intoXYstreams_internalsVioMsystemM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_6,
  &K52,
  &key_mep_6,
  &Kaccessor_read_intoXYstreams_internalsVioMsystemM0I,
  &K53
};

_KLkeyword_methodGVKe Kaccessor_write_fromYstreams_internalsVioMsystemM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_7,
  &K41,
  &key_mep_7,
  &Kaccessor_write_fromYstreams_internalsVioMsystemM0I,
  &K42
};

_KLsimple_methodGVKe Kaccessor_force_outputYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K38,
  &Kaccessor_force_outputYstreams_internalsVioMsystemM0I
};

_KLsimple_methodGVKe Kaccessor_wait_for_completionYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K40,
  &Kaccessor_wait_for_completionYstreams_internalsVioMsystemM0I
};

_KLsimple_methodGVKe Kaccessor_synchronizeYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K38,
  &Kaccessor_synchronizeYstreams_internalsVioMsystemM0I
};

_KLsimple_methodGVKe Kaccessor_newline_sequenceYstreams_internalsVioMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K36,
  &Kaccessor_newline_sequenceYstreams_internalsVioMsystemM0I
};

static _KLsignatureAvaluesGVKi K36 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K37,
  &KDsignature_LsequenceG_typesVKi
};

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

static _KLsignatureGVKe K38 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943049,
  &K39
};

static _KLsimple_object_vectorGVKd_2 K39 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLwrapper_file_accessorGYsystem_internalsVsystem,
  &KLexternal_streamGYstreams_internalsVio
};

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

static _KLkeyword_signatureAvaluesGVKi K41 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33818641,
  &K47,
  &K48,
  &KDsignature_LobjectG_typesVKi,
  &K49
};

static _KLsimple_object_vectorGVKd_4 K42 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJbuffer_,
  &KPfalseVKi,
  &KJreturn_fresh_bufferQ_,
  &KPfalseVKi
};

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

static _KLsymbolGVKd KJreturn_fresh_bufferQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K45
};

static _KLbyte_stringGVKd_20 K45 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 81,
  "return-fresh-buffer?"
};

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

static _KLsimple_object_vectorGVKd_4 K47 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLwrapper_file_accessorGYsystem_internalsVsystem,
  &KLexternal_streamGYstreams_internalsVio,
  &KLintegerGVKd,
  &KLintegerGVKd
};

static _KLsimple_object_vectorGVKd_2 K48 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJbuffer_,
  &KJreturn_fresh_bufferQ_
};

static _KLsimple_object_vectorGVKd_2 K49 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLintegerGVKd,
  &KLbufferGYstreamsVio
};

static _KLsymbolGVKd KJon_end_of_stream_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K51
};

static _KLbyte_stringGVKd_16 K51 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "on-end-of-stream"
};

static _KLkeyword_signatureAvaluesGVKi K52 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33817617,
  &K47,
  &K54,
  &KDsignature_LobjectG_typesVKi,
  &KDsignature_LintegerG_typesVKi
};

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

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

static _KLsignatureAvaluesGVKi K55 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K37,
  &KDsignature_LintegerG_typesVKi
};

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

static _KLkeyword_signatureAvaluesGVKi K57 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34866181,
  &K37,
  &K59,
  &KDsignature_LobjectG_typesVKi,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_4 K58 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJabortQ_,
  &KPfalseVKi,
  &KJwaitQ_,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_2 K59 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJabortQ_,
  &KJwaitQ_
};

static _KLkeyword_signatureGVKe K60 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 42729481,
  &K62,
  &K63,
  &KDsignature_LobjectG_typesVKi
};

static _KLsimple_object_vectorGVKd_6 K61 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KJdirection_,
  &KPfalseVKi,
  &KJif_exists_,
  &KPfalseVKi,
  &KJif_does_not_exist_,
  &KPfalseVKi
};

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

static _KLsimple_object_vectorGVKd_3 K63 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KJdirection_,
  &KJif_exists_,
  &KJif_does_not_exist_
};

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

static _KLsimple_object_vectorGVKd_2 K65 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &K68,
  &KLstreamGYcommon_extensionsVcommon_dylan
};

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

static _KLsingletonGVKd K67 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLwrapper_file_accessorGYsystem_internalsVsystem
};

static _KLsingletonGVKd K68 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KJfile_
};

static _KLsymbolGVKd KJfile_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K70
};

static _KLbyte_stringGVKd_4 K70 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 17,
  "file"
};

static _KLimplementation_classGVKe K71 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433733,
  &KLwrapper_file_accessorGYsystem_internalsVsystem,
  &KLwrapper_file_accessorGYsystem_internalsVsystemW,
  &KPfalseVKi,
  &K72,
  (dylan_value) -3,
  &KLwrapper_file_accessorGZ32ZconstructorYsystem_internalsVsystemMM0,
  &K75,
  &K76,
  (dylan_value) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &K72,
  &K72,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

_KLkeyword_methodGVKe KLwrapper_file_accessorGZ32ZconstructorYsystem_internalsVsystemMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K77,
  &key_mep_2,
  &KLwrapper_file_accessorGZ32ZconstructorYsystem_internalsVsystemMM0I,
  &K78
};

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

static _KLsimple_object_vectorGVKd_6 K76 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLexternal_stream_accessorGYstreams_internalsVio,
  &KLexternal_file_accessorGYstreams_internalsVio,
  &KLwrapper_file_accessorGYsystem_internalsVsystem,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLkeyword_signatureAvaluesGVKi K77 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K81,
  &KDsignature_LobjectG_typesVKi,
  &K37
};

static _KLsimple_object_vectorGVKd_2 K78 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJstream_,
  &KPunboundVKi
};

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

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

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

_KLinstance_slot_descriptorGVKe Kwrapper_file_accessor_streamYsystem_internalsVsystemHLwrapper_file_accessorG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLwrapper_file_accessorGYsystem_internalsVsystem,
  &KJstream_,
  &Kwrapper_file_accessor_streamYsystem_internalsVsystem,
  &Kwrapper_file_accessor_stream_setterYsystem_internalsVsystem,
  &KLobjectGVKd
};

_KLsealed_generic_functionGVKe Kwrapper_file_accessor_streamYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K90,
  &K89,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe Kwrapper_file_accessor_stream_setterYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K87,
  &K86,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsetter_methodGVKi Kwrapper_file_accessor_stream_setterYsystem_internalsVsystemMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &Kwrapper_file_accessor_streamYsystem_internalsVsystemHLwrapper_file_accessorG
};

static _KLpairGVKd K86 = {
  &KLpairGVKdW /* wrapper */,
  &Kwrapper_file_accessor_stream_setterYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_35 K87 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 141,
  "wrapper-file-accessor-stream-setter"
};

_KLgetter_methodGVKi Kwrapper_file_accessor_streamYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kwrapper_file_accessor_streamYsystem_internalsVsystemHLwrapper_file_accessorG
};

static _KLpairGVKd K89 = {
  &KLpairGVKdW /* wrapper */,
  &Kwrapper_file_accessor_streamYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_28 K90 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 113,
  "wrapper-file-accessor-stream"
};

static _KLbyte_stringGVKd_23 K91 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "<wrapper-file-accessor>"
};

/* Code */

dylan_value Kplatform_accessor_classYstreams_internalsVioMsystemM0I (dylan_value type_, dylan_value locator_) {
  dylan_value T3_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:16
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:19
  T3_0 = &KLwrapper_file_accessorGYsystem_internalsVsystem;
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:16
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kaccessor_openYstreams_internalsVioMsystemM0I (dylan_value accessor_, dylan_value locator_, dylan_value Urest_, dylan_value direction_, dylan_value if_exists_, dylan_value if_does_not_exist_) {
  dylan_value T7;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:22
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:27
  SLOT_VALUE_SETTER(locator_, accessor_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:27
  T7 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:22
  MV_SET_COUNT(0);
  return(T7);
}

dylan_value Kaccessor_closeYstreams_internalsVioMsystemM0I (dylan_value x_, dylan_value keys_, dylan_value abortQ_, dylan_value waitQ_) {
  dylan_value T5;
  dylan_value T6_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:30
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:33
  T5 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:34
  T6_0 = APPLY2(&KcloseYcommon_extensionsVcommon_dylan, T5, keys_);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:30
  MV_SET_COUNT(1);
  return(T6_0);
}

dylan_value Kaccessor_openQYstreams_internalsVioMsystemM0I (dylan_value x_) {
  dylan_value T2_0;
  dylan_value T3;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:37
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:40
  T3 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:41
  T2_0 = CALL1(&Kstream_openQYstreams_protocolVcommon_dylan, T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:37
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value Kaccessor_preferred_buffer_sizeYstreams_internalsVioMsystemM0I (dylan_value x_) {
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:44
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:47
  T2_0 = (dylan_value) 4097;
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:44
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value Kaccessor_read_intoXYstreams_internalsVioMsystemM0I (dylan_value x_, dylan_value stream_, dylan_value offset_, dylan_value count_, dylan_value Urest_, dylan_value buffer_) {
  dylan_value T7;
  dylan_value T8;
  dylan_value T9_0;
  dylan_value T10_0;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:50
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:54
  if (buffer_ != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:54
    primitive_type_check(buffer_, &KLbufferGYstreamsVio);
    T11 = buffer_;
    T8 = T11;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:54
    T7 = CALL1(&Kstream_output_bufferYstreams_internalsVio, stream_);
    // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:54
    primitive_type_check(T7, &KLbufferGYstreamsVio);
    T12 = T7;
    T8 = T12;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:54
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:55
  T13 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:56
  T9_0 = CALL7(&Kread_intoXYstreams_protocolVcommon_dylan, T13, count_, T8, &KJstart_, offset_, IKJon_end_of_stream_, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:50
  T10_0 = T9_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T9_0);
    primitive_type_check(T10_0, &KLintegerGVKd);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:50
  MV_SET_COUNT(1);
  return(T10_0);
}

dylan_value Kaccessor_write_fromYstreams_internalsVioMsystemM0I (dylan_value x_, dylan_value stream_, dylan_value offset_, dylan_value count_, dylan_value Urest_, dylan_value buffer_, dylan_value return_fresh_bufferQ_) {
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  DWORD T16;
  dylan_value T17;
  dylan_value T18_0;
  dylan_value T18_1;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:59
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:64
  if (buffer_ != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:64
    primitive_type_check(buffer_, &KLbufferGYstreamsVio);
    T10 = buffer_;
    T9 = T10;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:64
    T8 = CALL1(&Kstream_output_bufferYstreams_internalsVio, stream_);
    // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:64
    primitive_type_check(T8, &KLbufferGYstreamsVio);
    T11 = T8;
    T9 = T11;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:64
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:65
  T12 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:66
  T13 = primitive_cast_integer_as_raw(offset_);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:66
  T14 = primitive_cast_integer_as_raw(count_);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:66
  T15 = primitive_machine_word_logxor(T14,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:66
  T16 = primitive_machine_word_add_signal_overflow(T13,T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:66
  T17 = primitive_cast_raw_as_integer(T16);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:66
  CALL6(&KwriteYstreams_protocolVcommon_dylan, T12, T9, &KJstart_, offset_, &KJend_, T17);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:67
  CALL1(&Kforce_outputYstreams_protocolVcommon_dylan, T12);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:68
  T18_0 = count_;
  T18_1 = T9;
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:59
  MV_SET_ELT(1, T18_1);
  MV_SET_COUNT(2);
  return(T18_0);
}

dylan_value Kaccessor_force_outputYstreams_internalsVioMsystemM0I (dylan_value x_, dylan_value stream_) {
  dylan_value T3;
  dylan_value T4;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:71
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:74
  T4 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:75
  T3 = CALL1(&Kforce_outputYstreams_protocolVcommon_dylan, T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:71
  MV_SET_COUNT(0);
  return(T3);
}

dylan_value Kaccessor_wait_for_completionYstreams_internalsVioMsystemM0I (dylan_value x_) {
  dylan_value T2;
  dylan_value T3;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:78
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:81
  T3 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:82
  T2 = CALL1(&Kwait_for_io_completionYstreams_protocolVcommon_dylan, T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:78
  MV_SET_COUNT(0);
  return(T2);
}

dylan_value Kaccessor_synchronizeYstreams_internalsVioMsystemM0I (dylan_value x_, dylan_value stream_) {
  dylan_value T3;
  dylan_value T4;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:85
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:88
  T4 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:89
  T3 = CALL1(&Ksynchronize_outputYstreams_protocolVcommon_dylan, T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:85
  MV_SET_COUNT(0);
  return(T3);
}

dylan_value Kaccessor_newline_sequenceYstreams_internalsVioMsystemM0I (dylan_value x_) {
  dylan_value T2_0;
  dylan_value T3;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:92
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:95
  T3 = SLOT_VALUE(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:96
  T2_0 = CALL1(&Knewline_sequenceYstreams_internalsVio, T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:92
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value KLwrapper_file_accessorGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_wrapper_file_accessor_stream_) {
  dylan_value T4;
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:9
  T4 = primitive_object_allocate_filled(2,&KLwrapper_file_accessorGYsystem_internalsVsystemW,1,&KPunboundVKi,0,0,&KPunboundVKi);
  SLOT_VALUE_SETTER(Uunique_wrapper_file_accessor_stream_, T4, 0);
  APPLY2(&KinitializeVKd, T4, init_args_);
  T5_0 = T4;
  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:9
  MV_SET_COUNT(1);
  return(T5_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJbuffer_);
    if (T0 != &KJbuffer_) {
      primitive_repeated_slot_value_setter(T0, &K54, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K53, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K48, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K42, 1, 0);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJreturn_fresh_bufferQ_);
    if (T0 != &KJreturn_fresh_bufferQ_) {
      primitive_repeated_slot_value_setter(T0, &K48, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K42, 1, 2);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJon_end_of_stream_);
    if (T0 != &KJon_end_of_stream_) {
      IKJon_end_of_stream_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJfile_);
    if (T0 != &KJfile_) {
      primitive_slot_value_setter(T0, &K68, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJstream_);
    if (T0 != &KJstream_) {
      primitive_slot_value_setter(T0, &Kwrapper_file_accessor_streamYsystem_internalsVsystemHLwrapper_file_accessorG, 3);
      primitive_repeated_slot_value_setter(T0, &K81, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K78, 1, 0);
    }
  }
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:9
  T0 = KPadd_classVKeI(&KLwrapper_file_accessorGYsystem_internalsVsystem);
  goto I0;
}
I0:

  return;
}

/* USER INIT CODE */

void _Init_system__X_14Ewrapper_file_accessor_for_user () {
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:16
  T0 = KPadd_methodVKnI(&Kplatform_accessor_classYstreams_internalsVio, &Kplatform_accessor_classYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem);
  goto I5;
}
I5:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:22
  T0 = KPadd_a_methodVKnI(&Kaccessor_openYstreams_internalsVio, &Kaccessor_openYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I8;
}
I8:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:30
  T0 = KPadd_a_methodVKnI(&Kaccessor_closeYstreams_internalsVio, &Kaccessor_closeYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I11;
}
I11:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:37
  T0 = KPadd_a_methodVKnI(&Kaccessor_openQYstreams_internalsVio, &Kaccessor_openQYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I14;
}
I14:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:44
  T0 = KPadd_a_methodVKnI(&Kaccessor_preferred_buffer_sizeYstreams_internalsVio, &Kaccessor_preferred_buffer_sizeYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I17;
}
I17:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:50
  T0 = KPadd_a_methodVKnI(&Kaccessor_read_intoXYstreams_internalsVio, &Kaccessor_read_intoXYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I20;
}
I20:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:59
  T0 = KPadd_a_methodVKnI(&Kaccessor_write_fromYstreams_internalsVio, &Kaccessor_write_fromYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I23;
}
I23:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:71
  T0 = KPadd_a_methodVKnI(&Kaccessor_force_outputYstreams_internalsVio, &Kaccessor_force_outputYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I26;
}
I26:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:78
  T0 = KPadd_a_methodVKnI(&Kaccessor_wait_for_completionYstreams_internalsVio, &Kaccessor_wait_for_completionYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I29;
}
I29:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:85
  T0 = KPadd_a_methodVKnI(&Kaccessor_synchronizeYstreams_internalsVio, &Kaccessor_synchronizeYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I32;
}
I32:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/file-system/wrapper-file-accessor.dylan:92
  T0 = KPadd_a_methodVKnI(&Kaccessor_newline_sequenceYstreams_internalsVio, &Kaccessor_newline_sequenceYstreams_internalsVioMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I35;
}
I35:

  return;
}


/* eof */
