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

#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(13);
define__KLsimple_object_vectorGVKd(17);
define__KLsimple_object_vectorGVKd(5);
define__KLsimple_object_vectorGVKd(3);
define__KLsimple_object_vectorGVKd(12);
define__KLsimple_object_vectorGVKd(8);
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(16);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(256);
define__KLsimple_object_vectorGVKd(0);
define__KLsimple_object_vectorGVKd(10);

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

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

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

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

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

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(114);
define__KLbyte_stringGVKd(54);
define__KLbyte_stringGVKd(60);
define__KLbyte_stringGVKd(7);
define__KLbyte_stringGVKd(35);
define__KLbyte_stringGVKd(37);
define__KLbyte_stringGVKd(32);
define__KLbyte_stringGVKd(39);
define__KLbyte_stringGVKd(40);
define__KLbyte_stringGVKd(4);
define__KLbyte_stringGVKd(21);
define__KLbyte_stringGVKd(11);
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(12);
define__KLbyte_stringGVKd(10);
define__KLbyte_stringGVKd(49);
define__KLbyte_stringGVKd(18);
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(29);
define__KLbyte_stringGVKd(14);
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(20);
define__KLbyte_stringGVKd(15);
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(24);

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 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 outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value sequence_type_;
  dylan_value to_element_mapper_;
  dylan_value from_element_mapper_;
  dylan_value to_sequence_mapper_;
  dylan_value from_sequence_mapper_;
} _KLbyte_element_streamGYstreams_internalsVio;

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLclosable_objectGYcommon_extensionsVcommon_dylan;

typedef struct {
  dylan_value wrapper;
} _KLstreamGYcommon_extensionsVcommon_dylan;

typedef struct {
  dylan_value wrapper;
} _KLpositionable_streamGYstreams_protocolVcommon_dylan;

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

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value initial_position_;
  dylan_value current_position_;
  dylan_value final_position_;
} _KLbasic_positionable_streamGYstreamsVio;

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

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

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

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLsequenceGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value condition_format_string_;
  dylan_value condition_format_arguments_;
  dylan_value stream_error_stream_;
} _KLstream_closed_errorGYstreamsVio;

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;

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

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
} _KLtypeGVKd;

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 init_arg_type_;
} _KLinit_arg_descriptorGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value slot_descriptor_properties_;
  dylan_value init_data_slot_;
  dylan_value slot_owner_;
  dylan_value inherited_slot_getter_;
} _KLinherited_slot_descriptorGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value limited_integer_min_;
  dylan_value limited_integer_max_;
} _KLlimited_integerGVKe;

#define  define__KLsimple_byte_vectorGVKe(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value byte_vector_element_[nrepeated+1]; \
  } _KLsimple_byte_vectorGVKe_##nrepeated;

#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 synchronization_name_;
} _KLlockGYthreadsVdylan;

typedef struct {
  dylan_value wrapper;
} _KLbyte_characterGVKe;

typedef struct {
  dylan_value wrapper;
} _KLcharacterGVKd;

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 condition_format_string_;
  dylan_value condition_format_arguments_;
  dylan_value stream_error_stream_;
  dylan_value stream_error_requested_position_;
  dylan_value stream_error_size_of_stream_;
} _KLstream_position_errorGYstreamsVio;

typedef struct {
  dylan_value wrapper;
  dylan_value file_descriptor_;
  dylan_value file_position_;
  dylan_value asynchronousQ_;
  dylan_value accessor_positionableQ_;
  dylan_value accessor_preferred_buffer_size_;
  dylan_value accessor_at_endQ_;
} _KLnative_file_accessorGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value actual_stream_input_buffer_;
  dylan_value actual_stream_output_buffer_;
  dylan_value stream_shared_buffer_;
  dylan_value initial_position_;
  dylan_value current_position_;
  dylan_value final_position_;
  dylan_value stream_locator_;
  dylan_value accessor_;
  dylan_value buffer_map_;
  dylan_value buffer_vector_;
  dylan_value stream_id_;
} _KLmulti_buffered_streamGYstreams_internalsVio;


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value actual_stream_input_buffer_;
  dylan_value actual_stream_output_buffer_;
  dylan_value stream_shared_buffer_;
  dylan_value initial_position_;
  dylan_value current_position_;
  dylan_value final_position_;
  dylan_value stream_locator_;
  dylan_value accessor_;
} _KLfile_streamGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
} _KLexternal_file_accessorGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value actual_stream_input_buffer_;
  dylan_value actual_stream_output_buffer_;
  dylan_value stream_shared_buffer_;
  dylan_value initial_position_;
  dylan_value current_position_;
  dylan_value final_position_;
  dylan_value stream_locator_;
  dylan_value accessor_;
  dylan_value sequence_type_;
  dylan_value to_element_mapper_;
  dylan_value from_element_mapper_;
  dylan_value to_sequence_mapper_;
  dylan_value from_sequence_mapper_;
} _KLbyte_file_streamGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value actual_stream_input_buffer_;
  dylan_value actual_stream_output_buffer_;
  dylan_value stream_shared_buffer_;
  dylan_value initial_position_;
  dylan_value current_position_;
  dylan_value final_position_;
  dylan_value stream_locator_;
  dylan_value accessor_;
  dylan_value sequence_type_;
  dylan_value to_element_mapper_;
  dylan_value from_element_mapper_;
  dylan_value to_sequence_mapper_;
  dylan_value from_sequence_mapper_;
} _KLbyte_char_file_streamGYstreams_internalsVio;

typedef struct {
  dylan_value wrapper;
  dylan_value outer_stream_;
  dylan_value private_stream_element_type_value_;
  dylan_value private_stream_direction_value_;
  dylan_value private_stream_lock_value_;
  dylan_value actual_stream_input_buffer_;
  dylan_value actual_stream_output_buffer_;
  dylan_value stream_shared_buffer_;
  dylan_value initial_position_;
  dylan_value current_position_;
  dylan_value final_position_;
  dylan_value stream_locator_;
  dylan_value accessor_;
  dylan_value sequence_type_;
  dylan_value to_element_mapper_;
  dylan_value from_element_mapper_;
  dylan_value to_sequence_mapper_;
  dylan_value from_sequence_mapper_;
} _KLgeneral_file_streamGYstreams_internalsVio;


/* Referenced object declarations */

dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KinitializeVKd;
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 Kio_libraryYdylan_userVio;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLsymbolGVKd KJfill_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLsymbolGVKd KJsize_;
dylan_value KLbufferGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLbufferGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbufferGYstreamsVioW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
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;
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kstreams_internals_moduleYdylan_userVio;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
dylan_value Kbuffer_fillYstreamsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KaccessorYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_positionYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe KEVKd;
extern _KLincremental_generic_functionGVKe Kaccessor_position_setterYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_read_intoXYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kaccessor_write_fromYstreams_internalsVio;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLinstance_slot_descriptorGVKe Kouter_streamYstreamsVioHLbasic_streamG;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLinstance_slot_descriptorGVKe Kprivate_stream_element_type_valueYstreams_internalsVioHLbasic_streamG;
extern _KLinstance_slot_descriptorGVKe Kprivate_stream_direction_valueYstreams_internalsVioHLbasic_streamG;
extern _KLinstance_slot_descriptorGVKe Kprivate_stream_lock_valueYstreams_internalsVioHLbasic_streamG;
extern _KLinstance_slot_descriptorGVKe Kinitial_positionYstreams_internalsVioHLbasic_positionable_streamG;
extern _KLinstance_slot_descriptorGVKe Kcurrent_positionYstreams_internalsVioHLbasic_positionable_streamG;
extern _KLinstance_slot_descriptorGVKe Kfinal_positionYstreams_internalsVioHLbasic_positionable_streamG;
extern _KLinstance_slot_descriptorGVKe Kactual_stream_input_bufferYstreams_internalsVioHLbuffered_streamG;
extern _KLinstance_slot_descriptorGVKe Kactual_stream_output_bufferYstreams_internalsVioHLbuffered_streamG;
extern _KLinstance_slot_descriptorGVKe Kstream_shared_bufferYstreams_internalsVioHLsingle_buffered_streamG;
extern _KLclassGVKd KLbyte_element_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_element_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLbyte_char_element_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_char_element_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLtyped_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLtyped_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLgeneral_typed_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLgeneral_typed_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLclosable_objectGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLclosable_objectGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLstreamGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLstreamGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLpositionable_streamGYstreams_protocolVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLpositionable_streamGYstreams_protocolVcommon_dylanW;
extern _KLclassGVKd KLbasic_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbasic_streamGYstreamsVioW;
extern _KLclassGVKd KLbasic_positionable_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbasic_positionable_streamGYstreamsVioW;
extern _KLclassGVKd KLexternal_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_streamGYstreams_internalsVioW;
extern _KLclassGVKd KLbuffered_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbuffered_streamGYstreamsVioW;
extern _KLclassGVKd KLsingle_buffered_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLsingle_buffered_streamGYstreams_internalsVioW;
dylan_value Kgeneral_rcpl_class_instanceQVKiI (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kaccessor_setterYstreams_internalsVio;
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);
extern _KLsymbolGVKd KJlocator_;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
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 _KLincremental_generic_functionGVKe Kstream_openQYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kstream_sizeYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLabstract_integerGVKe;
extern _KLmm_wrapperGVKi_0 KLabstract_integerGVKeW;
extern _KLincremental_generic_functionGVKe Kstream_positionYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe K_VKd;
extern _KLincremental_generic_functionGVKe KreadYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLsequenceGVKd;
extern _KLmm_wrapperGVKi_0 KLsequenceGVKdW;
extern _KLsymbolGVKd KJformat_string_;
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLclassGVKd KLstream_closed_errorGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLstream_closed_errorGYstreamsVioW;
dylan_value KerrorVKdMM0I (dylan_value, dylan_value);
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 _KLincremental_generic_functionGVKe Kstream_output_bufferYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kdo_next_output_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe Kdo_get_output_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe Kdo_force_output_buffersYstreamsVio;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLincremental_generic_functionGVKe Kstream_shared_bufferYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kstream_input_bufferYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kstream_input_buffer_setterYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kstream_shared_buffer_setterYstreams_internalsVio;
extern _KLsymbolGVKd KJwaitQ_;
dylan_value Kensure_readableYstreams_internalsVioI (dylan_value);
extern _KLincremental_generic_functionGVKe Kdo_release_output_bufferYstreamsVio;
extern _KLsealed_generic_functionGVKe Kbuffer_nextYstreamsVio;
extern _KLsealed_generic_functionGVKe Kbuffer_endYstreamsVio;
extern _KLincremental_generic_functionGVKe KLVKd;
extern _KLsimple_methodGVKe Kbuffer_sizeYstreamsVioMM0;
dylan_value Kassertion_failureVKiI (dylan_value, dylan_value);
extern _KLsealed_generic_functionGVKe Kbuffer_positionYstreamsVio;
extern _KLincremental_generic_functionGVKe KAVKd;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LintegerG_typesVKi;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLincremental_generic_functionGVKe Kstream_output_buffer_setterYstreams_internalsVio;
dylan_value Kensure_writableYstreams_internalsVioI (dylan_value);
extern _KLincremental_generic_functionGVKe Kdo_release_input_bufferYstreamsVio;
extern _KLclassGVKd KLsetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsetter_methodGVKiW;
extern _KLclassGVKd KLsubclassGVKe;
extern _KLmm_wrapperGVKi_0 KLsubclassGVKeW;
dylan_value Ksubclass_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLtypeGVKd;
extern _KLmm_wrapperGVKi_0 KLtypeGVKdW;
extern _KLclassGVKd KLinit_arg_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinit_arg_descriptorGVKeW;
extern _KLsymbolGVKd KJencoding_;
extern _KLclassGVKd KLinherited_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinherited_slot_descriptorGVKeW;
extern _KLlimited_integerGVKe KLbyteGVKe;
extern _KLclassGVKd KLlimited_integerGVKe;
extern _KLmm_wrapperGVKi_0 KLlimited_integerGVKeW;
extern _KLincremental_generic_functionGVKe Kstream_element_typeYstreams_protocolVcommon_dylan;
extern _KLinstance_slot_descriptorGVKe Ksequence_typeYstreams_internalsVioHLtyped_streamG;
extern _KLinstance_slot_descriptorGVKe Kto_element_mapperYstreams_internalsVioHLtyped_streamG;
extern _KLinstance_slot_descriptorGVKe Kfrom_element_mapperYstreams_internalsVioHLtyped_streamG;
extern _KLinstance_slot_descriptorGVKe Kto_sequence_mapperYstreams_internalsVioHLtyped_streamG;
extern _KLinstance_slot_descriptorGVKe Kfrom_sequence_mapperYstreams_internalsVioHLtyped_streamG;
extern _KLclassGVKd KLsimple_byte_vectorGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_byte_vectorGVKeW;
extern _KLsimple_methodGVKe Kbyte_to_byteYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kcopy_bytesYbyte_vectorVcommon_dylan;
extern _KLfunction_classGVKi KLsimple_closure_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsimple_closure_methodGVKiW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_no_rest_value_5VKi;
extern _KLclassGVKd KLlockGYthreadsVdylan;
extern _KLmm_wrapperGVKi_0 KLlockGYthreadsVdylanW;
extern _KLsymbolGVKd KJouter_stream_;
extern _KLsymbolGVKd KJelement_type_;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LclassG_typesVKi;
dylan_value Kclass_instanceQ_rcpl_single_largeVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLbyte_characterGVKe;
extern _KLmm_wrapperGVKi_0 KLbyte_characterGVKeW;
extern _KLsimple_methodGVKe Kbyte_to_byte_charYstreams_internalsVio;
extern _KLsimple_methodGVKe Kbyte_char_to_byteYstreams_internalsVio;
extern _KLclassGVKd KLcharacterGVKd;
extern _KLmm_wrapperGVKi_0 KLcharacterGVKdW;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Knew_accessorYstreams_internalsVioMM0;
dylan_value Kmake_Lpower_of_two_bufferGYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kaccessor_preferred_buffer_sizeYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe Kstream_position_setterYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLkeyword_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureGVKeW;
extern _KLsimple_methodGVKe Kaccessor_consoleQYstreams_internalsVioMM0;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLincremental_generic_functionGVKe Kaccessor_sizeYstreams_internalsVio;
extern _KLclassGVKd KLstream_position_errorGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLstream_position_errorGYstreamsVioW;
dylan_value KsignalVKdMM0I (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kstream_directionYstreams_internalsVio;
extern _KLsymbolGVKd KJinput_;
extern _KLsymbolGVKd KJinput_output_;
extern _KLsymbolGVKd KJoutput_;
dylan_value Kelement_setterVKdMioM0I (dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kstream_contentsYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kunread_elementYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kadjust_stream_positionYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe KcloseYcommon_extensionsVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kstream_input_availableQYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kstream_at_endQYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kdo_next_input_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe Kdo_get_input_bufferYstreamsVio;
extern _KLsymbolGVKd KJstart_;
extern _KLsymbolGVKd KJend_;
extern _KLincremental_generic_functionGVKe KpositionYcommon_extensionsVcommon_dylan;
extern _KLsymbolGVKd KJfrom_;
extern _KLincremental_generic_functionGVKe Kforce_outputYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLnative_file_accessorGYstreams_internalsVio;
extern _KLclassGVKd KLmulti_buffered_streamGYstreams_internalsVio;

/* Defined object declarations */

extern _KLkeyword_methodGVKe KinitializeVKdMioM5;
dylan_value KinitializeVKdMioM5I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsymbolGVKd KJbuffer_start_;
static _KLsymbolGVKd KJbuffer_end_;
extern _KLgetter_methodGVKi KaccessorYstreams_internalsVioMM0;
extern _KLsetter_methodGVKi Kaccessor_setterYstreams_internalsVioMM0;
extern _KLkeyword_methodGVKe Kdo_get_output_bufferYstreamsVioMM1;
dylan_value Kdo_get_output_bufferYstreamsVioMM1I (dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kdo_next_output_bufferYstreamsVioMM1;
dylan_value Kdo_next_output_bufferYstreamsVioMM1I (dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kdo_get_input_bufferYstreamsVioMM1;
dylan_value Kdo_get_input_bufferYstreamsVioMM1I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kdo_next_input_bufferYstreamsVioMM1;
dylan_value Kdo_next_input_bufferYstreamsVioMM1I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kdo_force_output_buffersYstreamsVioMM1;
dylan_value Kdo_force_output_buffersYstreamsVioMM1I (dylan_value);
extern _KLsimple_methodGVKe Kforce_output_buffersYstreamsVioMM1;
dylan_value Kforce_output_buffersYstreamsVioMM1I (dylan_value);
extern _KLsimple_methodGVKe Kread_to_endYstreamsVioMM2;
dylan_value Kread_to_endYstreamsVioMM2I (dylan_value);
extern _KLinstance_slot_descriptorGVKe Kstream_locatorYstreams_internalsVioHLfile_streamG;
extern _KLinstance_slot_descriptorGVKe KaccessorYstreams_internalsVioHLfile_streamG;
extern _KLclassGVKd KLfile_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLfile_streamGYstreams_internalsVioW;
extern _KLkeyword_methodGVKe Kforce_bufferYstreams_internalsVio;
dylan_value Kforce_bufferYstreams_internalsVioI (dylan_value, dylan_value, dylan_value, dylan_value);
dylan_value Kload_bufferYstreams_internalsVioI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
dylan_value Kload_buffer_and_fillYstreams_internalsVioI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLexternal_file_accessorGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLexternal_file_accessorGYstreams_internalsVioW;
static _KLimplementation_classGVKe K32;
static _KLsimple_object_vectorGVKd_1 K33;
static _KLsimple_object_vectorGVKd_6 K34;
static _KLbyte_stringGVKd_24 K35;
static _KLsymbolGVKd KJbuffer_;
static _KLbyte_stringGVKd_6 K37;
static _KLsymbolGVKd KJreturn_fresh_bufferQ_;
static _KLbyte_stringGVKd_15 K39;
static _KLbyte_stringGVKd_20 K40;
static _KLkeyword_signatureAvaluesGVKi K41;
static _KLsimple_object_vectorGVKd_2 K42;
static _KLsimple_object_vectorGVKd_2 K43;
static _KLsimple_object_vectorGVKd_1 K44;
static _KLsimple_object_vectorGVKd_1 K45;
static _KLimplementation_classGVKe K46;
static _KLsimple_object_vectorGVKd_12 K47;
static _KLsimple_object_vectorGVKd_3 K48;
static _KLsimple_object_vectorGVKd_10 K49;
static _KLsimple_object_vectorGVKd_1 K50;
static _KLsimple_object_vectorGVKd_4 K51;
static _KLsimple_object_vectorGVKd_2 K52;
static _KLsimple_object_vectorGVKd_12 K53;
static _KLbyte_stringGVKd_13 K54;
static _KLsymbolGVKd KJaccessor_;
static _KLunionGVKe K56;
static _KLsingletonGVKd K57;
static _KLbyte_stringGVKd_8 K58;
extern _KLsealed_generic_functionGVKe Kstream_locatorYstreams_internalsVio;
extern _KLgetter_methodGVKi Kstream_locatorYstreams_internalsVioMM0;
static _KLpairGVKd K61;
static _KLbyte_stringGVKd_14 K62;
static _KLbyte_stringGVKd_15 K63;
static _KLsymbolGVKd KJstream_;
static _KLbyte_stringGVKd_29 K65;
static _KLbyte_stringGVKd_6 K66;
static _KLsignatureAvaluesGVKi K67;
static _KLsimple_object_vectorGVKd_1 K68;
static _KLsymbolGVKd KJbytes_;
static _KLbyte_stringGVKd_5 K70;
static _KLsignatureGVKe K71;
static _KLkeyword_signatureAvaluesGVKi K72;
static _KLsimple_object_vectorGVKd_4 K73;
static _KLsimple_object_vectorGVKd_2 K74;
static _KLsimple_object_vectorGVKd_1 K75;
static _KLunionGVKe K76;
static _KLbyte_stringGVKd_18 K77;
extern _KLsimple_methodGVKe Kload_bufferYstreams_internalsVio;
static _KLbyte_stringGVKd_49 K79;
static _KLsignatureAvaluesGVKi K80;
static _KLsimple_object_vectorGVKd_5 K81;
static _KLkeyword_signatureAvaluesGVKi K82;
static _KLsimple_object_vectorGVKd_2 K83;
static _KLsimple_object_vectorGVKd_1 K84;
static _KLbyte_stringGVKd_10 K85;
static _KLbyte_stringGVKd_12 K86;
extern _KLincremental_generic_functionGVKe Ktype_for_file_streamYstreams_internalsVio;
extern _KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM0;
dylan_value Ktype_for_file_streamYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM1;
dylan_value Ktype_for_file_streamYstreams_internalsVioMM1I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM2;
dylan_value Ktype_for_file_streamYstreams_internalsVioMM2I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM3;
dylan_value Ktype_for_file_streamYstreams_internalsVioMM3I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLpairGVKd K96;
static _KLpairGVKd K97;
static _KLpairGVKd K98;
static _KLpairGVKd K99;
static _KLkeyword_signatureAvaluesGVKi K100;
static _KLbyte_stringGVKd_20 K101;
static _KLsimple_object_vectorGVKd_3 K102;
static _KLsimple_object_vectorGVKd_1 K103;
static _KLsubclassGVKe K104;
static _KLunionGVKe K105;
extern _KLclassGVKd KLbyte_file_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_file_streamGYstreams_internalsVioW;
static _KLimplementation_classGVKe K108;
static _KLsimple_object_vectorGVKd_17 K109;
extern _KLkeyword_methodGVKe KLbyte_file_streamGZ32ZconstructorYstreams_internalsVioMM0;
dylan_value KLbyte_file_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_2 K112;
static _KLsimple_object_vectorGVKd_13 K113;
static _KLsimple_object_vectorGVKd_17 K114;
static _KLsimple_object_vectorGVKd_1 K115;
static _KLsimple_object_vectorGVKd_1 K116;
static _KLinit_arg_descriptorGVKe KencodingHLbyte_file_streamGYstreams_internalsVio;
static _KLinherited_slot_descriptorGVKe Kstream_element_typeYstreams_protocolVcommon_dylanHLbyte_file_streamGYstreams_internalsVio;
static _KLbyte_stringGVKd_23 K119;
static _KLunionGVKe K120;
static _KLunionGVKe K121;
static _KLsimple_closure_methodGVKi_0 K127;
static dylan_value K127I (dylan_value s_, dylan_value ss_, dylan_value d_, dylan_value ds_, dylan_value n_);
static _KLsimple_closure_methodGVKi_0 K126;
static dylan_value K126I (dylan_value s_, dylan_value ss_, dylan_value d_, dylan_value ds_, dylan_value n_);
static _KLkeyword_signatureAvaluesGVKi K128;
static _KLsimple_object_vectorGVKd_12 K129;
static _KLsymbolGVKd KJstream_lock_;
static _KLbyte_stringGVKd_11 K131;
static _KLsimple_object_vectorGVKd_6 K132;
static _KLsimple_object_vectorGVKd_1 K133;
static _KLbyte_stringGVKd_18 K134;
static _KLkeyword_signatureAvaluesGVKi K135;
static _KLsimple_object_vectorGVKd_3 K136;
static _KLsimple_object_vectorGVKd_1 K137;
static _KLsubclassGVKe K138;
static _KLsingletonGVKd K139;
extern _KLclassGVKd KLbyte_char_file_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_char_file_streamGYstreams_internalsVioW;
static _KLimplementation_classGVKe K142;
extern _KLkeyword_methodGVKe KLbyte_char_file_streamGZ32ZconstructorYstreams_internalsVioMM0;
dylan_value KLbyte_char_file_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_2 K145;
static _KLsimple_object_vectorGVKd_13 K146;
static _KLsimple_object_vectorGVKd_1 K147;
static _KLsimple_object_vectorGVKd_1 K148;
static _KLinit_arg_descriptorGVKe KencodingHLbyte_char_file_streamGYstreams_internalsVio;
static _KLinherited_slot_descriptorGVKe Kstream_element_typeYstreams_protocolVcommon_dylanHLbyte_char_file_streamGYstreams_internalsVio;
static _KLkeyword_signatureAvaluesGVKi K151;
static _KLsimple_object_vectorGVKd_1 K152;
static _KLbyte_stringGVKd_23 K153;
static _KLkeyword_signatureAvaluesGVKi K154;
static _KLsimple_object_vectorGVKd_3 K155;
static _KLsimple_object_vectorGVKd_1 K156;
static _KLsubclassGVKe K157;
static _KLsingletonGVKd K158;
static _KLkeyword_signatureAvaluesGVKi K159;
static _KLsimple_object_vectorGVKd_3 K160;
static _KLsimple_object_vectorGVKd_1 K161;
static _KLsubclassGVKe K162;
static _KLsingletonGVKd K163;
extern _KLclassGVKd KLgeneral_file_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLgeneral_file_streamGYstreams_internalsVioW;
static _KLimplementation_classGVKe K166;
extern _KLkeyword_methodGVKe KLgeneral_file_streamGZ32ZconstructorYstreams_internalsVioMM0;
dylan_value KLgeneral_file_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_2 K169;
static _KLsimple_object_vectorGVKd_13 K170;
static _KLsimple_object_vectorGVKd_1 K171;
static _KLsimple_object_vectorGVKd_1 K172;
static _KLinit_arg_descriptorGVKe KencodingHLgeneral_file_streamGYstreams_internalsVio;
static _KLinherited_slot_descriptorGVKe Kstream_element_typeYstreams_protocolVcommon_dylanHLgeneral_file_streamGYstreams_internalsVio;
static _KLkeyword_signatureAvaluesGVKi K175;
static _KLsimple_object_vectorGVKd_1 K176;
static _KLbyte_stringGVKd_21 K177;
static _KLkeyword_signatureAvaluesGVKi K178;
static _KLsimple_object_vectorGVKd_1 K179;
static _KLsubclassGVKe K180;
static _KLsymbolGVKd KJfile_;
static _KLsymbolGVKd KJknown_power_of_two_sizeQ_;
static _KLbyte_stringGVKd_24 K183;
static _KLbyte_stringGVKd_4 K184;
static _KLkeyword_signatureGVKe K185;
static _KLsimple_object_vectorGVKd_4 K186;
static _KLsymbolGVKd KJbuffer_size_;
static _KLbyte_stringGVKd_11 K188;
static _KLsimple_object_vectorGVKd_2 K189;
extern _KLsimple_methodGVKe Kstream_consoleQYstreams_internalsVioMM0;
dylan_value Kstream_consoleQYstreams_internalsVioMM0I (dylan_value);
static _KLsignatureAvaluesGVKi K192;
extern _KLsimple_methodGVKe Kwritable_file_stream_position_setterYstreams_internalsVioMM0;
dylan_value Kwritable_file_stream_position_setterYstreams_internalsVioMM0I (dylan_value, dylan_value);
static _KLsymbolGVKd KJposition_;
dylan_value Kadjust_stream_position_from_startYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value);
static _KLbyte_stringGVKd_40 K197;
extern _KLsimple_methodGVKe Kload_buffer_and_fillYstreams_internalsVio;
static _KLsymbolGVKd KJclosed_;
static _KLbyte_stringGVKd_39 K200;
static _KLbyte_stringGVKd_32 K201;
static _KLbyte_stringGVKd_6 K202;
static _KLsignatureGVKe K203;
static _KLbyte_stringGVKd_8 K204;
static _KLsignatureAvaluesGVKi K205;
static _KLsimple_object_vectorGVKd_2 K206;
extern _KLkeyword_methodGVKe Kstream_contentsYstreams_protocolVcommon_dylanMioM2;
dylan_value Kstream_contentsYstreams_protocolVcommon_dylanMioM2I (dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kunread_elementYstreams_protocolVcommon_dylanMioM2;
dylan_value Kunread_elementYstreams_protocolVcommon_dylanMioM2I (dylan_value, dylan_value);
extern _KLkeyword_methodGVKe Kadjust_stream_positionYstreams_protocolVcommon_dylanMioM2;
dylan_value Kadjust_stream_positionYstreams_protocolVcommon_dylanMioM2I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kstream_position_setterYstreams_protocolVcommon_dylanMioM4;
dylan_value Kstream_position_setterYstreams_protocolVcommon_dylanMioM4I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kstream_positionYstreams_protocolVcommon_dylanMioM2;
dylan_value Kstream_positionYstreams_protocolVcommon_dylanMioM2I (dylan_value);
extern _KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMioM4;
dylan_value KcloseYcommon_extensionsVcommon_dylanMioM4I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kstream_sizeYstreams_protocolVcommon_dylanMioM2;
dylan_value Kstream_sizeYstreams_protocolVcommon_dylanMioM2I (dylan_value);
extern _KLsimple_methodGVKe Kstream_input_availableQYstreams_protocolVcommon_dylanMioM3;
dylan_value Kstream_input_availableQYstreams_protocolVcommon_dylanMioM3I (dylan_value);
extern _KLsimple_methodGVKe Kstream_at_endQYstreams_protocolVcommon_dylanMioM3;
dylan_value Kstream_at_endQYstreams_protocolVcommon_dylanMioM3I (dylan_value);
extern _KLkeyword_methodGVKe KmakeVKdMioM3;
dylan_value KmakeVKdMioM3I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLkeyword_signatureAvaluesGVKi K237;
static _KLsimple_object_vectorGVKd_6 K238;
static _KLsimple_object_vectorGVKd_1 K239;
static _KLsimple_object_vectorGVKd_3 K240;
static _KLsingletonGVKd K241;
static _KLbyte_stringGVKd_23 K242;
static _KLunionGVKe K243;
static _KLbyte_stringGVKd_37 K244;
static _KLsignatureAvaluesGVKi K245;
static _KLsimple_object_vectorGVKd_1 K246;
static _KLkeyword_signatureGVKe K247;
static _KLsignatureAvaluesGVKi K248;
static _KLbyte_stringGVKd_35 K249;
static _KLsymbolGVKd KJcurrent_;
extern _KLsimple_methodGVKe Kadjust_stream_position_from_startYstreams_internalsVioMM0;
static _KLsignatureGVKe K252;
static _KLsimple_object_vectorGVKd_3 K253;
static _KLbyte_stringGVKd_7 K254;
static _KLkeyword_signatureAvaluesGVKi K255;
static _KLsimple_object_vectorGVKd_2 K256;
static _KLsimple_object_vectorGVKd_2 K257;
static _KLsimple_object_vectorGVKd_1 K258;
static _KLsignatureGVKe K259;
static _KLsimple_object_vectorGVKd_2 K260;
static _KLbyte_stringGVKd_60 K261;
static _KLbyte_stringGVKd_49 K262;
static _KLbyte_stringGVKd_54 K263;
static _KLbyte_stringGVKd_114 K264;
static _KLkeyword_signatureAvaluesGVKi K265;
static _KLsimple_object_vectorGVKd_2 K266;
static _KLsymbolGVKd KJclear_contentsQ_;
static _KLbyte_stringGVKd_15 K268;
static _KLsimple_object_vectorGVKd_1 K269;
static _KLpairGVKd K270;
static _KLpairGVKd K271;
static _KLpairGVKd K272;
static _KLpairGVKd K273;
static _KLpairGVKd K274;

/* Indirection variables */

static dylan_value IKJbuffer_start_ = &KJbuffer_start_;
static dylan_value IKJbuffer_end_ = &KJbuffer_end_;
static dylan_value IKJbuffer_ = &KJbuffer_;
static dylan_value IKJreturn_fresh_bufferQ_ = &KJreturn_fresh_bufferQ_;
static dylan_value IKJaccessor_ = &KJaccessor_;
static dylan_value IKJstream_ = &KJstream_;
static dylan_value IKJbytes_ = &KJbytes_;
static dylan_value IKJstream_lock_ = &KJstream_lock_;
static dylan_value IKJfile_ = &KJfile_;
static dylan_value IKJknown_power_of_two_sizeQ_ = &KJknown_power_of_two_sizeQ_;
static dylan_value IKJbuffer_size_ = &KJbuffer_size_;
static dylan_value IKJposition_ = &KJposition_;
static dylan_value IKJclosed_ = &KJclosed_;
static dylan_value IKJcurrent_ = &KJcurrent_;
static dylan_value IKJclear_contentsQ_ = &KJclear_contentsQ_;

/* Variables */

dylan_value writable_file_stream_position_setterYstreams_internalsVio = &Kwritable_file_stream_position_setterYstreams_internalsVioMM0;
dylan_value stream_consoleQYstreams_internalsVio = &Kstream_consoleQYstreams_internalsVioMM0;
dylan_value stream_locatorYstreams_internalsVio = &Kstream_locatorYstreams_internalsVio;
dylan_value Lexternal_file_accessorGYstreams_internalsVio = &KLexternal_file_accessorGYstreams_internalsVio;
dylan_value Lfile_streamGYstreams_internalsVio = &KLfile_streamGYstreams_internalsVio;
dylan_value Lgeneral_file_streamGYstreams_internalsVio = &KLgeneral_file_streamGYstreams_internalsVio;
dylan_value Lbyte_char_file_streamGYstreams_internalsVio = &KLbyte_char_file_streamGYstreams_internalsVio;
dylan_value Lbyte_file_streamGYstreams_internalsVio = &KLbyte_file_streamGYstreams_internalsVio;
dylan_value type_for_file_streamYstreams_internalsVio = &Ktype_for_file_streamYstreams_internalsVio;
dylan_value force_bufferYstreams_internalsVio = &Kforce_bufferYstreams_internalsVio;
dylan_value Dnull_bufferYstreams_internalsVio = &KPunboundVKi;

/* Objects */

_KLkeyword_methodGVKe KinitializeVKdMioM5 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K185,
  &key_mep_4,
  &KinitializeVKdMioM5I,
  &K186
};

static _KLsymbolGVKd KJbuffer_start_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K86
};

static _KLsymbolGVKd KJbuffer_end_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K85
};

_KLgetter_methodGVKi KaccessorYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KaccessorYstreams_internalsVioHLfile_streamG
};

_KLsetter_methodGVKi Kaccessor_setterYstreams_internalsVioMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &KaccessorYstreams_internalsVioHLfile_streamG
};

_KLkeyword_methodGVKe Kdo_get_output_bufferYstreamsVioMM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K82,
  &key_mep_3,
  &Kdo_get_output_bufferYstreamsVioMM1I,
  &K83
};

_KLkeyword_methodGVKe Kdo_next_output_bufferYstreamsVioMM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K82,
  &key_mep_3,
  &Kdo_next_output_bufferYstreamsVioMM1I,
  &K83
};

_KLkeyword_methodGVKe Kdo_get_input_bufferYstreamsVioMM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K72,
  &key_mep_4,
  &Kdo_get_input_bufferYstreamsVioMM1I,
  &K73
};

_KLkeyword_methodGVKe Kdo_next_input_bufferYstreamsVioMM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K72,
  &key_mep_4,
  &Kdo_next_input_bufferYstreamsVioMM1I,
  &K73
};

_KLsimple_methodGVKe Kdo_force_output_buffersYstreamsVioMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K71,
  &Kdo_force_output_buffersYstreamsVioMM1I
};

_KLsimple_methodGVKe Kforce_output_buffersYstreamsVioMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K71,
  &Kforce_output_buffersYstreamsVioMM1I
};

_KLsimple_methodGVKe Kread_to_endYstreamsVioMM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K67,
  &Kread_to_endYstreamsVioMM2I
};

_KLinstance_slot_descriptorGVKe Kstream_locatorYstreams_internalsVioHLfile_streamG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 193,
  &KPfalseVKi,
  &KLfile_streamGYstreams_internalsVio,
  &KJlocator_,
  &Kstream_locatorYstreams_internalsVio,
  &KPfalseVKi,
  &KLobjectGVKd
};

_KLinstance_slot_descriptorGVKe KaccessorYstreams_internalsVioHLfile_streamG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  &KPfalseVKi,
  &KLfile_streamGYstreams_internalsVio,
  &KJaccessor_,
  &KaccessorYstreams_internalsVio,
  &Kaccessor_setterYstreams_internalsVio,
  &K56
};

_KLclassGVKd KLfile_streamGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kgeneral_rcpl_class_instanceQVKiI,
  &K54,
  &K46,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

_KLmm_wrapperGVKi_0 KLfile_streamGYstreams_internalsVioW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K46,
  (dylan_value) 1,
  49,
  33554439,
  (dylan_value) 1
};

_KLkeyword_methodGVKe Kforce_bufferYstreams_internalsVio = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K41,
  &key_mep_4,
  &Kforce_bufferYstreams_internalsVioI,
  &K42
};

_KLclassGVKd KLexternal_file_accessorGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K35,
  &K32,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

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

static _KLimplementation_classGVKe K32 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 325844993,
  &KLexternal_file_accessorGYstreams_internalsVio,
  &KLexternal_file_accessorGYstreams_internalsVioW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K33,
  &K34,
  (dylan_value) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K270,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

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

static _KLbyte_stringGVKd_24 K35 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 97,
  "<external-file-accessor>"
};

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

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

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

static _KLbyte_stringGVKd_15 K39 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "Bad write count"
};

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

static _KLkeyword_signatureAvaluesGVKi K41 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33817609,
  &K43,
  &K44,
  &KDsignature_LobjectG_typesVKi,
  &K45
};

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

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

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

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

static _KLimplementation_classGVKe K46 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 325845041,
  &KLfile_streamGYstreams_internalsVio,
  &KLfile_streamGYstreams_internalsVioW,
  &KPfalseVKi,
  &K47,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K48,
  &K49,
  (dylan_value) 37,
  &K50,
  &K51,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K271,
  &KPempty_vectorVKi,
  &K52,
  &K53,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_12 K47 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 49,
  &Kouter_streamYstreamsVioHLbasic_streamG,
  &Kprivate_stream_element_type_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_direction_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_lock_valueYstreams_internalsVioHLbasic_streamG,
  &Kactual_stream_input_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kactual_stream_output_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kstream_shared_bufferYstreams_internalsVioHLsingle_buffered_streamG,
  &Kinitial_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kcurrent_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kfinal_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kstream_locatorYstreams_internalsVioHLfile_streamG,
  &KaccessorYstreams_internalsVioHLfile_streamG
};

static _KLsimple_object_vectorGVKd_3 K48 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLsingle_buffered_streamGYstreams_internalsVio,
  &KLexternal_streamGYstreams_internalsVio,
  &KLbasic_positionable_streamGYstreamsVio
};

static _KLsimple_object_vectorGVKd_10 K49 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 41,
  &KLobjectGVKd,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLpositionable_streamGYstreams_protocolVcommon_dylan,
  &KLbasic_streamGYstreamsVio,
  &KLbasic_positionable_streamGYstreamsVio,
  &KLexternal_streamGYstreams_internalsVio,
  &KLbuffered_streamGYstreamsVio,
  &KLsingle_buffered_streamGYstreams_internalsVio,
  &KLfile_streamGYstreams_internalsVio
};

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

static _KLsimple_object_vectorGVKd_4 K51 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLbyte_element_streamGYstreams_internalsVio,
  &KLbyte_char_element_streamGYstreams_internalsVio,
  &KLtyped_streamGYstreams_internalsVio,
  &KLgeneral_typed_streamGYstreams_internalsVio
};

static _KLsimple_object_vectorGVKd_2 K52 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &Kstream_locatorYstreams_internalsVioHLfile_streamG,
  &KaccessorYstreams_internalsVioHLfile_streamG
};

static _KLsimple_object_vectorGVKd_12 K53 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 49,
  &Kouter_streamYstreamsVioHLbasic_streamG,
  &Kprivate_stream_element_type_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_direction_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_lock_valueYstreams_internalsVioHLbasic_streamG,
  &Kinitial_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kcurrent_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kfinal_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kactual_stream_input_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kactual_stream_output_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kstream_shared_bufferYstreams_internalsVioHLsingle_buffered_streamG,
  &Kstream_locatorYstreams_internalsVioHLfile_streamG,
  &KaccessorYstreams_internalsVioHLfile_streamG
};

static _KLbyte_stringGVKd_13 K54 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 53,
  "<file-stream>"
};

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

static _KLunionGVKe K56 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K57,
  &KLexternal_stream_accessorGYstreams_internalsVio
};

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

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

_KLsealed_generic_functionGVKe Kstream_locatorYstreams_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K62,
  &K61,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kstream_locatorYstreams_internalsVioMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kstream_locatorYstreams_internalsVioHLfile_streamG
};

static _KLpairGVKd K61 = {
  &KLpairGVKdW /* wrapper */,
  &Kstream_locatorYstreams_internalsVioMM0,
  &KPempty_listVKi
};

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

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

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

static _KLbyte_stringGVKd_29 K65 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 117,
  "Can\'t read from closed stream"
};

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

static _KLsignatureAvaluesGVKi K67 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 37749765,
  &K68,
  &KDsignature_LsequenceG_typesVKi
};

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

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

static _KLbyte_stringGVKd_5 K70 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 21,
  "bytes"
};

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

static _KLkeyword_signatureAvaluesGVKi K72 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33817605,
  &K68,
  &K74,
  &KDsignature_LobjectG_typesVKi,
  &K75
};

static _KLsimple_object_vectorGVKd_4 K73 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJwaitQ_,
  &KPtrueVKi,
  &KJbytes_,
  (dylan_value) 5
};

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

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

static _KLunionGVKe K76 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K57,
  &KLbufferGYstreamsVio
};

static _KLbyte_stringGVKd_18 K77 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 73,
  "no reason supplied"
};

_KLsimple_methodGVKe Kload_bufferYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_5,
  &K80,
  &Kload_bufferYstreams_internalsVioI
};

static _KLbyte_stringGVKd_49 K79 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 197,
  "File stream has neither an input or output buffer"
};

static _KLsignatureAvaluesGVKi K80 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555477,
  &K81,
  &KDsignature_LintegerG_typesVKi
};

static _KLsimple_object_vectorGVKd_5 K81 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 21,
  &KLfile_streamGYstreams_internalsVio,
  &KLbufferGYstreamsVio,
  &KLintegerGVKd,
  &KLintegerGVKd,
  &KLintegerGVKd
};

static _KLkeyword_signatureAvaluesGVKi K82 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33817605,
  &K68,
  &K84,
  &KDsignature_LobjectG_typesVKi,
  &K45
};

static _KLsimple_object_vectorGVKd_2 K83 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJbytes_,
  (dylan_value) 5
};

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

static _KLbyte_stringGVKd_10 K85 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 41,
  "buffer-end"
};

static _KLbyte_stringGVKd_12 K86 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 49,
  "buffer-start"
};

_KLincremental_generic_functionGVKe Ktype_for_file_streamYstreams_internalsVio = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_optional_xep_3,
  &K100,
  &KPfalseVKi,
  &K101,
  &K96,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kstreams_internals_moduleYdylan_userVio,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K178,
  &key_mep_4,
  &Ktype_for_file_streamYstreams_internalsVioMM0I,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K159,
  &key_mep_4,
  &Ktype_for_file_streamYstreams_internalsVioMM1I,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM2 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K154,
  &key_mep_4,
  &Ktype_for_file_streamYstreams_internalsVioMM2I,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe Ktype_for_file_streamYstreams_internalsVioMM3 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K135,
  &key_mep_4,
  &Ktype_for_file_streamYstreams_internalsVioMM3I,
  &KPempty_vectorVKi
};

static _KLpairGVKd K96 = {
  &KLpairGVKdW /* wrapper */,
  &Ktype_for_file_streamYstreams_internalsVioMM0,
  &K97
};

static _KLpairGVKd K97 = {
  &KLpairGVKdW /* wrapper */,
  &Ktype_for_file_streamYstreams_internalsVioMM1,
  &K98
};

static _KLpairGVKd K98 = {
  &KLpairGVKdW /* wrapper */,
  &Ktype_for_file_streamYstreams_internalsVioMM2,
  &K99
};

static _KLpairGVKd K99 = {
  &KLpairGVKdW /* wrapper */,
  &Ktype_for_file_streamYstreams_internalsVioMM3,
  &KPempty_listVKi
};

static _KLkeyword_signatureAvaluesGVKi K100 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34341901,
  &K102,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K103
};

static _KLbyte_stringGVKd_20 K101 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 81,
  "type-for-file-stream"
};

static _KLsimple_object_vectorGVKd_3 K102 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLobjectGVKd,
  &K105,
  &KLobjectGVKd
};

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

static _KLsubclassGVKe K104 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLfile_streamGYstreams_internalsVio
};

static _KLunionGVKe K105 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K57,
  &KLtypeGVKd
};

_KLclassGVKd KLbyte_file_streamGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_largeVKiI,
  &K134,
  &K108,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

_KLmm_wrapperGVKi_0 KLbyte_file_streamGYstreams_internalsVioW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K108,
  (dylan_value) 1,
  69,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K108 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 341835845,
  &KLbyte_file_streamGYstreams_internalsVio,
  &KLbyte_file_streamGYstreams_internalsVioW,
  &KPfalseVKi,
  &K109,
  (dylan_value) -3,
  &KLbyte_file_streamGZ32ZconstructorYstreams_internalsVioMM0,
  &K112,
  &K113,
  (dylan_value) 49,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K114,
  &K115,
  &K116,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_17 K109 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 69,
  &Kouter_streamYstreamsVioHLbasic_streamG,
  &Kprivate_stream_element_type_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_direction_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_lock_valueYstreams_internalsVioHLbasic_streamG,
  &Kactual_stream_input_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kactual_stream_output_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kstream_shared_bufferYstreams_internalsVioHLsingle_buffered_streamG,
  &Kinitial_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kcurrent_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kfinal_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kstream_locatorYstreams_internalsVioHLfile_streamG,
  &KaccessorYstreams_internalsVioHLfile_streamG,
  &Ksequence_typeYstreams_internalsVioHLtyped_streamG,
  &Kto_element_mapperYstreams_internalsVioHLtyped_streamG,
  &Kfrom_element_mapperYstreams_internalsVioHLtyped_streamG,
  &Kto_sequence_mapperYstreams_internalsVioHLtyped_streamG,
  &Kfrom_sequence_mapperYstreams_internalsVioHLtyped_streamG
};

_KLkeyword_methodGVKe KLbyte_file_streamGZ32ZconstructorYstreams_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_8,
  &K128,
  &key_mep_2,
  &KLbyte_file_streamGZ32ZconstructorYstreams_internalsVioMM0I,
  &K129
};

static _KLsimple_object_vectorGVKd_2 K112 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLfile_streamGYstreams_internalsVio,
  &KLbyte_element_streamGYstreams_internalsVio
};

static _KLsimple_object_vectorGVKd_13 K113 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 53,
  &KLobjectGVKd,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLpositionable_streamGYstreams_protocolVcommon_dylan,
  &KLbasic_streamGYstreamsVio,
  &KLtyped_streamGYstreams_internalsVio,
  &KLbyte_element_streamGYstreams_internalsVio,
  &KLbasic_positionable_streamGYstreamsVio,
  &KLexternal_streamGYstreams_internalsVio,
  &KLbuffered_streamGYstreamsVio,
  &KLsingle_buffered_streamGYstreams_internalsVio,
  &KLfile_streamGYstreams_internalsVio,
  &KLbyte_file_streamGYstreams_internalsVio
};

static _KLsimple_object_vectorGVKd_17 K114 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 69,
  &Kouter_streamYstreamsVioHLbasic_streamG,
  &Kprivate_stream_element_type_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_direction_valueYstreams_internalsVioHLbasic_streamG,
  &Kprivate_stream_lock_valueYstreams_internalsVioHLbasic_streamG,
  &Ksequence_typeYstreams_internalsVioHLtyped_streamG,
  &Kto_element_mapperYstreams_internalsVioHLtyped_streamG,
  &Kfrom_element_mapperYstreams_internalsVioHLtyped_streamG,
  &Kto_sequence_mapperYstreams_internalsVioHLtyped_streamG,
  &Kfrom_sequence_mapperYstreams_internalsVioHLtyped_streamG,
  &Kinitial_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kcurrent_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kfinal_positionYstreams_internalsVioHLbasic_positionable_streamG,
  &Kactual_stream_input_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kactual_stream_output_bufferYstreams_internalsVioHLbuffered_streamG,
  &Kstream_shared_bufferYstreams_internalsVioHLsingle_buffered_streamG,
  &Kstream_locatorYstreams_internalsVioHLfile_streamG,
  &KaccessorYstreams_internalsVioHLfile_streamG
};

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

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

static _KLinit_arg_descriptorGVKe KencodingHLbyte_file_streamGYstreams_internalsVio = {
  &KLinit_arg_descriptorGVKeW /* wrapper */,
  (dylan_value) 1,
  &KPfalseVKi,
  &KLbyte_file_streamGYstreams_internalsVio,
  &KJencoding_,
  &KLobjectGVKd
};

static _KLinherited_slot_descriptorGVKe Kstream_element_typeYstreams_protocolVcommon_dylanHLbyte_file_streamGYstreams_internalsVio = {
  &KLinherited_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 29,
  &KLbyteGVKe,
  &KLbyte_file_streamGYstreams_internalsVio,
  &Kstream_element_typeYstreams_protocolVcommon_dylan
};

static _KLbyte_stringGVKd_23 K119 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "Missing init keyword %="
};

static _KLunionGVKe K120 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K57,
  &KLstreamGYcommon_extensionsVcommon_dylan
};

static _KLunionGVKe K121 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K57,
  &KLlockGYthreadsVdylan
};

static _KLsimple_closure_methodGVKi_0 K127 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_5,
  &KDsignature_LobjectG_no_rest_value_5VKi,
  &K127I,
  (dylan_value) 1
};

static _KLsimple_closure_methodGVKi_0 K126 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_5,
  &KDsignature_LobjectG_no_rest_value_5VKi,
  &K126I,
  (dylan_value) 1
};

static _KLkeyword_signatureAvaluesGVKi K128 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K132,
  &KDsignature_LobjectG_typesVKi,
  &K133
};

static _KLsimple_object_vectorGVKd_12 K129 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 49,
  &KJouter_stream_,
  &KPunboundVKi,
  &KJelement_type_,
  &KLobjectGVKd,
  &KJstream_lock_,
  &KPfalseVKi,
  &KJbuffer_,
  &KPfalseVKi,
  &KJlocator_,
  &KPunboundVKi,
  &KJaccessor_,
  &KPfalseVKi
};

static _KLsymbolGVKd KJstream_lock_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K131
};

static _KLbyte_stringGVKd_11 K131 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 45,
  "stream-lock"
};

static _KLsimple_object_vectorGVKd_6 K132 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KJouter_stream_,
  &KJelement_type_,
  &KJstream_lock_,
  &KJbuffer_,
  &KJlocator_,
  &KJaccessor_
};

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

static _KLbyte_stringGVKd_18 K134 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 73,
  "<byte-file-stream>"
};

static _KLkeyword_signatureAvaluesGVKi K135 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34341901,
  &K136,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K137
};

static _KLsimple_object_vectorGVKd_3 K136 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLobjectGVKd,
  &K139,
  &KLobjectGVKd
};

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

static _KLsubclassGVKe K138 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLfile_streamGYstreams_internalsVio
};

static _KLsingletonGVKd K139 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLbyteGVKe
};

_KLclassGVKd KLbyte_char_file_streamGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_largeVKiI,
  &K153,
  &K142,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

_KLmm_wrapperGVKi_0 KLbyte_char_file_streamGYstreams_internalsVioW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K142,
  (dylan_value) 1,
  69,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K142 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 341835845,
  &KLbyte_char_file_streamGYstreams_internalsVio,
  &KLbyte_char_file_streamGYstreams_internalsVioW,
  &KPfalseVKi,
  &K109,
  (dylan_value) -3,
  &KLbyte_char_file_streamGZ32ZconstructorYstreams_internalsVioMM0,
  &K145,
  &K146,
  (dylan_value) 49,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K114,
  &K147,
  &K148,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe KLbyte_char_file_streamGZ32ZconstructorYstreams_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_8,
  &K151,
  &key_mep_2,
  &KLbyte_char_file_streamGZ32ZconstructorYstreams_internalsVioMM0I,
  &K129
};

static _KLsimple_object_vectorGVKd_2 K145 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLfile_streamGYstreams_internalsVio,
  &KLbyte_char_element_streamGYstreams_internalsVio
};

static _KLsimple_object_vectorGVKd_13 K146 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 53,
  &KLobjectGVKd,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLpositionable_streamGYstreams_protocolVcommon_dylan,
  &KLbasic_streamGYstreamsVio,
  &KLtyped_streamGYstreams_internalsVio,
  &KLbyte_char_element_streamGYstreams_internalsVio,
  &KLbasic_positionable_streamGYstreamsVio,
  &KLexternal_streamGYstreams_internalsVio,
  &KLbuffered_streamGYstreamsVio,
  &KLsingle_buffered_streamGYstreams_internalsVio,
  &KLfile_streamGYstreams_internalsVio,
  &KLbyte_char_file_streamGYstreams_internalsVio
};

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

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

static _KLinit_arg_descriptorGVKe KencodingHLbyte_char_file_streamGYstreams_internalsVio = {
  &KLinit_arg_descriptorGVKeW /* wrapper */,
  (dylan_value) 1,
  &KPfalseVKi,
  &KLbyte_char_file_streamGYstreams_internalsVio,
  &KJencoding_,
  &KLobjectGVKd
};

static _KLinherited_slot_descriptorGVKe Kstream_element_typeYstreams_protocolVcommon_dylanHLbyte_char_file_streamGYstreams_internalsVio = {
  &KLinherited_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 29,
  &KLbyte_characterGVKe,
  &KLbyte_char_file_streamGYstreams_internalsVio,
  &Kstream_element_typeYstreams_protocolVcommon_dylan
};

static _KLkeyword_signatureAvaluesGVKi K151 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K132,
  &KDsignature_LobjectG_typesVKi,
  &K152
};

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

static _KLbyte_stringGVKd_23 K153 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "<byte-char-file-stream>"
};

static _KLkeyword_signatureAvaluesGVKi K154 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34341901,
  &K155,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K156
};

static _KLsimple_object_vectorGVKd_3 K155 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLobjectGVKd,
  &K158,
  &KLobjectGVKd
};

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

static _KLsubclassGVKe K157 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLfile_streamGYstreams_internalsVio
};

static _KLsingletonGVKd K158 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLcharacterGVKd
};

static _KLkeyword_signatureAvaluesGVKi K159 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34341901,
  &K160,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K161
};

static _KLsimple_object_vectorGVKd_3 K160 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLobjectGVKd,
  &K163,
  &KLobjectGVKd
};

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

static _KLsubclassGVKe K162 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLfile_streamGYstreams_internalsVio
};

static _KLsingletonGVKd K163 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLbyte_characterGVKe
};

_KLclassGVKd KLgeneral_file_streamGYstreams_internalsVio = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K177,
  &K166,
  (dylan_value) 1,
  &Kstreams_internals_moduleYdylan_userVio
};

_KLmm_wrapperGVKi_0 KLgeneral_file_streamGYstreams_internalsVioW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K166,
  (dylan_value) 1,
  69,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K166 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 477102149,
  &KLgeneral_file_streamGYstreams_internalsVio,
  &KLgeneral_file_streamGYstreams_internalsVioW,
  &KPfalseVKi,
  &K109,
  (dylan_value) -3,
  &KLgeneral_file_streamGZ32ZconstructorYstreams_internalsVioMM0,
  &K169,
  &K170,
  (dylan_value) 49,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K114,
  &K171,
  &K172,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe KLgeneral_file_streamGZ32ZconstructorYstreams_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_8,
  &K175,
  &key_mep_2,
  &KLgeneral_file_streamGZ32ZconstructorYstreams_internalsVioMM0I,
  &K129
};

static _KLsimple_object_vectorGVKd_2 K169 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLfile_streamGYstreams_internalsVio,
  &KLgeneral_typed_streamGYstreams_internalsVio
};

static _KLsimple_object_vectorGVKd_13 K170 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 53,
  &KLobjectGVKd,
  &KLclosable_objectGYcommon_extensionsVcommon_dylan,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLpositionable_streamGYstreams_protocolVcommon_dylan,
  &KLbasic_streamGYstreamsVio,
  &KLtyped_streamGYstreams_internalsVio,
  &KLgeneral_typed_streamGYstreams_internalsVio,
  &KLbasic_positionable_streamGYstreamsVio,
  &KLexternal_streamGYstreams_internalsVio,
  &KLbuffered_streamGYstreamsVio,
  &KLsingle_buffered_streamGYstreams_internalsVio,
  &KLfile_streamGYstreams_internalsVio,
  &KLgeneral_file_streamGYstreams_internalsVio
};

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

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

static _KLinit_arg_descriptorGVKe KencodingHLgeneral_file_streamGYstreams_internalsVio = {
  &KLinit_arg_descriptorGVKeW /* wrapper */,
  (dylan_value) 1,
  &KPfalseVKi,
  &KLgeneral_file_streamGYstreams_internalsVio,
  &KJencoding_,
  &KLobjectGVKd
};

static _KLinherited_slot_descriptorGVKe Kstream_element_typeYstreams_protocolVcommon_dylanHLgeneral_file_streamGYstreams_internalsVio = {
  &KLinherited_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 29,
  &KLcharacterGVKd,
  &KLgeneral_file_streamGYstreams_internalsVio,
  &Kstream_element_typeYstreams_protocolVcommon_dylan
};

static _KLkeyword_signatureAvaluesGVKi K175 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K132,
  &KDsignature_LobjectG_typesVKi,
  &K176
};

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

static _KLbyte_stringGVKd_21 K177 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 85,
  "<general-file-stream>"
};

static _KLkeyword_signatureAvaluesGVKi K178 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 34341901,
  &K102,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K179
};

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

static _KLsubclassGVKe K180 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLfile_streamGYstreams_internalsVio
};

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

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

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

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

static _KLkeyword_signatureGVKe K185 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 47448069,
  &K68,
  &K189,
  &KDsignature_LobjectG_typesVKi
};

static _KLsimple_object_vectorGVKd_4 K186 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJbuffer_size_,
  &KPfalseVKi,
  &KJlocator_,
  &KPfalseVKi
};

static _KLsymbolGVKd KJbuffer_size_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K188
};

static _KLbyte_stringGVKd_11 K188 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 45,
  "buffer-size"
};

static _KLsimple_object_vectorGVKd_2 K189 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJbuffer_size_,
  &KJlocator_
};

_KLsimple_methodGVKe Kstream_consoleQYstreams_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K192,
  &Kstream_consoleQYstreams_internalsVioMM0I
};

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

_KLsimple_methodGVKe Kwritable_file_stream_position_setterYstreams_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K205,
  &Kwritable_file_stream_position_setterYstreams_internalsVioMM0I
};

static _KLsymbolGVKd KJposition_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K204
};

static _KLbyte_stringGVKd_40 K197 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 161,
  "input-output stream must be positionable"
};

_KLsimple_methodGVKe Kload_buffer_and_fillYstreams_internalsVio = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_5,
  &K203,
  &Kload_buffer_and_fillYstreams_internalsVioI
};

static _KLsymbolGVKd KJclosed_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K202
};

static _KLbyte_stringGVKd_39 K200 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 157,
  "Can\'t set position of closed end stream"
};

static _KLbyte_stringGVKd_32 K201 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 129,
  "Fell through select cases on %=."
};

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

static _KLsignatureGVKe K203 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943061,
  &K81
};

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

static _KLsignatureAvaluesGVKi K205 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K206,
  &KDsignature_LintegerG_typesVKi
};

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

_KLkeyword_methodGVKe Kstream_contentsYstreams_protocolVcommon_dylanMioM2 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K265,
  &key_mep_3,
  &Kstream_contentsYstreams_protocolVcommon_dylanMioM2I,
  &K266
};

_KLsimple_methodGVKe Kunread_elementYstreams_protocolVcommon_dylanMioM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K259,
  &Kunread_elementYstreams_protocolVcommon_dylanMioM2I
};

_KLkeyword_methodGVKe Kadjust_stream_positionYstreams_protocolVcommon_dylanMioM2 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K255,
  &key_mep_4,
  &Kadjust_stream_positionYstreams_protocolVcommon_dylanMioM2I,
  &K256
};

_KLsimple_methodGVKe Kstream_position_setterYstreams_protocolVcommon_dylanMioM4 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K205,
  &Kstream_position_setterYstreams_protocolVcommon_dylanMioM4I
};

_KLsimple_methodGVKe Kstream_positionYstreams_protocolVcommon_dylanMioM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K248,
  &Kstream_positionYstreams_protocolVcommon_dylanMioM2I
};

_KLkeyword_methodGVKe KcloseYcommon_extensionsVcommon_dylanMioM4 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K247,
  &key_mep_2,
  &KcloseYcommon_extensionsVcommon_dylanMioM4I,
  &KPempty_vectorVKi
};

_KLsimple_methodGVKe Kstream_sizeYstreams_protocolVcommon_dylanMioM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K245,
  &Kstream_sizeYstreams_protocolVcommon_dylanMioM2I
};

_KLsimple_methodGVKe Kstream_input_availableQYstreams_protocolVcommon_dylanMioM3 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K192,
  &Kstream_input_availableQYstreams_protocolVcommon_dylanMioM3I
};

_KLsimple_methodGVKe Kstream_at_endQYstreams_protocolVcommon_dylanMioM3 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K192,
  &Kstream_at_endQYstreams_protocolVcommon_dylanMioM3I
};

_KLkeyword_methodGVKe KmakeVKdMioM3 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_5,
  &K237,
  &key_mep_5,
  &KmakeVKdMioM3I,
  &K238
};

static _KLkeyword_signatureAvaluesGVKi K237 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 39060485,
  &K239,
  &K240,
  &KDsignature_LobjectG_typesVKi,
  &K68
};

static _KLsimple_object_vectorGVKd_6 K238 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KJlocator_,
  &KPfalseVKi,
  &KJelement_type_,
  &KLbyte_characterGVKe,
  &KJencoding_,
  &KPfalseVKi
};

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

static _KLsimple_object_vectorGVKd_3 K240 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KJlocator_,
  &KJelement_type_,
  &KJencoding_
};

static _KLsingletonGVKd K241 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLfile_streamGYstreams_internalsVio
};

static _KLbyte_stringGVKd_23 K242 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "stream-input-available?"
};

static _KLunionGVKe K243 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K57,
  &KLintegerGVKd
};

static _KLbyte_stringGVKd_37 K244 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 149,
  "Can\'t determine size of closed stream"
};

static _KLsignatureAvaluesGVKi K245 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K68,
  &K246
};

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

static _KLkeyword_signatureGVKe K247 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 46399493,
  &K68,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

static _KLbyte_stringGVKd_35 K249 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 141,
  "Can\'t set position of closed stream"
};

static _KLsymbolGVKd KJcurrent_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K254
};

_KLsimple_methodGVKe Kadjust_stream_position_from_startYstreams_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K252,
  &Kadjust_stream_position_from_startYstreams_internalsVioMM0I
};

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

static _KLsimple_object_vectorGVKd_3 K253 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLintegerGVKd,
  &KLfile_streamGYstreams_internalsVio,
  &K243
};

static _KLbyte_stringGVKd_7 K254 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 29,
  "current"
};

static _KLkeyword_signatureAvaluesGVKi K255 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33817609,
  &K257,
  &K258,
  &KDsignature_LobjectG_typesVKi,
  &KDsignature_LintegerG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K256 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJfrom_,
  &KJcurrent_
};

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

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

static _KLsignatureGVKe K259 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41944073,
  &K260
};

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

static _KLbyte_stringGVKd_60 K261 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 241,
  "Cannot use stream-contents on an output only file stream: %="
};

static _KLbyte_stringGVKd_49 K262 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 197,
  "Can\'t set call stream-contents on a closed stream"
};

static _KLbyte_stringGVKd_54 K263 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 217,
  "Cannot call stream-contents. Stream isn\'t readable: %="
};

static _KLbyte_stringGVKd_114 K264 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 457,
  "Cannot use clear-contents? keyword argument to streams-contents when the stream is a subclass of <file-stream>: %="
};

static _KLkeyword_signatureAvaluesGVKi K265 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33817605,
  &K68,
  &K269,
  &KDsignature_LobjectG_typesVKi,
  &KDsignature_LsequenceG_typesVKi
};

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

static _KLsymbolGVKd KJclear_contentsQ_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K268
};

static _KLbyte_stringGVKd_15 K268 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "clear-contents?"
};

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

static _KLpairGVKd K270 = {
  &KLpairGVKdW /* wrapper */,
  &KLnative_file_accessorGYstreams_internalsVio,
  &KPempty_listVKi
};

static _KLpairGVKd K271 = {
  &KLpairGVKdW /* wrapper */,
  &KLmulti_buffered_streamGYstreams_internalsVio,
  &K272
};

static _KLpairGVKd K272 = {
  &KLpairGVKdW /* wrapper */,
  &KLbyte_file_streamGYstreams_internalsVio,
  &K273
};

static _KLpairGVKd K273 = {
  &KLpairGVKdW /* wrapper */,
  &KLbyte_char_file_streamGYstreams_internalsVio,
  &K274
};

static _KLpairGVKd K274 = {
  &KLpairGVKdW /* wrapper */,
  &KLgeneral_file_streamGYstreams_internalsVio,
  &KPempty_listVKi
};

/* Code */

dylan_value KinitializeVKdMioM5I (dylan_value stream_, dylan_value initargs_, dylan_value requested_buffer_size_, dylan_value locator_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  _KLsimple_object_vectorGVKd_4 T18 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  _KLsimple_object_vectorGVKd_4 T19 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T20;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:70
  T13 = primitive_copy_vector(initargs_);
  T12 = primitive_next_methods_parameter();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
  T14 = primitive_idQ(T12,&KPempty_listVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
  if (T14 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
    KerrorVKdMM1I(&K63, &KPempty_vectorVKi);
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
    T15 = SLOT_VALUE_INITD(T12, 0);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
    T16 = SLOT_VALUE_INITD(T12, 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
    MEP_CALL_PROLOG(T15, T16, 2);
    MEP_CALL2(T15, stream_, T13);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:73
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:74
  CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
  T5 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:74
  if (T5 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:75
    T17 = APPLY2(&Knew_accessorYstreams_internalsVioMM0, IKJfile_, T13);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:75
    CONGRUENT_CALL_PROLOG(&Kaccessor_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(T17, stream_);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:74
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:77
  if (requested_buffer_size_ != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:79
    T18.vector_element_[0] = IKJknown_power_of_two_sizeQ_;
    T18.vector_element_[1] = &KPfalseVKi;
    T18.vector_element_[2] = &KJsize_;
    T18.vector_element_[3] = requested_buffer_size_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:79
    T6 = Kmake_Lpower_of_two_bufferGYstreams_internalsVioMM0I(&T18, &KPfalseVKi, requested_buffer_size_, C(0x0));
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:78
    CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(T6, stream_);
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:87
    CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
    T7 = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:87
    T8 = CALL1(&Kaccessor_preferred_buffer_sizeYstreams_internalsVio, T7);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:85
    T19.vector_element_[0] = IKJknown_power_of_two_sizeQ_;
    T19.vector_element_[1] = &KPtrueVKi;
    T19.vector_element_[2] = &KJsize_;
    T19.vector_element_[3] = T8;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:85
    T9 = Kmake_Lpower_of_two_bufferGYstreams_internalsVioMM0I(&T19, &KPtrueVKi, T8, C(0x0));
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:84
    CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(T9, stream_);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:77
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:95
  CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
  T10 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:95
  T11 = CALL1(&Kaccessor_positionYstreams_internalsVio, T10);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:95
  CONGRUENT_CALL_PROLOG(&Kstream_position_setterYstreams_protocolVcommon_dylan, 2);
  CONGRUENT_CALL2(T11, stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:96
  T20 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:70
  MV_SET_COUNT(0);
  return(T20);
}

dylan_value Kdo_get_output_bufferYstreamsVioMM1I (dylan_value the_stream_, dylan_value Urest_, dylan_value bytes_) {
  dylan_value T4;
  dylan_value the_buffer_;
  dylan_value T6;
  dylan_value T7_0;
  dylan_value T8;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:339
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:342
  Kensure_writableYstreams_internalsVioI(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:343
  CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
  T4 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:342
  primitive_type_check(T4, &KLbufferGYstreamsVio);
  the_buffer_ = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:344
  CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
  T6 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:344
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:346
    T8 = SLOT_VALUE_INITD(the_buffer_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:346
    Kbuffer_fillYstreamsVioMM0I(the_buffer_, (dylan_value) 1, &KPempty_vectorVKi, T8, &KPunboundVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:347
    CONGRUENT_CALL_PROLOG(&Kdo_release_input_bufferYstreamsVio, 1);
    CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:348
    CONGRUENT_CALL_PROLOG(&Kstream_output_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(the_buffer_, the_stream_);
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:350
    KerrorVKdMM1I(&K79, &KPempty_vectorVKi);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:344
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:352
  T7_0 = the_buffer_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:339
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kdo_next_output_bufferYstreamsVioMM1I (dylan_value the_stream_, dylan_value Urest_, dylan_value bytes_) {
  dylan_value T4;
  dylan_value the_bufferF5;
  dylan_value T6;
  dylan_value T7_0;
  dylan_value the_bufferF8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  DWORD T25;
  DWORD T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  DWORD T30;
  DWORD T31;
  DWORD T32;
  DWORD T33;
  dylan_value T34;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:361
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:365
  CONGRUENT_CALL_PROLOG(&Kstream_output_bufferYstreams_internalsVio, 1);
  T4 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:364
  primitive_type_check(T4, &KLbufferGYstreamsVio);
  the_bufferF5 = T4;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:364
  the_bufferF8 = the_bufferF5;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T22 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T23 = SLOT_VALUE_INITD(T22, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T21 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T24 = SLOT_VALUE_INITD(T21, 9);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T25 = primitive_cast_integer_as_raw(T23);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T26 = primitive_cast_integer_as_raw(T24);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  T27 = primitive_machine_word_equalQ(T25,T26);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  if (T27 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
    Kassertion_failureVKiI(&K77, &KPempty_vectorVKi);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:366
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T20 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T28 = SLOT_VALUE_INITD(T20, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T19 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T29 = SLOT_VALUE_INITD(T19, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T30 = primitive_cast_integer_as_raw(T28);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T31 = primitive_cast_integer_as_raw(T29);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T32 = primitive_machine_word_logxor(T31,1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T33 = primitive_machine_word_add_signal_overflow(T30,T32);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:368
  T34 = primitive_cast_raw_as_integer(T33);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:369
  T18 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:369
  T6 = Kforce_bufferYstreams_internalsVioI(T18, the_stream_, &KPempty_vectorVKi, &KPtrueVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:369
  the_bufferF8 = T6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:370
  T17 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:370
  CONGRUENT_CALL_PROLOG(&Kstream_output_buffer_setterYstreams_internalsVio, 2);
  CONGRUENT_CALL2(T17, the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:371
  T16 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:371
  CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
  CONGRUENT_CALL2(T16, the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:372
  T15 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:372
  Kbuffer_fillYstreamsVioMM0I(T15, (dylan_value) 1, &KPempty_vectorVKi, (dylan_value) 1, &KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:373
  T14 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:373
  SLOT_VALUE_SETTER(T34, T14, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:374
  T13 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:374
  SLOT_VALUE_SETTER(&KPfalseVKi, T13, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:375
  T12 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:375
  SLOT_VALUE_SETTER((dylan_value) 1, T12, 4);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:376
  T11 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:376
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:377
  T10 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:377
  SLOT_VALUE_SETTER((dylan_value) 1, T10, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:378
  T9 = the_bufferF8;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:378
  T7_0 = T9;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:361
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kdo_get_input_bufferYstreamsVioMM1I (dylan_value the_stream_, dylan_value Urest_, dylan_value waitQ_, dylan_value bytes_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value read_position_;
  dylan_value start_;
  dylan_value T16;
  dylan_value count_;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20_0;
  dylan_value current_buffer_;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:249
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:253
  Kensure_readableYstreams_internalsVioI(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:254
  CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
  T5 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:253
  current_buffer_ = T5;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:255
  CONGRUENT_CALL_PROLOG(&Kstream_output_bufferYstreams_internalsVio, 1);
  T6 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:255
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:259
    T35 = current_buffer_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:259
    CONGRUENT_CALL_PROLOG(&Kstream_input_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(T35, the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:260
    CONGRUENT_CALL_PROLOG(&Kdo_release_output_bufferYstreamsVio, 1);
    CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
    T34 = current_buffer_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
    T7 = CALL1(&Kbuffer_nextYstreamsVio, T34);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
    T33 = current_buffer_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
    T8 = CALL1(&Kbuffer_endYstreamsVio, T33);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
    CONGRUENT_CALL_PROLOG(&KLVKd, 2);
    T36 = CONGRUENT_CALL2(T7, T8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
    if (T36 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      T32 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      T9 = CALL1(&Kbuffer_endYstreamsVio, T32);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      T31 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      T10 = CALL1(&Kbuffer_sizeYstreamsVioMM0, T31);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      CONGRUENT_CALL_PROLOG(&KLVKd, 2);
      T11 = CONGRUENT_CALL2(T9, T10);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      if (T11 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
        Kassertion_failureVKiI(&K77, &KPempty_vectorVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:265
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:267
      T30 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:267
      T12 = CALL1(&Kbuffer_positionYstreamsVio, T30);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:267
      T29 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:267
      T13 = CALL1(&Kbuffer_endYstreamsVio, T29);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:267
      CONGRUENT_CALL_PROLOG(&KAVKd, 2);
      read_position_ = CONGRUENT_CALL2(T12, T13);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:268
      T28 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:268
      start_ = CALL1(&Kbuffer_endYstreamsVio, T28);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:269
      T27 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:269
      T16 = CALL1(&Kbuffer_endYstreamsVio, T27);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:269
      CONGRUENT_CALL_PROLOG(&K_VKd, 2);
      count_ = CONGRUENT_CALL2(T16, start_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:270
      T26 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:270
      CALL5(&Kload_bufferYstreams_internalsVio, the_stream_, T26, read_position_, start_, count_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
      T25 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
      T18 = CALL1(&Kbuffer_nextYstreamsVio, T25);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
      T24 = current_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
      T19 = CALL1(&Kbuffer_endYstreamsVio, T24);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
      CONGRUENT_CALL_PROLOG(&KLVKd, 2);
      T37 = CONGRUENT_CALL2(T18, T19);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
      if (T37 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:273
        T23 = current_buffer_;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:273
        CALL4(&Kforce_bufferYstreams_internalsVio, T23, the_stream_, IKJreturn_fresh_bufferQ_, &KPfalseVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:275
        current_buffer_ = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:271
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:261
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:279
    KerrorVKdMM1I(&K79, &KPempty_vectorVKi);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:255
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:281
  T22 = current_buffer_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:281
  T20_0 = T22;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:249
  MV_SET_COUNT(1);
  return(T20_0);
}

dylan_value Kdo_next_input_bufferYstreamsVioMM1I (dylan_value the_stream_, dylan_value Urest_, dylan_value waitQ_, dylan_value bytes_) {
  dylan_value T5;
  dylan_value the_bufferF6;
  dylan_value T7;
  dylan_value nread_;
  dylan_value T9_0;
  dylan_value T10_0;
  dylan_value T11_0;
  dylan_value the_bufferF12;
  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;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  DWORD T29;
  DWORD T30;
  DWORD T31;
  DWORD T32;
  dylan_value T33;
  DWORD T34;
  dylan_value T35;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:292
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:296
  CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
  T5 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:295
  primitive_type_check(T5, &KLbufferGYstreamsVio);
  the_bufferF6 = T5;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:295
  the_bufferF12 = the_bufferF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:297
  T25 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:297
  T26 = SLOT_VALUE_INITD(T25, 9);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T24 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T27 = SLOT_VALUE_INITD(T24, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T23 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T28 = SLOT_VALUE_INITD(T23, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T29 = primitive_cast_integer_as_raw(T27);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T30 = primitive_cast_integer_as_raw(T28);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T31 = primitive_machine_word_logxor(T30,1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T32 = primitive_machine_word_add_signal_overflow(T29,T31);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:300
  T33 = primitive_cast_raw_as_integer(T32);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:309
  T22 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:309
  T7 = Kforce_bufferYstreams_internalsVioI(T22, the_stream_, &KPempty_vectorVKi, &KPtrueVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:309
  the_bufferF12 = T7;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:310
  T21 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:310
  CONGRUENT_CALL_PROLOG(&Kstream_input_buffer_setterYstreams_internalsVio, 2);
  CONGRUENT_CALL2(T21, the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:311
  T20 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:311
  CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
  CONGRUENT_CALL2(T20, the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:313
  T19 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:313
  nread_ = Kload_bufferYstreams_internalsVioI(the_stream_, T19, T33, (dylan_value) 1, T26);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:319
  T18 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:319
  SLOT_VALUE_SETTER(T33, T18, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:320
  T17 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:320
  SLOT_VALUE_SETTER(&KPfalseVKi, T17, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:321
  T16 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:321
  SLOT_VALUE_SETTER(nread_, T16, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:322
  T15 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:322
  SLOT_VALUE_SETTER((dylan_value) 1, T15, 4);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:323
  T14 = the_bufferF12;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:323
  SLOT_VALUE_SETTER((dylan_value) 1, T14, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:324
  T34 = primitive_cast_integer_as_raw(nread_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:324
  T35 = primitive_machine_word_less_thanQ(1,T34);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:324
  if (T35 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:325
    T13 = the_bufferF12;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:325
    T9_0 = T13;
    T11_0 = T9_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:327
    T10_0 = &KPfalseVKi;
    T11_0 = T10_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:324
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:292
  MV_SET_COUNT(1);
  return(T11_0);
}

dylan_value Kdo_force_output_buffersYstreamsVioMM1I (dylan_value the_stream_) {
  dylan_value T2;
  dylan_value the_buffer_;
  dylan_value T4;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:395
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:397
  CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
  T2 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:397
  primitive_type_check(T2, &KLbufferGYstreamsVio);
  the_buffer_ = T2;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:398
  Kforce_bufferYstreams_internalsVioI(the_buffer_, the_stream_, &KPempty_vectorVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:399
  T4 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:395
  MV_SET_COUNT(0);
  return(T4);
}

dylan_value Kforce_output_buffersYstreamsVioMM1I (dylan_value stream_) {
  dylan_value sb_;
  dylan_value T3_0;
  dylan_value T4_0;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  DWORD T8;
  DWORD T9;
  dylan_value T10;
  _KLsimple_object_vectorGVKd_2 T11 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  _KLsimple_object_vectorGVKd_2 T12 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:385
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
  CONGRUENT_CALL_PROLOG(&Kstream_output_bufferYstreams_internalsVio, 1);
  sb_ = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
  if (sb_ != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T5 = sb_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T6 = SLOT_VALUE_INITD(T5, 0);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T7 = SLOT_VALUE_INITD(T5, 9);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T8 = primitive_cast_integer_as_raw(T6);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T9 = primitive_cast_integer_as_raw(T7);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T10 = primitive_machine_word_less_thanQ(T8,T9);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    if (T10 != &KPfalseVKi) {
      T14 = T5;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
      T11.vector_element_[0] = IKJbytes_;
      T11.vector_element_[1] = (dylan_value) 5;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
      CONGRUENT_CALL_PROLOG(&Kdo_next_output_bufferYstreamsVio, 2);
      T3_0 = CONGRUENT_CALL2(stream_, &T11);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
      T13 = T3_0;
      T14 = T13;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T16 = T14;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T12.vector_element_[0] = IKJbytes_;
    T12.vector_element_[1] = (dylan_value) 5;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    CONGRUENT_CALL_PROLOG(&Kdo_get_output_bufferYstreamsVio, 2);
    T4_0 = CONGRUENT_CALL2(stream_, &T12);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
    T15 = T4_0;
    T16 = T15;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:387
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:388
  if (T16 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:389
    CONGRUENT_CALL_PROLOG(&Kdo_force_output_buffersYstreamsVio, 1);
    CONGRUENT_CALL1(stream_);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:388
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:392
  T17 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:385
  MV_SET_COUNT(0);
  return(T17);
}

dylan_value Kread_to_endYstreamsVioMM2I (dylan_value stream_) {
  dylan_value T2;
  dylan_value the_size_;
  dylan_value T4;
  dylan_value n_;
  dylan_value T6_0;
  dylan_value T7_0;
  dylan_value T8;
  dylan_value T9_0;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18_0;
  _KLsimple_object_vectorGVKd_4 T19 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T20_0;
  dylan_value T21_0;
  dylan_value T22_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:758
  T10 = primitive_next_methods_parameter();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:760
  CONGRUENT_CALL_PROLOG(&Kstream_openQYstreams_protocolVcommon_dylan, 1);
  T2 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:760
  if (T2 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:761
    CONGRUENT_CALL_PROLOG(&Kstream_sizeYstreams_protocolVcommon_dylan, 1);
    the_size_ = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:762
    if (the_size_ != &KPfalseVKi) {
      T11 = the_size_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:763
      CONGRUENT_CALL_PROLOG(&Kstream_positionYstreams_protocolVcommon_dylan, 1);
      T4 = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:763
      CONGRUENT_CALL_PROLOG(&K_VKd, 2);
      n_ = CONGRUENT_CALL2(T11, T4);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:764
      T6_0 = CALL2(&KreadYstreams_protocolVcommon_dylan, stream_, n_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:764
      T21_0 = T6_0;
      {
        MV_CHECK_TYPE_PROLOGUE(T6_0);
        primitive_type_check(T21_0, &KLsequenceGVKd);
        MV_CHECK_TYPE_EPILOGUE();
      }
      T7_0 = T21_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
      T14 = primitive_idQ(T10,&KPempty_listVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
      if (T14 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
        T17 = KerrorVKdMM1I(&K63, &KPempty_vectorVKi);
        T13 = T17;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
        T15 = SLOT_VALUE_INITD(T10, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
        T16 = SLOT_VALUE_INITD(T10, 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
        MEP_CALL_PROLOG(T15, T16, 1);
        T12 = MEP_CALL1(T15, stream_);
        T13 = T12;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
      T18_0 = T13;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:767
      T22_0 = T18_0;
      {
        MV_CHECK_TYPE_PROLOGUE(T18_0);
        primitive_type_check(T22_0, &KLsequenceGVKd);
        MV_CHECK_TYPE_EPILOGUE();
      }
      T7_0 = T22_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:762
    T9_0 = T7_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:770
    T19.vector_element_[0] = IKJstream_;
    T19.vector_element_[1] = stream_;
    T19.vector_element_[2] = &KJformat_string_;
    T19.vector_element_[3] = &K65;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:770
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T8 = CONGRUENT_CALL2(&KLstream_closed_errorGYstreamsVio, &T19);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:770
    T20_0 = KerrorVKdMM0I(T8, &KPempty_vectorVKi);
    T9_0 = T20_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:760
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:758
  MV_SET_COUNT(1);
  return(T9_0);
}

dylan_value Kforce_bufferYstreams_internalsVioI (dylan_value the_buffer_, dylan_value the_stream_, dylan_value Urest_, dylan_value return_fresh_bufferQ_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9_0;
  dylan_value T9_1;
  dylan_value nwritten_;
  dylan_value new_buffer_;
  dylan_value T12_0;
  dylan_value the_bufferF13;
  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;
  DWORD T25;
  DWORD T26;
  DWORD T27;
  DWORD T28;
  dylan_value T29;
  dylan_value T30;
  DWORD T31;
  DWORD T32;
  DWORD T33;
  DWORD T34;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  DWORD T38;
  dylan_value T39;
  dylan_value T40;
  dylan_value T41;
  DWORD T42;
  DWORD T43;
  DWORD T44;
  DWORD T45;
  dylan_value T46;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:406
  the_bufferF13 = the_buffer_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:410
  T21 = the_bufferF13;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:410
  T22 = SLOT_VALUE_INITD(T21, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:410
  if (T22 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:411
    T20 = the_bufferF13;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:411
    T23 = SLOT_VALUE_INITD(T20, 4);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T19 = the_bufferF13;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T24 = SLOT_VALUE_INITD(T19, 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T25 = primitive_cast_integer_as_raw(T24);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T26 = primitive_cast_integer_as_raw(T23);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T27 = primitive_machine_word_logxor(T26,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T28 = primitive_machine_word_subtract_signal_overflow(T25,T27);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:412
    T29 = primitive_cast_raw_as_integer(T28);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T18 = the_bufferF13;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T30 = SLOT_VALUE_INITD(T18, 2);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T31 = primitive_cast_integer_as_raw(T30);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T32 = primitive_cast_integer_as_raw(T23);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T33 = primitive_machine_word_logxor(T32,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T34 = primitive_machine_word_add_signal_overflow(T31,T33);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:413
    T35 = primitive_cast_raw_as_integer(T34);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:414
    CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
    T5 = CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:414
    T6 = CALL1(&Kaccessor_positionYstreams_internalsVio, T5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:414
    CONGRUENT_CALL_PROLOG(&KEVKd, 2);
    T36 = CONGRUENT_CALL2(T35, T6);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:414
    if (T36 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:415
      CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
      T7 = CONGRUENT_CALL1(the_stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:415
      CALL2(&Kaccessor_position_setterYstreams_internalsVio, T35, T7);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:414
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:417
    T37 = primitive_machine_word_less_thanQ(1,T28);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:417
    if (T37 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:419
      CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
      T8 = CONGRUENT_CALL1(the_stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:419
      T17 = the_bufferF13;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:419
      T9_0 = CALL8(&Kaccessor_write_fromYstreams_internalsVio, T8, the_stream_, T23, T29, IKJbuffer_, T17, IKJreturn_fresh_bufferQ_, return_fresh_bufferQ_);
      T9_1 = MV_GET_ELT(1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:418
      nwritten_ = T9_0;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:418
      new_buffer_ = T9_1;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:422
      the_bufferF13 = new_buffer_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:423
      T38 = primitive_cast_integer_as_raw(nwritten_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:423
      T39 = primitive_machine_word_equalQ(T38,T28);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:423
      if (T39 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:424
        KerrorVKdMM1I(&K39, &KPempty_vectorVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:423
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:426
      T40 = SLOT_VALUE(the_stream_, 2);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:426
      T41 = primitive_idQ(T40,(dylan_value) 9);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:426
      if (T41 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        T42 = primitive_cast_integer_as_raw(T23);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        T43 = primitive_cast_integer_as_raw(nwritten_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        T44 = primitive_machine_word_logxor(T43,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        T45 = primitive_machine_word_add_signal_overflow(T42,T44);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        T46 = primitive_cast_raw_as_integer(T45);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        T16 = the_bufferF13;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:427
        SLOT_VALUE_SETTER(T46, T16, 4);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:426
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:417
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:430
    T15 = the_bufferF13;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:430
    SLOT_VALUE_SETTER(&KPfalseVKi, T15, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:410
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:432
  T14 = the_bufferF13;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:432
  T12_0 = T14;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:406
  MV_SET_COUNT(1);
  return(T12_0);
}

dylan_value Kload_bufferYstreams_internalsVioI (dylan_value the_stream_, dylan_value the_buffer_, dylan_value desired_file_position_, dylan_value start_, dylan_value count_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9_0;
  dylan_value T9_1;
  dylan_value nread_;
  dylan_value T11_0;
  dylan_value T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  DWORD T16;
  dylan_value T17;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:214
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:218
  CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
  T5 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:218
  T6 = CALL1(&Kaccessor_positionYstreams_internalsVio, T5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:218
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  T12 = CONGRUENT_CALL2(desired_file_position_, T6);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:218
  if (T12 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:219
    CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
    T7 = CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:219
    CALL2(&Kaccessor_position_setterYstreams_internalsVio, desired_file_position_, T7);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:218
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:223
  CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
  T8 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:222
  T9_0 = CALL6(&Kaccessor_read_intoXYstreams_internalsVio, T8, the_stream_, start_, count_, IKJbuffer_, the_buffer_);
  T9_1 = MV_GET_ELT(1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:218
  nread_ = T9_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:224
  T13 = primitive_cast_integer_as_raw(start_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:224
  T14 = primitive_cast_integer_as_raw(nread_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:224
  T15 = primitive_machine_word_logxor(T14,1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:224
  T16 = primitive_machine_word_add_signal_overflow(T13,T15);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:224
  T17 = primitive_cast_raw_as_integer(T16);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:224
  SLOT_VALUE_SETTER(T17, the_buffer_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:225
  T11_0 = nread_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:214
  MV_SET_COUNT(1);
  return(T11_0);
}

dylan_value Kload_buffer_and_fillYstreams_internalsVioI (dylan_value the_stream_, dylan_value the_buffer_, dylan_value desired_file_position_, dylan_value start_, dylan_value count_) {
  dylan_value T6;
  dylan_value T7;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:228
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:233
  Kload_bufferYstreams_internalsVioI(the_stream_, the_buffer_, desired_file_position_, start_, count_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:234
  T6 = SLOT_VALUE_INITD(the_buffer_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:234
  T7 = Kbuffer_fillYstreamsVioMM0I(the_buffer_, (dylan_value) 1, &KPempty_vectorVKi, T6, &KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:228
  MV_SET_COUNT(0);
  return(T7);
}

dylan_value Ktype_for_file_streamYstreams_internalsVioMM0I (dylan_value locator_, dylan_value element_type_, dylan_value encoding_, dylan_value Urest_) {
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:117
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:122
  T5_0 = &KLgeneral_file_streamGYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:117
  MV_SET_COUNT(1);
  return(T5_0);
}

dylan_value Ktype_for_file_streamYstreams_internalsVioMM1I (dylan_value locator_, dylan_value element_type_, dylan_value encoding_, dylan_value Urest_) {
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:125
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:130
  T5_0 = &KLbyte_char_file_streamGYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:125
  MV_SET_COUNT(1);
  return(T5_0);
}

dylan_value Ktype_for_file_streamYstreams_internalsVioMM2I (dylan_value locator_, dylan_value element_type_, dylan_value encoding_, dylan_value Urest_) {
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:134
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:139
  T5_0 = &KLbyte_char_file_streamGYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:134
  MV_SET_COUNT(1);
  return(T5_0);
}

dylan_value Ktype_for_file_streamYstreams_internalsVioMM3I (dylan_value locator_, dylan_value element_type_, dylan_value encoding_, dylan_value Urest_) {
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:142
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:147
  T5_0 = &KLbyte_file_streamGYstreams_internalsVio;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:142
  MV_SET_COUNT(1);
  return(T5_0);
}

dylan_value KLbyte_file_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_outer_stream_, dylan_value Uunique_private_stream_element_type_value_, dylan_value Uunique_private_stream_lock_value_, dylan_value Uunique_stream_shared_buffer_, dylan_value Uunique_stream_locator_, dylan_value Uunique_accessor_) {
  dylan_value T9;
  dylan_value Uunique_stream_locatorF10;
  dylan_value T11;
  dylan_value Uunique_outer_streamF12;
  dylan_value Uunique_outer_streamF13;
  dylan_value Uunique_private_stream_element_type_valueF14;
  dylan_value Uunique_private_stream_lock_valueF15;
  dylan_value Uunique_stream_shared_bufferF16;
  dylan_value Uunique_accessorF17;
  dylan_value T18_0;
  dylan_value T19;
  _KLsimple_object_vectorGVKd_1 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T21;
  dylan_value T22;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:54
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:54
  T19 = primitive_idQ(Uunique_stream_locator_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:54
  if (T19 != &KPfalseVKi) {
    T20.vector_element_[0] = &KJlocator_;
    T21 = KerrorVKdMM1I(&K119, &T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:54
    T9 = T21;
    Uunique_stream_locatorF10 = T9;
  } else {
    Uunique_stream_locatorF10 = Uunique_stream_locator_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:54
  T11 = primitive_object_allocate_filled(18,&KLbyte_file_streamGYstreams_internalsVioW,17,&KPunboundVKi,0,0,&KPunboundVKi);
  T22 = primitive_idQ(Uunique_outer_stream_,&KPunboundVKi);
  if (T22 != &KPfalseVKi) {
    Uunique_outer_streamF13 = Uunique_outer_stream_;
  } else {
    primitive_type_check(Uunique_outer_stream_, &K120);
    Uunique_outer_streamF12 = Uunique_outer_stream_;
    Uunique_outer_streamF13 = Uunique_outer_streamF12;
  }
  SLOT_VALUE_SETTER(Uunique_outer_streamF13, T11, 0);
  primitive_type_check(Uunique_private_stream_element_type_value_, &KLtypeGVKd);
  Uunique_private_stream_element_type_valueF14 = Uunique_private_stream_element_type_value_;
  SLOT_VALUE_SETTER(Uunique_private_stream_element_type_valueF14, T11, 1);
  SLOT_VALUE_SETTER(&KPunboundVKi, T11, 2);
  primitive_type_check(Uunique_private_stream_lock_value_, &K121);
  Uunique_private_stream_lock_valueF15 = Uunique_private_stream_lock_value_;
  SLOT_VALUE_SETTER(Uunique_private_stream_lock_valueF15, T11, 3);
  SLOT_VALUE_SETTER(&KPfalseVKi, T11, 4);
  SLOT_VALUE_SETTER(&KPfalseVKi, T11, 5);
  primitive_type_check(Uunique_stream_shared_buffer_, &K76);
  Uunique_stream_shared_bufferF16 = Uunique_stream_shared_buffer_;
  SLOT_VALUE_SETTER(Uunique_stream_shared_bufferF16, T11, 6);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 7);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 8);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 9);
  SLOT_VALUE_SETTER(Uunique_stream_locatorF10, T11, 10);
  primitive_type_check(Uunique_accessor_, &K56);
  Uunique_accessorF17 = Uunique_accessor_;
  SLOT_VALUE_SETTER(Uunique_accessorF17, T11, 11);
  SLOT_VALUE_SETTER(&KLsimple_byte_vectorGVKe, T11, 12);
  SLOT_VALUE_SETTER(&Kbyte_to_byteYstreams_internalsVio, T11, 13);
  SLOT_VALUE_SETTER(&Kbyte_to_byteYstreams_internalsVio, T11, 14);
  SLOT_VALUE_SETTER(&K127, T11, 15);
  SLOT_VALUE_SETTER(&K126, T11, 16);
  APPLY2(&KinitializeVKd, T11, init_args_);
  T18_0 = T11;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:54
  MV_SET_COUNT(1);
  return(T18_0);
}

static dylan_value K127I (dylan_value s_, dylan_value ss_, dylan_value d_, dylan_value ds_, dylan_value n_) {
  dylan_value T5;

  CONGRUENT_CALL_PROLOG(&Kcopy_bytesYbyte_vectorVcommon_dylan, 5);
  T5 = CONGRUENT_CALL5(d_, ds_, s_, ss_, n_);
  MV_SET_COUNT(0);
  return(T5);
}

static dylan_value K126I (dylan_value s_, dylan_value ss_, dylan_value d_, dylan_value ds_, dylan_value n_) {
  dylan_value T5;

  CONGRUENT_CALL_PROLOG(&Kcopy_bytesYbyte_vectorVcommon_dylan, 5);
  T5 = CONGRUENT_CALL5(d_, ds_, s_, ss_, n_);
  MV_SET_COUNT(0);
  return(T5);
}

dylan_value KLbyte_char_file_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_outer_stream_, dylan_value Uunique_private_stream_element_type_value_, dylan_value Uunique_private_stream_lock_value_, dylan_value Uunique_stream_shared_buffer_, dylan_value Uunique_stream_locator_, dylan_value Uunique_accessor_) {
  dylan_value T9;
  dylan_value Uunique_stream_locatorF10;
  dylan_value T11;
  dylan_value Uunique_outer_streamF12;
  dylan_value Uunique_outer_streamF13;
  dylan_value Uunique_private_stream_element_type_valueF14;
  dylan_value Uunique_private_stream_lock_valueF15;
  dylan_value Uunique_stream_shared_bufferF16;
  dylan_value Uunique_accessorF17;
  dylan_value T18_0;
  dylan_value T19;
  _KLsimple_object_vectorGVKd_1 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T21;
  dylan_value T22;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:48
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:48
  T19 = primitive_idQ(Uunique_stream_locator_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:48
  if (T19 != &KPfalseVKi) {
    T20.vector_element_[0] = &KJlocator_;
    T21 = KerrorVKdMM1I(&K119, &T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:48
    T9 = T21;
    Uunique_stream_locatorF10 = T9;
  } else {
    Uunique_stream_locatorF10 = Uunique_stream_locator_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:48
  T11 = primitive_object_allocate_filled(18,&KLbyte_char_file_streamGYstreams_internalsVioW,17,&KPunboundVKi,0,0,&KPunboundVKi);
  T22 = primitive_idQ(Uunique_outer_stream_,&KPunboundVKi);
  if (T22 != &KPfalseVKi) {
    Uunique_outer_streamF13 = Uunique_outer_stream_;
  } else {
    primitive_type_check(Uunique_outer_stream_, &K120);
    Uunique_outer_streamF12 = Uunique_outer_stream_;
    Uunique_outer_streamF13 = Uunique_outer_streamF12;
  }
  SLOT_VALUE_SETTER(Uunique_outer_streamF13, T11, 0);
  primitive_type_check(Uunique_private_stream_element_type_value_, &KLtypeGVKd);
  Uunique_private_stream_element_type_valueF14 = Uunique_private_stream_element_type_value_;
  SLOT_VALUE_SETTER(Uunique_private_stream_element_type_valueF14, T11, 1);
  SLOT_VALUE_SETTER(&KPunboundVKi, T11, 2);
  primitive_type_check(Uunique_private_stream_lock_value_, &K121);
  Uunique_private_stream_lock_valueF15 = Uunique_private_stream_lock_value_;
  SLOT_VALUE_SETTER(Uunique_private_stream_lock_valueF15, T11, 3);
  SLOT_VALUE_SETTER(&KPfalseVKi, T11, 4);
  SLOT_VALUE_SETTER(&KPfalseVKi, T11, 5);
  primitive_type_check(Uunique_stream_shared_buffer_, &K76);
  Uunique_stream_shared_bufferF16 = Uunique_stream_shared_buffer_;
  SLOT_VALUE_SETTER(Uunique_stream_shared_bufferF16, T11, 6);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 7);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 8);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 9);
  SLOT_VALUE_SETTER(Uunique_stream_locatorF10, T11, 10);
  primitive_type_check(Uunique_accessor_, &K56);
  Uunique_accessorF17 = Uunique_accessor_;
  SLOT_VALUE_SETTER(Uunique_accessorF17, T11, 11);
  SLOT_VALUE_SETTER(&KLbyte_stringGVKd, T11, 12);
  SLOT_VALUE_SETTER(&Kbyte_to_byte_charYstreams_internalsVio, T11, 13);
  SLOT_VALUE_SETTER(&Kbyte_char_to_byteYstreams_internalsVio, T11, 14);
  SLOT_VALUE_SETTER(&K127, T11, 15);
  SLOT_VALUE_SETTER(&K126, T11, 16);
  APPLY2(&KinitializeVKd, T11, init_args_);
  T18_0 = T11;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:48
  MV_SET_COUNT(1);
  return(T18_0);
}

dylan_value KLgeneral_file_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_outer_stream_, dylan_value Uunique_private_stream_element_type_value_, dylan_value Uunique_private_stream_lock_value_, dylan_value Uunique_stream_shared_buffer_, dylan_value Uunique_stream_locator_, dylan_value Uunique_accessor_) {
  dylan_value T9;
  dylan_value Uunique_stream_locatorF10;
  dylan_value T11;
  dylan_value Uunique_outer_streamF12;
  dylan_value Uunique_outer_streamF13;
  dylan_value Uunique_private_stream_element_type_valueF14;
  dylan_value Uunique_private_stream_lock_valueF15;
  dylan_value Uunique_stream_shared_bufferF16;
  dylan_value Uunique_accessorF17;
  dylan_value T18_0;
  dylan_value T19;
  _KLsimple_object_vectorGVKd_1 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T21;
  dylan_value T22;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:42
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:42
  T19 = primitive_idQ(Uunique_stream_locator_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:42
  if (T19 != &KPfalseVKi) {
    T20.vector_element_[0] = &KJlocator_;
    T21 = KerrorVKdMM1I(&K119, &T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:42
    T9 = T21;
    Uunique_stream_locatorF10 = T9;
  } else {
    Uunique_stream_locatorF10 = Uunique_stream_locator_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:42
  T11 = primitive_object_allocate_filled(18,&KLgeneral_file_streamGYstreams_internalsVioW,17,&KPunboundVKi,0,0,&KPunboundVKi);
  T22 = primitive_idQ(Uunique_outer_stream_,&KPunboundVKi);
  if (T22 != &KPfalseVKi) {
    Uunique_outer_streamF13 = Uunique_outer_stream_;
  } else {
    primitive_type_check(Uunique_outer_stream_, &K120);
    Uunique_outer_streamF12 = Uunique_outer_stream_;
    Uunique_outer_streamF13 = Uunique_outer_streamF12;
  }
  SLOT_VALUE_SETTER(Uunique_outer_streamF13, T11, 0);
  primitive_type_check(Uunique_private_stream_element_type_value_, &KLtypeGVKd);
  Uunique_private_stream_element_type_valueF14 = Uunique_private_stream_element_type_value_;
  SLOT_VALUE_SETTER(Uunique_private_stream_element_type_valueF14, T11, 1);
  SLOT_VALUE_SETTER(&KPunboundVKi, T11, 2);
  primitive_type_check(Uunique_private_stream_lock_value_, &K121);
  Uunique_private_stream_lock_valueF15 = Uunique_private_stream_lock_value_;
  SLOT_VALUE_SETTER(Uunique_private_stream_lock_valueF15, T11, 3);
  SLOT_VALUE_SETTER(&KPfalseVKi, T11, 4);
  SLOT_VALUE_SETTER(&KPfalseVKi, T11, 5);
  primitive_type_check(Uunique_stream_shared_buffer_, &K76);
  Uunique_stream_shared_bufferF16 = Uunique_stream_shared_buffer_;
  SLOT_VALUE_SETTER(Uunique_stream_shared_bufferF16, T11, 6);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 7);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 8);
  SLOT_VALUE_SETTER((dylan_value) 1, T11, 9);
  SLOT_VALUE_SETTER(Uunique_stream_locatorF10, T11, 10);
  primitive_type_check(Uunique_accessor_, &K56);
  Uunique_accessorF17 = Uunique_accessor_;
  SLOT_VALUE_SETTER(Uunique_accessorF17, T11, 11);
  SLOT_VALUE_SETTER(&KLbyte_stringGVKd, T11, 12);
  SLOT_VALUE_SETTER(&Kbyte_to_byte_charYstreams_internalsVio, T11, 13);
  SLOT_VALUE_SETTER(&Kbyte_char_to_byteYstreams_internalsVio, T11, 14);
  SLOT_VALUE_SETTER(&K127, T11, 15);
  SLOT_VALUE_SETTER(&K126, T11, 16);
  APPLY2(&KinitializeVKd, T11, init_args_);
  T18_0 = T11;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:42
  MV_SET_COUNT(1);
  return(T18_0);
}

dylan_value Kstream_consoleQYstreams_internalsVioMM0I (dylan_value fd_) {
  dylan_value T2;
  dylan_value T3_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:154
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:156
  CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
  T2 = CONGRUENT_CALL1(fd_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:156
  T3_0 = CALL1(&Kaccessor_consoleQYstreams_internalsVioMM0, T2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:154
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kwritable_file_stream_position_setterYstreams_internalsVioMM0I (dylan_value position_, dylan_value stream_) {
  dylan_value T3;
  dylan_value size_of_stream_;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8_0;
  DWORD T9;
  dylan_value T10;
  _KLsimple_object_vectorGVKd_6 T11 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:481
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:484
  CONGRUENT_CALL_PROLOG(&Kstream_sizeYstreams_protocolVcommon_dylan, 1);
  T3 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:484
  primitive_type_check(T3, &KLintegerGVKd);
  size_of_stream_ = T3;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:485
  T9 = primitive_cast_integer_as_raw(position_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:485
  T10 = primitive_machine_word_less_thanQ(T9,1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:485
  if (T10 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:490
    CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
    T5 = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:490
    T6 = CALL1(&Kaccessor_sizeYstreams_internalsVio, T5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:489
    T11.vector_element_[0] = IKJstream_;
    T11.vector_element_[1] = stream_;
    T11.vector_element_[2] = &KJsize_;
    T11.vector_element_[3] = T6;
    T11.vector_element_[4] = IKJposition_;
    T11.vector_element_[5] = position_;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:489
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T7 = CONGRUENT_CALL2(&KLstream_position_errorGYstreamsVio, &T11);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:489
    KsignalVKdMM0I(T7, &KPempty_vectorVKi);
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:486
    SLOT_VALUE_SETTER(position_, stream_, 8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:487
    Kadjust_stream_position_from_startYstreams_internalsVioMM0I(position_, stream_, size_of_stream_);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:485
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:492
  T8_0 = position_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:481
  MV_SET_COUNT(1);
  return(T8_0);
}

dylan_value Kadjust_stream_position_from_startYstreams_internalsVioMM0I (dylan_value position_from_start_, dylan_value the_stream_, dylan_value size_of_stream_) {
  dylan_value Uobject_;
  dylan_value T5;
  dylan_value the_bufferF6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value the_bufferF15;
  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;
  dylan_value T25;
  dylan_value the_bufferF26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value the_bufferF32;
  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 T41;
  dylan_value T42;
  dylan_value T43;
  dylan_value T44;
  dylan_value T45;
  dylan_value T46;
  dylan_value T47;
  dylan_value T48;
  dylan_value T49;
  dylan_value T50;
  dylan_value T51;
  dylan_value T52;
  dylan_value T53;
  dylan_value T54;
  dylan_value T55;
  dylan_value T56;
  dylan_value T57;
  dylan_value T58;
  dylan_value T59;
  dylan_value T60;
  dylan_value T61;
  dylan_value T62;
  dylan_value T63;
  dylan_value T64;
  dylan_value T65;
  dylan_value T66;
  dylan_value T67;
  dylan_value T68;
  dylan_value T69;
  dylan_value T70;
  dylan_value T71;
  dylan_value the_bufferF72;
  dylan_value T73;
  dylan_value T74;
  dylan_value T75;
  dylan_value T76;
  dylan_value T77;
  dylan_value T78;
  dylan_value T79;
  dylan_value T80;
  dylan_value T81;
  dylan_value T82;
  dylan_value T83;
  dylan_value T84;
  dylan_value T85;
  dylan_value T86;
  dylan_value T87;
  dylan_value T88;
  dylan_value T89;
  dylan_value T90;
  dylan_value T91;
  dylan_value T92;
  dylan_value T93;
  DWORD T94;
  DWORD T95;
  DWORD T96;
  dylan_value T97;
  dylan_value T98;
  DWORD T99;
  DWORD T100;
  dylan_value T101;
  DWORD T102;
  dylan_value T103;
  _KLsimple_object_vectorGVKd_6 T104 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};
  dylan_value T105;
  DWORD T106;
  dylan_value T107;
  dylan_value T108;
  dylan_value T109;
  DWORD T110;
  dylan_value T111;
  dylan_value T112;
  dylan_value T113;
  DWORD T114;
  dylan_value T115;
  dylan_value T116;
  _KLsimple_object_vectorGVKd_8 T117 = {&KLsimple_object_vectorGVKdW, (dylan_value) 33};
  dylan_value T118;
  DWORD T119;
  DWORD T120;
  DWORD T121;
  dylan_value T122;
  dylan_value T123;
  DWORD T124;
  DWORD T125;
  dylan_value T126;
  dylan_value T127_0;
  dylan_value T128;
  dylan_value T129;
  DWORD T130;
  dylan_value T131;
  dylan_value T132;
  dylan_value T133;
  DWORD T134;
  DWORD T135;
  DWORD T136;
  DWORD T137;
  dylan_value T138;
  dylan_value T139;
  dylan_value T140;
  dylan_value T141;
  DWORD T142;
  dylan_value T143;
  dylan_value T144;
  DWORD T145;
  dylan_value T146;
  dylan_value T147;
  dylan_value T148;
  DWORD T149;
  DWORD T150;
  dylan_value T151;
  dylan_value T152;
  dylan_value T153;
  DWORD T154;
  DWORD T155;
  DWORD T156;
  DWORD T157;
  dylan_value T158;
  dylan_value T159;
  dylan_value T160;
  dylan_value T161;
  dylan_value T162;
  dylan_value T163;
  dylan_value T164;
  dylan_value T165;
  dylan_value T166;
  DWORD T167;
  DWORD T168;
  DWORD T169;
  dylan_value T170;
  dylan_value T171;
  DWORD T172;
  DWORD T173;
  dylan_value T174;
  dylan_value T175;
  DWORD T176;
  dylan_value T177;
  dylan_value T178;
  dylan_value T179;
  DWORD T180;
  dylan_value T181;
  dylan_value T182;
  dylan_value T183;
  DWORD T184;
  dylan_value T185;
  DWORD T186;
  dylan_value T187;
  dylan_value T188;
  DWORD T189;
  dylan_value T190;
  DWORD T191;
  dylan_value T192;
  DWORD T193;
  dylan_value T194;
  dylan_value T195;
  _KLsimple_object_vectorGVKd_4 T196 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  _KLsimple_object_vectorGVKd_1 T197 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T198;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:529
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
  CONGRUENT_CALL_PROLOG(&Kstream_directionYstreams_internalsVio, 1);
  Uobject_ = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
  T92 = primitive_idQ(Uobject_,&KJinput_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
  if (T92 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:536
    CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
    T5 = CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:536
    primitive_type_check(T5, &KLbufferGYstreamsVio);
    the_bufferF6 = T5;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:538
    T93 = SLOT_VALUE(the_bufferF6, 6);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:538
    T94 = primitive_cast_integer_as_raw(T93);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:538
    T95 = primitive_cast_integer_as_raw(position_from_start_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:538
    T96 = primitive_machine_word_logand(T94,T95);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:538
    T97 = primitive_cast_raw_as_integer(T96);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:540
    T98 = SLOT_VALUE(the_bufferF6, 5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:540
    T99 = primitive_cast_integer_as_raw(T98);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:540
    T100 = primitive_machine_word_logand(T99,T95);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:540
    T101 = primitive_cast_raw_as_integer(T100);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
    if (size_of_stream_ != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:464
      T90 = size_of_stream_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
      T102 = primitive_cast_integer_as_raw(T90);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
      T103 = primitive_machine_word_less_thanQ(T102,T95);
      T7 = T103;
    } else {
      T7 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
    if (T7 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:543
      T104.vector_element_[0] = IKJstream_;
      T104.vector_element_[1] = the_stream_;
      T104.vector_element_[2] = &KJsize_;
      T104.vector_element_[3] = size_of_stream_;
      T104.vector_element_[4] = IKJposition_;
      T104.vector_element_[5] = position_from_start_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:543
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T8 = CONGRUENT_CALL2(&KLstream_position_errorGYstreamsVio, &T104);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:543
      KsignalVKdMM0I(T8, &KPempty_vectorVKi);
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
      T9 = CONGRUENT_CALL1(the_stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      if (T9 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:546
        T105 = SLOT_VALUE_INITD(the_bufferF6, 2);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:546
        T106 = primitive_cast_integer_as_raw(T105);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:546
        T107 = primitive_machine_word_equalQ(T96,T106);
        T10 = T107;
      } else {
        T10 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      if (T10 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:547
        T108 = SLOT_VALUE_INITD(the_bufferF6, 4);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:547
        T110 = primitive_cast_integer_as_raw(T108);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:547
        T111 = primitive_machine_word_less_thanQ(T100,T110);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:547
        T109 = primitive_not(T111);
        T11 = T109;
      } else {
        T11 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      if (T11 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:548
        T112 = SLOT_VALUE_INITD(the_bufferF6, 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:548
        T114 = primitive_cast_integer_as_raw(T112);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:548
        T115 = primitive_machine_word_less_thanQ(T114,T100);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:548
        T113 = primitive_not(T115);
        T12 = T113;
      } else {
        T12 = &KPfalseVKi;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:545
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
      if (T12 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:550
        SLOT_VALUE_SETTER(T101, the_bufferF6, 0);
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:553
        SLOT_VALUE_SETTER(T101, the_bufferF6, 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:554
        SLOT_VALUE_SETTER(T97, the_bufferF6, 2);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:555
        SLOT_VALUE_SETTER(T101, the_bufferF6, 4);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:556
        SLOT_VALUE_SETTER(T101, the_bufferF6, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:561
        CONGRUENT_CALL_PROLOG(&Kstream_input_buffer_setterYstreams_internalsVio, 2);
        CONGRUENT_CALL2(the_bufferF6, the_stream_);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:542
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
    T116 = primitive_idQ(Uobject_,&KJinput_output_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
    if (T116 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:566
      if (size_of_stream_ == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:567
        T117.vector_element_[0] = IKJstream_;
        T117.vector_element_[1] = the_stream_;
        T117.vector_element_[2] = &KJsize_;
        T117.vector_element_[3] = size_of_stream_;
        T117.vector_element_[4] = IKJposition_;
        T117.vector_element_[5] = position_from_start_;
        T117.vector_element_[6] = &KJformat_string_;
        T117.vector_element_[7] = &K197;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:567
        CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
        T13 = CONGRUENT_CALL2(&KLstream_position_errorGYstreamsVio, &T117);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:567
        KerrorVKdMM0I(T13, &KPempty_vectorVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:566
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:571
      CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
      T14 = CONGRUENT_CALL1(the_stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:566
      primitive_type_check(T14, &KLbufferGYstreamsVio);
      the_bufferF15 = T14;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:566
      the_bufferF32 = the_bufferF15;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:573
      T71 = the_bufferF32;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:573
      T118 = SLOT_VALUE(T71, 6);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:573
      T119 = primitive_cast_integer_as_raw(T118);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:573
      T120 = primitive_cast_integer_as_raw(position_from_start_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:573
      T121 = primitive_machine_word_logand(T119,T120);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:573
      T122 = primitive_cast_raw_as_integer(T121);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:575
      T70 = the_bufferF32;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:575
      T123 = SLOT_VALUE(T70, 5);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:575
      T124 = primitive_cast_integer_as_raw(T123);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:575
      T125 = primitive_machine_word_logand(T124,T120);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:575
      T126 = primitive_cast_raw_as_integer(T125);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:576
      CONGRUENT_CALL_PROLOG(&KLVKd, 2);
      T127_0 = CONGRUENT_CALL2(size_of_stream_, position_from_start_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:576
      T128 = T127_0;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:576
      if (T128 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:581
        T69 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:581
        T129 = SLOT_VALUE_INITD(T69, 2);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:581
        T130 = primitive_cast_integer_as_raw(T129);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:581
        T131 = primitive_machine_word_equalQ(T121,T130);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:581
        if (T131 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T68 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T132 = SLOT_VALUE_INITD(T68, 2);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T67 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T133 = SLOT_VALUE_INITD(T67, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T134 = primitive_cast_integer_as_raw(T132);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T135 = primitive_cast_integer_as_raw(T133);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T136 = primitive_machine_word_logxor(T135,1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T137 = primitive_machine_word_add_signal_overflow(T134,T136);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:586
          T138 = primitive_cast_raw_as_integer(T137);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:587
          CONGRUENT_CALL_PROLOG(&KLVKd, 2);
          T16 = CONGRUENT_CALL2(T138, size_of_stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:587
          if (T16 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:591
            T66 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:591
            T139 = SLOT_VALUE_INITD(T66, 1);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:592
            CONGRUENT_CALL_PROLOG(&K_VKd, 2);
            T17 = CONGRUENT_CALL2(size_of_stream_, T138);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:589
            T65 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:589
            CALL5(&Kload_buffer_and_fillYstreams_internalsVio, the_stream_, T65, T138, T139, T17);
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:587
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:595
          T64 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:595
          T18 = Kforce_bufferYstreams_internalsVioI(T64, the_stream_, &KPempty_vectorVKi, &KPtrueVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:595
          the_bufferF32 = T18;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:597
          T63 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:597
          CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
          CONGRUENT_CALL2(T63, the_stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:600
          CONGRUENT_CALL_PROLOG(&KLVKd, 2);
          T19 = CONGRUENT_CALL2(T122, size_of_stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:600
          if (T19 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:604
            T62 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:604
            T140 = SLOT_VALUE_INITD(T62, 9);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:603
            T61 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:603
            Kload_buffer_and_fillYstreams_internalsVioI(the_stream_, T61, T122, (dylan_value) 1, T140);
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:608
            T60 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:608
            Kbuffer_fillYstreamsVioMM0I(T60, (dylan_value) 1, &KPempty_vectorVKi, (dylan_value) 1, &KPunboundVKi);
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:600
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:610
          T59 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:610
          SLOT_VALUE_SETTER((dylan_value) 1, T59, 4);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:611
          T58 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:611
          SLOT_VALUE_SETTER(T122, T58, 2);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:612
          T141 = primitive_machine_word_equalQ(T125,1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:612
          if (T141 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:620
            T142 = primitive_machine_word_subtract_signal_overflow(T120,4);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:620
            T143 = primitive_cast_raw_as_integer(T142);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:620
            SLOT_VALUE_SETTER(T143, Dnull_bufferYstreams_internalsVio, 2);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:621
            SLOT_VALUE_SETTER(&KPtrueVKi, Dnull_bufferYstreams_internalsVio, 3);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:622
            Kforce_bufferYstreams_internalsVioI(Dnull_bufferYstreams_internalsVio, the_stream_, &KPempty_vectorVKi, &KPfalseVKi);
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:612
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:581
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:626
        T57 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:626
        SLOT_VALUE_SETTER(T126, T57, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:630
        T56 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:630
        SLOT_VALUE_SETTER(T126, T56, 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:633
        T55 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:633
        SLOT_VALUE_SETTER(&KPtrueVKi, T55, 3);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:638
        CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
        T20 = CONGRUENT_CALL1(the_stream_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:638
        if (T20 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:639
          CONGRUENT_CALL_PROLOG(&Kdo_release_input_bufferYstreamsVio, 1);
          CONGRUENT_CALL1(the_stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:640
          T54 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:640
          CONGRUENT_CALL_PROLOG(&Kstream_output_buffer_setterYstreams_internalsVio, 2);
          CONGRUENT_CALL2(T54, the_stream_);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:638
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:642
        T53 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:642
        T144 = SLOT_VALUE_INITD(T53, 2);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:642
        T145 = primitive_cast_integer_as_raw(T144);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:642
        T146 = primitive_machine_word_equalQ(T121,T145);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:576
        if (T146 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T52 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T147 = SLOT_VALUE_INITD(T52, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T51 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T148 = SLOT_VALUE_INITD(T51, 9);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T149 = primitive_cast_integer_as_raw(T147);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T150 = primitive_cast_integer_as_raw(T148);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          T151 = primitive_machine_word_less_thanQ(T149,T150);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          if (T151 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T50 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T152 = SLOT_VALUE_INITD(T50, 2);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T49 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T153 = SLOT_VALUE_INITD(T49, 1);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T154 = primitive_cast_integer_as_raw(T152);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T155 = primitive_cast_integer_as_raw(T153);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T156 = primitive_machine_word_logxor(T155,1);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T157 = primitive_machine_word_add_signal_overflow(T154,T156);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:648
            T158 = primitive_cast_raw_as_integer(T157);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:649
            CONGRUENT_CALL_PROLOG(&KLVKd, 2);
            T21 = CONGRUENT_CALL2(T158, size_of_stream_);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:649
            if (T21 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:651
              T48 = the_bufferF32;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:651
              T159 = SLOT_VALUE_INITD(T48, 1);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:654
              T47 = the_bufferF32;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:654
              T160 = SLOT_VALUE_INITD(T47, 9);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:655
              CONGRUENT_CALL_PROLOG(&K_VKd, 2);
              T22 = CONGRUENT_CALL2(size_of_stream_, T158);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:654
              CONGRUENT_CALL_PROLOG(&KLVKd, 2);
              T161 = CONGRUENT_CALL2(T160, T22);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:654
              if (T161 != &KPfalseVKi) {
                T162 = T160;
              } else {
                T162 = T22;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:654
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:652
              T46 = the_bufferF32;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:652
              CALL5(&Kload_bufferYstreams_internalsVio, the_stream_, T46, T158, T159, T162);
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:649
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:658
            T45 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:658
            T163 = SLOT_VALUE_INITD(T45, 1);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:658
            T44 = the_bufferF32;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:658
            Kbuffer_fillYstreamsVioMM0I(T44, (dylan_value) 1, &KPempty_vectorVKi, T163, &KPunboundVKi);
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:646
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:660
          T43 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:660
          SLOT_VALUE_SETTER(T126, T43, 0);
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:662
          T42 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:662
          T23 = Kforce_bufferYstreams_internalsVioI(T42, the_stream_, &KPempty_vectorVKi, &KPtrueVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:662
          the_bufferF32 = T23;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:664
          T41 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:664
          CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
          CONGRUENT_CALL2(T41, the_stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:669
          T40 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:669
          T164 = SLOT_VALUE_INITD(T40, 9);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:668
          T39 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:668
          Kload_buffer_and_fillYstreams_internalsVioI(the_stream_, T39, T122, (dylan_value) 1, T164);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:670
          T38 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:670
          SLOT_VALUE_SETTER(T122, T38, 2);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:671
          T37 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:671
          SLOT_VALUE_SETTER((dylan_value) 1, T37, 4);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:672
          T36 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:672
          SLOT_VALUE_SETTER(T126, T36, 0);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:673
          T35 = the_bufferF32;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:673
          SLOT_VALUE_SETTER(&KPfalseVKi, T35, 3);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:576
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:576
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:675
      CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
      T24 = CONGRUENT_CALL1(the_stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:675
      if (T24 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:676
        T34 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:676
        CONGRUENT_CALL_PROLOG(&Kstream_input_buffer_setterYstreams_internalsVio, 2);
        CONGRUENT_CALL2(T34, the_stream_);
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:681
        T33 = the_bufferF32;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:681
        CONGRUENT_CALL_PROLOG(&Kstream_output_buffer_setterYstreams_internalsVio, 2);
        CONGRUENT_CALL2(T33, the_stream_);
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:675
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
      T165 = primitive_idQ(Uobject_,&KJoutput_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
      if (T165 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:685
        CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
        T25 = CONGRUENT_CALL1(the_stream_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:685
        primitive_type_check(T25, &KLbufferGYstreamsVio);
        the_bufferF26 = T25;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:685
        the_bufferF72 = the_bufferF26;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:687
        T89 = the_bufferF72;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:687
        T166 = SLOT_VALUE(T89, 6);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:687
        T167 = primitive_cast_integer_as_raw(T166);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:687
        T168 = primitive_cast_integer_as_raw(position_from_start_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:687
        T169 = primitive_machine_word_logand(T167,T168);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:687
        T170 = primitive_cast_raw_as_integer(T169);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:689
        T88 = the_bufferF72;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:689
        T171 = SLOT_VALUE(T88, 5);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:689
        T172 = primitive_cast_integer_as_raw(T171);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:689
        T173 = primitive_machine_word_logand(T172,T168);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:689
        T174 = primitive_cast_raw_as_integer(T173);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        T87 = the_bufferF72;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        T175 = SLOT_VALUE_INITD(T87, 2);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        T176 = primitive_cast_integer_as_raw(T175);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        T177 = primitive_machine_word_equalQ(T169,T176);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        if (T177 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:699
          T86 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:699
          T178 = SLOT_VALUE_INITD(T86, 4);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:699
          T180 = primitive_cast_integer_as_raw(T178);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:699
          T181 = primitive_machine_word_less_thanQ(T173,T180);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:699
          T179 = primitive_not(T181);
          T27 = T179;
        } else {
          T27 = &KPfalseVKi;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        if (T27 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:700
          T85 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:700
          T182 = SLOT_VALUE_INITD(T85, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:700
          T184 = primitive_cast_integer_as_raw(T182);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:700
          T185 = primitive_machine_word_less_thanQ(T184,T173);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:700
          T183 = primitive_not(T185);
          T28 = T183;
        } else {
          T28 = &KPfalseVKi;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        if (T28 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:706
          T84 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:706
          SLOT_VALUE_SETTER(T174, T84, 0);
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:711
          T83 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:711
          T29 = Kforce_bufferYstreams_internalsVioI(T83, the_stream_, &KPempty_vectorVKi, &KPtrueVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:711
          the_bufferF72 = T29;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:713
          T82 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:713
          CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
          CONGRUENT_CALL2(T82, the_stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:715
          T81 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:715
          SLOT_VALUE_SETTER(T170, T81, 2);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:716
          T80 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:716
          SLOT_VALUE_SETTER(T174, T80, 0);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:717
          T79 = the_bufferF72;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:717
          SLOT_VALUE_SETTER(T174, T79, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:718
          if (size_of_stream_ != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:464
            T91 = size_of_stream_;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:719
            T186 = primitive_cast_integer_as_raw(T91);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:719
            T187 = primitive_machine_word_less_thanQ(T186,T168);
            T30 = T187;
          } else {
            T30 = &KPfalseVKi;
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:718
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:718
          if (T30 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:722
            T188 = primitive_machine_word_equalQ(T173,1);
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:722
            if (T188 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:725
              T189 = primitive_machine_word_subtract_signal_overflow(T168,4);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:725
              T190 = primitive_cast_raw_as_integer(T189);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:725
              SLOT_VALUE_SETTER(T190, Dnull_bufferYstreams_internalsVio, 2);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:726
              SLOT_VALUE_SETTER(&KPtrueVKi, Dnull_bufferYstreams_internalsVio, 3);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:727
              Kforce_bufferYstreams_internalsVioI(Dnull_bufferYstreams_internalsVio, the_stream_, &KPempty_vectorVKi, &KPfalseVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:729
              T78 = the_bufferF72;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:729
              SLOT_VALUE_SETTER(T174, T78, 4);
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:731
              T191 = primitive_machine_word_subtract_signal_overflow(T173,4);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:731
              T192 = primitive_cast_raw_as_integer(T191);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:731
              T77 = the_bufferF72;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:731
              Kelement_setterVKdMioM0I((dylan_value) 1, T77, T192);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:732
              T193 = primitive_machine_word_subtract_signal_overflow(T173,4);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:732
              T194 = primitive_cast_raw_as_integer(T193);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:732
              T76 = the_bufferF72;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:732
              SLOT_VALUE_SETTER(T194, T76, 4);
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:733
              T75 = the_bufferF72;
              // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:733
              SLOT_VALUE_SETTER(&KPtrueVKi, T75, 3);
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:722
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:736
            T74 = the_bufferF72;
            // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:736
            SLOT_VALUE_SETTER(T174, T74, 4);
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:718
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:698
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:740
        T73 = the_bufferF72;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:740
        CONGRUENT_CALL_PROLOG(&Kstream_output_buffer_setterYstreams_internalsVio, 2);
        CONGRUENT_CALL2(T73, the_stream_);
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
        T195 = primitive_idQ(Uobject_,IKJclosed_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
        if (T195 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:742
          T196.vector_element_[0] = IKJstream_;
          T196.vector_element_[1] = the_stream_;
          T196.vector_element_[2] = &KJformat_string_;
          T196.vector_element_[3] = &K200;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:742
          CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
          T31 = CONGRUENT_CALL2(&KLstream_closed_errorGYstreamsVio, &T196);
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:742
          KerrorVKdMM0I(T31, &KPempty_vectorVKi);
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
          T197.vector_element_[0] = Uobject_;
          // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
          KerrorVKdMM1I(&K201, &T197);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:533
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:746
  T198 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:529
  MV_SET_COUNT(0);
  return(T198);
}

dylan_value Kstream_contentsYstreams_protocolVcommon_dylanMioM2I (dylan_value stream_, dylan_value Urest_, dylan_value clear_contentsQ_) {
  dylan_value T4;
  dylan_value T5_0;
  dylan_value T6_0;
  dylan_value original_position_;
  dylan_value T8;
  dylan_value contents_;
  dylan_value T10_0;
  dylan_value T11_0;
  dylan_value T12_0;
  dylan_value T13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  _KLsimple_object_vectorGVKd_1 T21 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T22_0;
  dylan_value T23;
  dylan_value T24;
  _KLsimple_object_vectorGVKd_4 T25 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T26_0;
  dylan_value T27;
  _KLsimple_object_vectorGVKd_1 T28 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T29_0;
  dylan_value T30;
  _KLsimple_object_vectorGVKd_1 T31 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T32_0;
  dylan_value T33_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:777
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  T13 = SLOT_VALUE(stream_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  T14 = primitive_cast_integer_as_raw(T13);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  T15 = primitive_machine_word_logand(T14,5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  T16 = primitive_cast_raw_as_integer(T15);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  T17 = primitive_idQ(T16,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  if (T17 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:781
    T18 = SLOT_VALUE(stream_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:781
    T19 = primitive_idQ(T18,(dylan_value) 9);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:781
    if (T19 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:783
      T20 = SLOT_VALUE_INITD(stream_, 10);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:782
      T21.vector_element_[0] = T20;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:782
      T22_0 = KerrorVKdMM1I(&K261, &T21);
      T6_0 = T22_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:784
      T23 = SLOT_VALUE(stream_, 2);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:784
      T24 = primitive_idQ(T23,(dylan_value) 17);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:781
      if (T24 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:785
        T25.vector_element_[0] = IKJstream_;
        T25.vector_element_[1] = stream_;
        T25.vector_element_[2] = &KJformat_string_;
        T25.vector_element_[3] = &K262;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:785
        CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
        T4 = CONGRUENT_CALL2(&KLstream_closed_errorGYstreamsVio, &T25);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:785
        T26_0 = KerrorVKdMM0I(T4, &KPempty_vectorVKi);
        T5_0 = T26_0;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:790
        T27 = SLOT_VALUE_INITD(stream_, 10);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:789
        T28.vector_element_[0] = T27;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:789
        T29_0 = KerrorVKdMM1I(&K263, &T28);
        T5_0 = T29_0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:781
      T6_0 = T5_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:781
    T12_0 = T6_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
    if (clear_contentsQ_ != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:795
      T30 = SLOT_VALUE_INITD(stream_, 10);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:793
      T31.vector_element_[0] = T30;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:793
      T32_0 = KerrorVKdMM1I(&K264, &T31);
      T11_0 = T32_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:797
      CONGRUENT_CALL_PROLOG(&Kstream_positionYstreams_protocolVcommon_dylan, 1);
      original_position_ = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:798
      CONGRUENT_CALL_PROLOG(&Kforce_outputYstreams_protocolVcommon_dylan, 2);
      CONGRUENT_CALL2(stream_, &KPempty_vectorVKi);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:799
      CONGRUENT_CALL_PROLOG(&Kstream_position_setterYstreams_protocolVcommon_dylan, 2);
      CONGRUENT_CALL2((dylan_value) 1, stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:800
      CONGRUENT_CALL_PROLOG(&Kstream_sizeYstreams_protocolVcommon_dylan, 1);
      T8 = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:800
      contents_ = CALL2(&KreadYstreams_protocolVcommon_dylan, stream_, T8);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:801
      CONGRUENT_CALL_PROLOG(&Kstream_position_setterYstreams_protocolVcommon_dylan, 2);
      CONGRUENT_CALL2(original_position_, stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:802
      T10_0 = contents_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:802
      T33_0 = T10_0;
      {
        MV_CHECK_TYPE_PROLOGUE(T10_0);
        primitive_type_check(T33_0, &KLsequenceGVKd);
        MV_CHECK_TYPE_EPILOGUE();
      }
      T11_0 = T33_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
    T12_0 = T11_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:780
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:777
  MV_SET_COUNT(1);
  return(T12_0);
}

dylan_value Kunread_elementYstreams_protocolVcommon_dylanMioM2I (dylan_value stream_, dylan_value elt_) {
  dylan_value T3_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:751
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:754
  CONGRUENT_CALL_PROLOG(&Kadjust_stream_positionYstreams_protocolVcommon_dylan, 3);
  CONGRUENT_CALL3(stream_, (dylan_value) -3, &KPempty_vectorVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:755
  T3_0 = elt_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:751
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kadjust_stream_positionYstreams_protocolVcommon_dylanMioM2I (dylan_value stream_, dylan_value delta_, dylan_value Urest_, dylan_value from_) {
  dylan_value T5;
  dylan_value size_of_stream_;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value position_from_start_;
  dylan_value Utmp_;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19_0;
  dylan_value T20_0;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  DWORD T24;
  DWORD T25;
  DWORD T26;
  DWORD T27;
  dylan_value T28;
  _KLsimple_object_vectorGVKd_1 T29 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33_0;
  dylan_value T34;
  dylan_value T35;
  dylan_value T36;
  _KLsimple_object_vectorGVKd_4 T37 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  _KLsimple_object_vectorGVKd_6 T38 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:495
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:499
  CONGRUENT_CALL_PROLOG(&Kstream_sizeYstreams_protocolVcommon_dylan, 1);
  T5 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:499
  primitive_type_check(T5, &KLintegerGVKd);
  size_of_stream_ = T5;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
  T21 = primitive_idQ(from_,IKJcurrent_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
  if (T21 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:502
    CONGRUENT_CALL_PROLOG(&Kstream_positionYstreams_protocolVcommon_dylan, 1);
    T7 = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:502
    CONGRUENT_CALL_PROLOG(&KAVKd, 2);
    T8 = CONGRUENT_CALL2(T7, delta_);
    position_from_start_ = T8;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
    T22 = primitive_idQ(from_,&KJstart_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
    if (T22 != &KPfalseVKi) {
      T10 = delta_;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
      T23 = primitive_idQ(from_,&KJend_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
      if (T23 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:504
        T24 = primitive_cast_integer_as_raw(size_of_stream_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:504
        T25 = primitive_cast_integer_as_raw(delta_);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:504
        T26 = primitive_machine_word_logxor(T25,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:504
        T27 = primitive_machine_word_add_signal_overflow(T24,T26);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:504
        T28 = primitive_cast_raw_as_integer(T27);
        T9 = T28;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
        T29.vector_element_[0] = from_;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
        T30 = KerrorVKdMM1I(&K201, &T29);
        T9 = T30;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
      T10 = T9;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
    position_from_start_ = T10;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:501
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:506
  CONGRUENT_CALL_PROLOG(&KLVKd, 2);
  Utmp_ = CONGRUENT_CALL2(position_from_start_, (dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:506
  if (Utmp_ != &KPfalseVKi) {
    T14 = Utmp_;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:507
    T31 = SLOT_VALUE(stream_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:507
    T32 = primitive_idQ(T31,(dylan_value) 9);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:507
    if (T32 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:507
      CONGRUENT_CALL_PROLOG(&KLVKd, 2);
      T33_0 = CONGRUENT_CALL2(size_of_stream_, position_from_start_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:507
      T34 = T33_0;
      T13 = T34;
    } else {
      T13 = &KPfalseVKi;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:507
    T14 = T13;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:506
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:506
  if (T14 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:508
    T35 = SLOT_VALUE(stream_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:508
    T36 = primitive_idQ(T35,(dylan_value) 17);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:508
    if (T36 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:509
      T37.vector_element_[0] = IKJstream_;
      T37.vector_element_[1] = stream_;
      T37.vector_element_[2] = &KJformat_string_;
      T37.vector_element_[3] = &K249;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:509
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T15 = CONGRUENT_CALL2(&KLstream_closed_errorGYstreamsVio, &T37);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:509
      KerrorVKdMM0I(T15, &KPempty_vectorVKi);
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:514
      CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
      T16 = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:514
      T17 = CALL1(&Kaccessor_sizeYstreams_internalsVio, T16);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:513
      T38.vector_element_[0] = IKJstream_;
      T38.vector_element_[1] = stream_;
      T38.vector_element_[2] = &KJsize_;
      T38.vector_element_[3] = T17;
      T38.vector_element_[4] = IKJposition_;
      T38.vector_element_[5] = &KpositionYcommon_extensionsVcommon_dylan;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:513
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T18 = CONGRUENT_CALL2(&KLstream_position_errorGYstreamsVio, &T38);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:513
      KerrorVKdMM0I(T18, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:508
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:518
    SLOT_VALUE_SETTER(&KpositionYcommon_extensionsVcommon_dylan, stream_, 8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:519
    CALL3(&Kadjust_stream_position_from_startYstreams_internalsVioMM0, position_from_start_, stream_, size_of_stream_);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:506
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:522
  T19_0 = position_from_start_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:495
  T20_0 = T19_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T19_0);
    primitive_type_check(T20_0, &KLintegerGVKd);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:495
  MV_SET_COUNT(1);
  return(T20_0);
}

dylan_value Kstream_position_setterYstreams_protocolVcommon_dylanMioM4I (dylan_value position_, dylan_value stream_) {
  dylan_value T3;
  dylan_value size_of_stream_;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11_0;
  DWORD T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  _KLsimple_object_vectorGVKd_4 T19 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  _KLsimple_object_vectorGVKd_6 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:457
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:460
  CONGRUENT_CALL_PROLOG(&Kstream_sizeYstreams_protocolVcommon_dylan, 1);
  T3 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:460
  primitive_type_check(T3, &K243);
  size_of_stream_ = T3;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
  T12 = primitive_cast_integer_as_raw(position_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
  T13 = primitive_machine_word_less_thanQ(T12,1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
  if (T13 != &KPfalseVKi) {
    T6 = &KPfalseVKi;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
    T14 = primitive_not(size_of_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
    if (size_of_stream_ != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
      CONGRUENT_CALL_PROLOG(&KLVKd, 2);
      T15 = CONGRUENT_CALL2(size_of_stream_, position_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
      T16 = primitive_not(T15);
      T5 = T16;
    } else {
      T5 = T14;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
    T6 = T5;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:463
    SLOT_VALUE_SETTER(position_, stream_, 8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:464
    Kadjust_stream_position_from_startYstreams_internalsVioMM0I(position_, stream_, size_of_stream_);
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:466
    T17 = SLOT_VALUE(stream_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:466
    T18 = primitive_idQ(T17,(dylan_value) 17);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:466
    if (T18 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:467
      T19.vector_element_[0] = IKJstream_;
      T19.vector_element_[1] = stream_;
      T19.vector_element_[2] = &KJformat_string_;
      T19.vector_element_[3] = &K249;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:467
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T7 = CONGRUENT_CALL2(&KLstream_closed_errorGYstreamsVio, &T19);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:467
      KerrorVKdMM0I(T7, &KPempty_vectorVKi);
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:472
      CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
      T8 = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:472
      T9 = CALL1(&Kaccessor_sizeYstreams_internalsVio, T8);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:471
      T20.vector_element_[0] = IKJstream_;
      T20.vector_element_[1] = stream_;
      T20.vector_element_[2] = &KJsize_;
      T20.vector_element_[3] = T9;
      T20.vector_element_[4] = IKJposition_;
      T20.vector_element_[5] = position_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:471
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T10 = CONGRUENT_CALL2(&KLstream_position_errorGYstreamsVio, &T20);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:471
      KerrorVKdMM0I(T10, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:466
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:461
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:475
  T11_0 = position_;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:457
  MV_SET_COUNT(1);
  return(T11_0);
}

dylan_value Kstream_positionYstreams_protocolVcommon_dylanMioM2I (dylan_value stream_) {
  dylan_value Utmp_;
  dylan_value T3;
  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_0;
  dylan_value T13_0;
  dylan_value T14_0;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17_0;
  dylan_value T18_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:437
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
  CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
  Utmp_ = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
  if (Utmp_ != &KPfalseVKi) {
    T4 = Utmp_;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
    CONGRUENT_CALL_PROLOG(&Kstream_output_bufferYstreams_internalsVio, 1);
    T3 = CONGRUENT_CALL1(stream_);
    T4 = T3;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
  if (T4 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:440
    CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
    T5 = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:440
    T6 = CALL1(&Kbuffer_positionYstreamsVio, T5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:441
    CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
    T7 = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:441
    T8 = CALL1(&Kbuffer_nextYstreamsVio, T7);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:440
    CONGRUENT_CALL_PROLOG(&KAVKd, 2);
    T9_0 = CONGRUENT_CALL2(T6, T8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:440
    T17_0 = T9_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T9_0);
      primitive_type_check(T17_0, &KLintegerGVKd);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T14_0 = T17_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:442
    T15 = SLOT_VALUE(stream_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:442
    T16 = primitive_idQ(T15,(dylan_value) 17);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
    if (T16 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:448
      T10_0 = (dylan_value) 1;
      T13_0 = T10_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:453
      CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
      T11 = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:453
      T12_0 = CALL1(&Kaccessor_positionYstreams_internalsVio, T11);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:453
      T18_0 = T12_0;
      {
        MV_CHECK_TYPE_PROLOGUE(T12_0);
        primitive_type_check(T18_0, &KLintegerGVKd);
        MV_CHECK_TYPE_EPILOGUE();
      }
      T13_0 = T18_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
    T14_0 = T13_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:439
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:437
  MV_SET_COUNT(1);
  return(T14_0);
}

dylan_value KcloseYcommon_extensionsVcommon_dylanMioM4I (dylan_value stream_, dylan_value Urest_) {
  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;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:197
  T8 = primitive_copy_vector(Urest_);
  T7 = primitive_next_methods_parameter();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:198
  CONGRUENT_CALL_PROLOG(&Kstream_openQYstreams_protocolVcommon_dylan, 1);
  T3 = CONGRUENT_CALL1(stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:198
  if (T3 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
    T9 = primitive_idQ(T7,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
    if (T9 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
      KerrorVKdMM1I(&K63, &KPempty_vectorVKi);
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
      T10 = SLOT_VALUE_INITD(T7, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
      T11 = SLOT_VALUE_INITD(T7, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
      MEP_CALL_PROLOG(T10, T11, 2);
      MEP_CALL2(T10, stream_, T8);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:199
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:204
    CONGRUENT_CALL_PROLOG(&Kstream_shared_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(&KPfalseVKi, stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:205
    CONGRUENT_CALL_PROLOG(&Kstream_input_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(&KPfalseVKi, stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:206
    CONGRUENT_CALL_PROLOG(&Kstream_output_buffer_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(&KPfalseVKi, stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:207
    CONGRUENT_CALL_PROLOG(&Kaccessor_setterYstreams_internalsVio, 2);
    CONGRUENT_CALL2(&KPfalseVKi, stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:207
    T4 = &KPfalseVKi;
    T6 = T4;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:198
    T5 = &KPfalseVKi;
    T6 = T5;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:198
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:197
  MV_SET_COUNT(0);
  return(T6);
}

dylan_value Kstream_sizeYstreams_protocolVcommon_dylanMioM2I (dylan_value the_stream_) {
  dylan_value the_bufferF2;
  dylan_value T3;
  dylan_value the_bufferF4;
  dylan_value T5;
  dylan_value the_size_;
  dylan_value T7_0;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10_0;
  dylan_value T11;
  dylan_value T12_0;
  dylan_value T13_0;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  DWORD T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  dylan_value T22;
  dylan_value T23_0;
  dylan_value T24_0;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  DWORD T29;
  DWORD T30;
  DWORD T31;
  DWORD T32;
  dylan_value T33;
  dylan_value T34_0;
  _KLsimple_object_vectorGVKd_4 T35 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T36_0;
  dylan_value T37_0;
  dylan_value T38_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:180
  CONGRUENT_CALL_PROLOG(&Kstream_shared_bufferYstreams_internalsVio, 1);
  the_bufferF2 = CONGRUENT_CALL1(the_stream_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
  if (the_bufferF2 != &KPfalseVKi) {
    T14 = the_bufferF2;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
    T15 = SLOT_VALUE_INITD(T14, 3);
    T3 = T15;
  } else {
    T3 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
  if (T3 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:182
    primitive_type_check(the_bufferF2, &KLbufferGYstreamsVio);
    the_bufferF4 = the_bufferF2;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:183
    CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
    T5 = CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:183
    the_size_ = CALL1(&Kaccessor_sizeYstreams_internalsVio, T5);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:184
    if (the_size_ != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T16 = SLOT_VALUE_INITD(the_bufferF4, 2);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T17 = SLOT_VALUE_INITD(the_bufferF4, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T18 = primitive_cast_integer_as_raw(T16);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T19 = primitive_cast_integer_as_raw(T17);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T20 = primitive_machine_word_logxor(T19,1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T21 = primitive_machine_word_add_signal_overflow(T18,T20);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T22 = primitive_cast_raw_as_integer(T21);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      CONGRUENT_CALL_PROLOG(&KLVKd, 2);
      T24_0 = CONGRUENT_CALL2(the_size_, T22);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T25 = T24_0;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      if (T25 != &KPfalseVKi) {
        T26 = T22;
      } else {
        T26 = the_size_;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T23_0 = T26;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:185
      T38_0 = T23_0;
      {
        MV_CHECK_TYPE_PROLOGUE(T23_0);
        primitive_type_check(T38_0, &K243);
        MV_CHECK_TYPE_EPILOGUE();
      }
      T7_0 = T38_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T27 = SLOT_VALUE_INITD(the_bufferF4, 2);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T28 = SLOT_VALUE_INITD(the_bufferF4, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T29 = primitive_cast_integer_as_raw(T27);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T30 = primitive_cast_integer_as_raw(T28);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T31 = primitive_machine_word_logxor(T30,1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T32 = primitive_machine_word_add_signal_overflow(T29,T31);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T33 = primitive_cast_raw_as_integer(T32);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:187
      T34_0 = T33;
      T7_0 = T34_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:184
    T13_0 = T7_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:189
    CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
    T8 = CONGRUENT_CALL1(the_stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
    if (T8 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:190
      CONGRUENT_CALL_PROLOG(&KaccessorYstreams_internalsVio, 1);
      T9 = CONGRUENT_CALL1(the_stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:190
      T10_0 = CALL1(&Kaccessor_sizeYstreams_internalsVio, T9);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:190
      T37_0 = T10_0;
      {
        MV_CHECK_TYPE_PROLOGUE(T10_0);
        primitive_type_check(T37_0, &K243);
        MV_CHECK_TYPE_EPILOGUE();
      }
      T12_0 = T37_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:192
      T35.vector_element_[0] = IKJstream_;
      T35.vector_element_[1] = the_stream_;
      T35.vector_element_[2] = &KJformat_string_;
      T35.vector_element_[3] = &K244;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:192
      CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
      T11 = CONGRUENT_CALL2(&KLstream_closed_errorGYstreamsVio, &T35);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:192
      T36_0 = KerrorVKdMM0I(T11, &KPempty_vectorVKi);
      T12_0 = T36_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
    T13_0 = T12_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:181
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:178
  MV_SET_COUNT(1);
  return(T13_0);
}

dylan_value Kstream_input_availableQYstreams_protocolVcommon_dylanMioM3I (dylan_value stream_) {
  dylan_value T2_0;
  dylan_value T3_0;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:167
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  T4 = SLOT_VALUE(stream_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  T5 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  T6 = primitive_machine_word_logand(T5,5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  T7 = primitive_cast_raw_as_integer(T6);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  T8 = primitive_idQ(T7,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  if (T8 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
    T2_0 = &KPfalseVKi;
    T3_0 = T2_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:170
    T9_0 = KerrorVKdMM1I(&K242, &KPempty_vectorVKi);
    T3_0 = T9_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:169
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:167
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kstream_at_endQYstreams_protocolVcommon_dylanMioM3I (dylan_value stream_) {
  dylan_value T2_0;
  dylan_value T3_0;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value sb_;
  dylan_value T10_0;
  dylan_value T11_0;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  DWORD T15;
  DWORD T16;
  dylan_value T17;
  _KLsimple_object_vectorGVKd_4 T18 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  _KLsimple_object_vectorGVKd_4 T19 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:159
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  T4 = SLOT_VALUE(stream_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  T5 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  T6 = primitive_machine_word_logand(T5,5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  T7 = primitive_cast_raw_as_integer(T6);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  T8 = primitive_idQ(T7,(dylan_value) 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  if (T8 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
    T2_0 = &KPfalseVKi;
    T3_0 = T2_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
    CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
    sb_ = CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
    if (sb_ != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T12 = sb_;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T13 = SLOT_VALUE_INITD(T12, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T14 = SLOT_VALUE_INITD(T12, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T15 = primitive_cast_integer_as_raw(T13);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T16 = primitive_cast_integer_as_raw(T14);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T17 = primitive_machine_word_less_thanQ(T15,T16);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      if (T17 != &KPfalseVKi) {
        T21 = T12;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
        T18.vector_element_[0] = &KJwaitQ_;
        T18.vector_element_[1] = &KPtrueVKi;
        T18.vector_element_[2] = IKJbytes_;
        T18.vector_element_[3] = (dylan_value) 5;
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
        CONGRUENT_CALL_PROLOG(&Kdo_next_input_bufferYstreamsVio, 2);
        T10_0 = CONGRUENT_CALL2(stream_, &T18);
        // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
        T20 = T10_0;
        T21 = T20;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T23 = T21;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T19.vector_element_[0] = &KJwaitQ_;
      T19.vector_element_[1] = &KPtrueVKi;
      T19.vector_element_[2] = IKJbytes_;
      T19.vector_element_[3] = (dylan_value) 5;
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      CONGRUENT_CALL_PROLOG(&Kdo_get_input_bufferYstreamsVio, 2);
      T11_0 = CONGRUENT_CALL2(stream_, &T19);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
      T22 = T11_0;
      T23 = T22;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:162
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:163
    T24 = primitive_not(T23);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:163
    T25_0 = T24;
    T3_0 = T25_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:161
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:159
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value KmakeVKdMioM3I (dylan_value class_, dylan_value initargs_, dylan_value locator_, dylan_value element_type_, dylan_value encoding_) {
  dylan_value T6_0;
  dylan_value T7;
  dylan_value T8;
  dylan_value type_;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17_0;
  dylan_value T18_0;
  dylan_value T19_0;
  dylan_value T20_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:99
  T8 = primitive_copy_vector(initargs_);
  T7 = primitive_next_methods_parameter();
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:103
  type_ = APPLY4(&Ktype_for_file_streamYstreams_internalsVio, locator_, element_type_, encoding_, T8);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:104
  T10 = primitive_idQ(type_,class_);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:104
  if (T10 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
    T13 = primitive_idQ(T7,&KPempty_listVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
    if (T13 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
      T16 = KerrorVKdMM1I(&K63, &KPempty_vectorVKi);
      T12 = T16;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
      T14 = SLOT_VALUE_INITD(T7, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
      T15 = SLOT_VALUE_INITD(T7, 1);
      // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
      MEP_CALL_PROLOG(T14, T15, 2);
      T11 = MEP_CALL2(T14, class_, T8);
      T12 = T11;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
    T17_0 = T12;
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:105
    T19_0 = T17_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T17_0);
      primitive_type_check(T19_0, &KLfile_streamGYstreams_internalsVio);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T6_0 = T19_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:107
    T18_0 = APPLY2(&KmakeVKd, type_, T8);
    // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:107
    T20_0 = T18_0;
    {
      MV_CHECK_TYPE_PROLOGUE(T18_0);
      primitive_type_check(T20_0, &KLfile_streamGYstreams_internalsVio);
      MV_CHECK_TYPE_EPILOGUE();
    }
    T6_0 = T20_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:104
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:99
  MV_SET_COUNT(1);
  return(T6_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJbuffer_start_);
    if (T0 != &KJbuffer_start_) {
      IKJbuffer_start_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJbuffer_end_);
    if (T0 != &KJbuffer_end_) {
      IKJbuffer_end_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJbuffer_);
    if (T0 != &KJbuffer_) {
      primitive_repeated_slot_value_setter(T0, &K132, 1, 3);
      primitive_repeated_slot_value_setter(T0, &K129, 1, 6);
      IKJbuffer_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJreturn_fresh_bufferQ_);
    if (T0 != &KJreturn_fresh_bufferQ_) {
      IKJreturn_fresh_bufferQ_ = T0;
      primitive_repeated_slot_value_setter(T0, &K44, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K42, 1, 0);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJaccessor_);
    if (T0 != &KJaccessor_) {
      primitive_repeated_slot_value_setter(T0, &K132, 1, 5);
      primitive_repeated_slot_value_setter(T0, &K129, 1, 10);
      primitive_slot_value_setter(T0, &KaccessorYstreams_internalsVioHLfile_streamG, 3);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJstream_);
    if (T0 != &KJstream_) {
      IKJstream_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJbytes_);
    if (T0 != &KJbytes_) {
      IKJbytes_ = T0;
      primitive_repeated_slot_value_setter(T0, &K84, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K83, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K74, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K73, 1, 2);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJstream_lock_);
    if (T0 != &KJstream_lock_) {
      primitive_repeated_slot_value_setter(T0, &K132, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K129, 1, 4);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJfile_);
    if (T0 != &KJfile_) {
      IKJfile_ = T0;
    }
  }
  {
    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;

    T0 = KPresolve_symbolVKiI(&KJbuffer_size_);
    if (T0 != &KJbuffer_size_) {
      primitive_repeated_slot_value_setter(T0, &K189, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K186, 1, 0);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJposition_);
    if (T0 != &KJposition_) {
      IKJposition_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJclosed_);
    if (T0 != &KJclosed_) {
      IKJclosed_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJcurrent_);
    if (T0 != &KJcurrent_) {
      primitive_repeated_slot_value_setter(T0, &K256, 1, 1);
      IKJcurrent_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJclear_contentsQ_);
    if (T0 != &KJclear_contentsQ_) {
      primitive_repeated_slot_value_setter(T0, &K269, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K266, 1, 0);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_io__X_14Efile_stream_for_user () {
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:70
  T0 = KPadd_a_methodVKnI(&KinitializeVKd, &KinitializeVKdMioM5, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I0;
}
I0:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:99
  T0 = KPadd_a_methodVKnI(&KmakeVKd, &KmakeVKdMioM3, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I236;
}
I236:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:159
  T0 = KPadd_a_methodVKnI(&Kstream_at_endQYstreams_protocolVcommon_dylan, &Kstream_at_endQYstreams_protocolVcommon_dylanMioM3, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I233;
}
I233:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:167
  T0 = KPadd_a_methodVKnI(&Kstream_input_availableQYstreams_protocolVcommon_dylan, &Kstream_input_availableQYstreams_protocolVcommon_dylanMioM3, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I230;
}
I230:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:178
  T0 = KPadd_a_methodVKnI(&Kstream_sizeYstreams_protocolVcommon_dylan, &Kstream_sizeYstreams_protocolVcommon_dylanMioM2, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I227;
}
I227:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:197
  T0 = KPadd_a_methodVKnI(&KcloseYcommon_extensionsVcommon_dylan, &KcloseYcommon_extensionsVcommon_dylanMioM4, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I224;
}
I224:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:437
  T0 = KPadd_a_methodVKnI(&Kstream_positionYstreams_protocolVcommon_dylan, &Kstream_positionYstreams_protocolVcommon_dylanMioM2, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I221;
}
I221:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:457
  T0 = KPadd_a_methodVKnI(&Kstream_position_setterYstreams_protocolVcommon_dylan, &Kstream_position_setterYstreams_protocolVcommon_dylanMioM4, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I218;
}
I218:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:495
  T0 = KPadd_a_methodVKnI(&Kadjust_stream_positionYstreams_protocolVcommon_dylan, &Kadjust_stream_positionYstreams_protocolVcommon_dylanMioM2, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I215;
}
I215:

{
  dylan_value T0;
  dylan_value T1;
  dylan_value T2_0;
  _KLsimple_object_vectorGVKd_10 T3 = {&KLsimple_object_vectorGVKdW, (dylan_value) 41};

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:527
  T3.vector_element_[0] = &KJfill_;
  T3.vector_element_[1] = C(0x0);
  T3.vector_element_[2] = &KJsize_;
  T3.vector_element_[3] = (dylan_value) 5;
  T3.vector_element_[4] = &KJfill_;
  T3.vector_element_[5] = (dylan_value) 1;
  T3.vector_element_[6] = IKJbuffer_start_;
  T3.vector_element_[7] = (dylan_value) 1;
  T3.vector_element_[8] = IKJbuffer_end_;
  T3.vector_element_[9] = (dylan_value) 5;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:527
  T2_0 = KLbufferGZ32ZconstructorYstreams_internalsVioMM0I(&KLbufferGYstreamsVio, &T3, (dylan_value) 1, (dylan_value) 5, (dylan_value) 1, &KPfalseVKi, (dylan_value) 1, (dylan_value) 1, &KPfalseVKi, (dylan_value) 5);
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:527
  T1 = T2_0;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:526
  Dnull_bufferYstreams_internalsVio = T1;
  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:526
  T0 = &KPfalseVKi;
  goto I3;
}
I3:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:751
  T0 = KPadd_a_methodVKnI(&Kunread_elementYstreams_protocolVcommon_dylan, &Kunread_elementYstreams_protocolVcommon_dylanMioM2, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I212;
}
I212:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/io/streams/file-stream.dylan:777
  T0 = KPadd_a_methodVKnI(&Kstream_contentsYstreams_protocolVcommon_dylan, &Kstream_contentsYstreams_protocolVcommon_dylanMioM2, &Kio_libraryYdylan_userVio, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I209;
}
I209:

  return;
}


/* eof */
