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

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

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

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;

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

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

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

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

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(32);
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(37);
define__KLbyte_stringGVKd(54);

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_;
  dylan_value stream_sequence_;
  dylan_value stream_limit_;
} _KLbyte_string_streamGYstreamsVio;

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

typedef struct {
  dylan_value wrapper;
} _KLbyte_characterGVKe;

typedef struct {
  dylan_value wrapper;
} _KLcharacterGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value properties_;
  dylan_value engine_node_callback_;
  dylan_value engine_node_entry_point_;
  dylan_value cache_header_engine_node_next_;
  dylan_value cache_header_engine_node_parent_;
} _KLsimple_typechecked_cache_header_engine_nodeGVKg;

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 signature_properties_;
  dylan_value signature_required_;
} _KLobject_signatureGVKe;

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

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

typedef struct {
  dylan_value wrapper;
} _KLfloatGVKd;

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

typedef struct {
  dylan_value wrapper;
  DWORD PPdouble_integer_low_;
  DWORD PPdouble_integer_high_;
} _KLdouble_integerGVKe;

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_;
} _KLvalue_classGVKi;

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 condition_format_string_;
  dylan_value condition_format_arguments_;
  dylan_value stream_error_stream_;
} _KLend_of_stream_errorGYstreams_protocolVcommon_dylan;

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

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

typedef struct {
  dylan_value wrapper;
} _KLsequenceGVKd;


/* Typedefs for defined classes */


/* Referenced object declarations */

extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLincremental_generic_functionGVKe Klock_streamYstreamsVio;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLincremental_generic_functionGVKe Kstream_output_bufferYstreams_internalsVio;
extern _KLclassGVKd KLbufferGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbufferGYstreamsVioW;
extern _KLincremental_generic_functionGVKe Kdo_next_output_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe Kdo_get_output_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe KelementVKd;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLincremental_generic_functionGVKe KAVKd;
extern _KLsymbolGVKd KJstart_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLsymbolGVKd KJend_;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
dylan_value Kelement_range_errorVKeI (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Knew_lineYstreamsVio;
extern _KLlimited_integerGVKe KLbyteGVKe;
extern _KLclassGVKd KLlimited_integerGVKe;
extern _KLmm_wrapperGVKi_0 KLlimited_integerGVKeW;
dylan_value KelementVKdMM3I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsealed_generic_functionGVKe Kunsupplied_objectVKi;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
dylan_value Kparse_integerYformat_internalsVioMM0I (dylan_value, dylan_value);
dylan_value KmakeVKdMM33I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLsymbolGVKd KJdirection_;
extern _KLsymbolGVKd KJoutput_;
dylan_value KLbyte_string_streamGZ32ZconstructorYstreams_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLbyte_string_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbyte_string_streamGYstreamsVioW;
extern _KLsimple_methodGVKe Kdo_dispatchYformat_internalsVioMM0;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
dylan_value Kstream_contentsYstreams_protocolVcommon_dylanMioM0I (dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KsizeVKd;
extern _KLincremental_generic_functionGVKe Kunlock_streamYstreamsVio;
extern _KLincremental_generic_functionGVKe Kprint_messageYformatVio;
extern _KLclassGVKd KLbyte_characterGVKe;
extern _KLmm_wrapperGVKi_0 KLbyte_characterGVKeW;
extern _KLclassGVKd KLcharacterGVKd;
extern _KLmm_wrapperGVKi_0 KLcharacterGVKdW;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kprint_objectYprintVio;
dylan_value KlistVKdI (dylan_value);
extern _KLsimple_methodGVKe KapplyVKd;
extern _KLclassGVKd KLsimple_typechecked_cache_header_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLsimple_typechecked_cache_header_engine_nodeGVKgW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_4VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
dylan_value Kassertion_failureVKiI (dylan_value, dylan_value);
dylan_value KprintYprintVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLfloatGVKd;
extern _KLmm_wrapperGVKi_0 KLfloatGVKdW;
extern _KLclassGVKd KLbuffered_streamGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbuffered_streamGYstreamsVioW;
dylan_value Kuninitialized_instanceQ_functionVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLlistGVKd;
extern _KLmm_wrapperGVKi_0 KLlistGVKdW;
extern _KLvalue_classGVKi KLdouble_integerGVKe;
extern _KLclassGVKd KLvalue_classGVKi;
extern _KLmm_wrapperGVKi_0 KLvalue_classGVKiW;
extern _KLmm_wrapperGVKi_1 KLdouble_integerGVKeW;
extern _KLsealed_generic_functionGVKe Kcoerce_from_elementYstreams_internalsVio;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLsealed_generic_functionGVKe Kcoerce_from_sequenceYstreams_internalsVio;
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLclassGVKd KLend_of_stream_errorGYstreams_protocolVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLend_of_stream_errorGYstreams_protocolVcommon_dylanW;
dylan_value KsignalVKdMM0I (dylan_value, dylan_value);
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLclassGVKd KLkeyword_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureGVKeW;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLclassGVKd KLsequenceGVKd;
extern _KLmm_wrapperGVKi_0 KLsequenceGVKdW;
extern dylan_value char_classesYformat_internalsVio;
extern dylan_value Tprint_escapeQTYprintVio;
extern dylan_value DdigitsYformat_internalsVio;
extern dylan_value DunsuppliedYcommon_extensionsVcommon_dylan;

/* Defined object declarations */

extern _KLsimple_methodGVKe KformatYformatVioMM1;
dylan_value KformatYformatVioMM1I (dylan_value, dylan_value, dylan_value);
static _KLsymbolGVKd KJbytes_;
extern _KLkeyword_methodGVKe Kbuffered_writeYformat_internalsVioMM0;
dylan_value Kbuffered_writeYformat_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsymbolGVKd KJdigit_;
static _KLsymbolGVKd KJcontents_;
extern _KLsimple_methodGVKe Kbuffered_do_dispatchYformat_internalsVioMM0;
dylan_value Kbuffered_do_dispatchYformat_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
dylan_value Kbuffered_write_elementYformat_internalsVioMM0I (dylan_value, dylan_value, dylan_value);
static _KLbyte_stringGVKd_54 K10;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K11;
extern _KLsealed_generic_functionGVKe Kbuffered_format_integerYformat_internalsVio;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K13;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K14;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K15;
static _KLbyte_stringGVKd_37 K16;
extern _KLsimple_methodGVKe Kbuffered_format_integerYformat_internalsVioMM0;
dylan_value Kbuffered_format_integerYformat_internalsVioMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kbuffered_format_integerYformat_internalsVioMM1;
dylan_value Kbuffered_format_integerYformat_internalsVioMM1I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kbuffered_format_integerYformat_internalsVioMM2;
dylan_value Kbuffered_format_integerYformat_internalsVioMM2I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLpairGVKd K23;
static _KLpairGVKd K24;
static _KLpairGVKd K25;
static _KLbyte_stringGVKd_23 K26;
static _KLbyte_stringGVKd_32 K27;
static _KLsignatureGVKe K28;
static _KLsimple_object_vectorGVKd_4 K29;
static _KLlimited_integerGVKe K30;
static dylan_value KrepeatF32I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsignatureGVKe K33;
static _KLsimple_object_vectorGVKd_4 K34;
static _KLsignatureGVKe K35;
static _KLsimple_object_vectorGVKd_4 K36;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K37;
static _KLsignatureAvaluesGVKi K38;
static _KLsimple_object_vectorGVKd_4 K39;
static _KLbyte_stringGVKd_8 K40;
static _KLbyte_stringGVKd_5 K41;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K42;
static _KLsymbolGVKd KJstream_;
static _KLbyte_stringGVKd_6 K44;
static _KLkeyword_signatureGVKe K45;
static _KLsimple_object_vectorGVKd_4 K46;
static _KLsimple_object_vectorGVKd_3 K47;
static _KLsimple_object_vectorGVKd_2 K48;
static _KLbyte_stringGVKd_5 K49;
static _KLsignatureGVKe K50;
static _KLsimple_object_vectorGVKd_2 K51;

/* Indirection variables */

static dylan_value IKJbytes_ = &KJbytes_;
static dylan_value IKJdigit_ = &KJdigit_;
static dylan_value IKJcontents_ = &KJcontents_;
static dylan_value IKJstream_ = &KJstream_;

/* Variables */


/* Objects */

_KLsimple_methodGVKe KformatYformatVioMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &rest_xep_2,
  &K50,
  &KformatYformatVioMM1I
};

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

_KLkeyword_methodGVKe Kbuffered_writeYformat_internalsVioMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_6,
  &K45,
  &key_mep_6,
  &Kbuffered_writeYformat_internalsVioMM0I,
  &K46
};

static _KLsymbolGVKd KJdigit_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K41
};

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

_KLsimple_methodGVKe Kbuffered_do_dispatchYformat_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K38,
  &Kbuffered_do_dispatchYformat_internalsVioMM0I
};

static _KLbyte_stringGVKd_54 K10 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 217,
  "The %%C format directive only works for characters: %="
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K11 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 917561,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kbuffered_format_integerYformat_internalsVio
};

_KLsealed_generic_functionGVKe Kbuffered_format_integerYformat_internalsVio = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_4,
  &KDsignature_LobjectG_object_rest_value_4VKi,
  (dylan_value) 57,
  &K26,
  &K23,
  &RSINGULAR_Labsent_engine_nodeG
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K13 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 917561,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kbuffered_format_integerYformat_internalsVio
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K14 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 917561,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kbuffered_format_integerYformat_internalsVio
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K15 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 917561,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kbuffered_format_integerYformat_internalsVio
};

static _KLbyte_stringGVKd_37 K16 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 149,
  "Unknown format dispatch character, %c"
};

_KLsimple_methodGVKe Kbuffered_format_integerYformat_internalsVioMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K35,
  &Kbuffered_format_integerYformat_internalsVioMM0I
};

_KLsimple_methodGVKe Kbuffered_format_integerYformat_internalsVioMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K33,
  &Kbuffered_format_integerYformat_internalsVioMM1I
};

_KLsimple_methodGVKe Kbuffered_format_integerYformat_internalsVioMM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K28,
  &Kbuffered_format_integerYformat_internalsVioMM2I
};

static _KLpairGVKd K23 = {
  &KLpairGVKdW /* wrapper */,
  &Kbuffered_format_integerYformat_internalsVioMM0,
  &K24
};

static _KLpairGVKd K24 = {
  &KLpairGVKdW /* wrapper */,
  &Kbuffered_format_integerYformat_internalsVioMM1,
  &K25
};

static _KLpairGVKd K25 = {
  &KLpairGVKdW /* wrapper */,
  &Kbuffered_format_integerYformat_internalsVioMM2,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_23 K26 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "buffered-format-integer"
};

static _KLbyte_stringGVKd_32 K27 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 129,
  "Can only print floats in base 10"
};

static _KLsignatureGVKe K28 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943057,
  &K29
};

static _KLsimple_object_vectorGVKd_4 K29 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLfloatGVKd,
  &K30,
  &KLbuffered_streamGYstreamsVio,
  &KLbufferGYstreamsVio
};

static _KLlimited_integerGVKe K30 = {
  &KLlimited_integerGVKeW /* wrapper */,
  &Kuninitialized_instanceQ_functionVKiI,
  (dylan_value) 9,
  (dylan_value) 145
};

static _KLsignatureGVKe K33 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943057,
  &K34
};

static _KLsimple_object_vectorGVKd_4 K34 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLintegerGVKd,
  &K30,
  &KLbuffered_streamGYstreamsVio,
  &KLbufferGYstreamsVio
};

static _KLsignatureGVKe K35 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943057,
  &K36
};

static _KLsimple_object_vectorGVKd_4 K36 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLdouble_integerGVKe,
  &K30,
  &KLbuffered_streamGYstreamsVio,
  &KLbufferGYstreamsVio
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K37 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 393273,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kcoerce_from_elementYstreams_internalsVio
};

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

static _KLsimple_object_vectorGVKd_4 K39 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLbyte_characterGVKe,
  &KLbuffered_streamGYstreamsVio,
  &KLbufferGYstreamsVio,
  &KLobjectGVKd
};

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

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

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K42 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 4063289,
  &KPfalseVKi,
  &cache_header_engine_6,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kcoerce_from_sequenceYstreams_internalsVio
};

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

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

static _KLkeyword_signatureGVKe K45 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 42205197,
  &K47,
  &K48,
  &KDsignature_LobjectG_typesVKi
};

static _KLsimple_object_vectorGVKd_4 K46 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJstart_,
  (dylan_value) 1,
  &KJend_,
  &KPunboundVKi
};

static _KLsimple_object_vectorGVKd_3 K47 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLbuffered_streamGYstreamsVio,
  &KLbufferGYstreamsVio,
  &KLsequenceGVKd
};

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

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

static _KLsignatureGVKe K50 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 42991625,
  &K51
};

static _KLsimple_object_vectorGVKd_2 K51 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLbuffered_streamGYstreamsVio,
  &KLbyte_stringGVKd
};

/* Code */

dylan_value KformatYformatVioMM1I (dylan_value stream_, dylan_value control_string_, dylan_value args_) {
  volatile dylan_value exitPexit_8_;
  volatile dylan_value T5;
  volatile dylan_value T6;
  volatile dylan_value i_T, i_;
  volatile dylan_value T8;
  volatile dylan_value T9;
  volatile dylan_value Utmp_;
  volatile dylan_value T11;
  volatile dylan_value T12;
  volatile dylan_value T13;
  volatile dylan_value T14;
  volatile dylan_value T15_0;
  volatile dylan_value T15_1;
  volatile dylan_value T16_0;
  volatile dylan_value T16_1;
  volatile dylan_value T17_0;
  volatile dylan_value T17_1;
  volatile dylan_value field_;
  volatile dylan_value field_spec_end_;
  volatile dylan_value T20;
  volatile dylan_value T21;
  volatile dylan_value T22;
  volatile dylan_value output_len_;
  volatile dylan_value T24;
  volatile dylan_value T25;
  volatile dylan_value T26;
  volatile dylan_value T27;
  volatile dylan_value T28;
  volatile dylan_value start_;
  volatile dylan_value T30;
  volatile dylan_value T31;
  volatile dylan_value T32;
  volatile dylan_value T33;
  volatile dylan_value T34;
  volatile dylan_value T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile dylan_value T38;
  volatile dylan_value arg_i_;
  volatile dylan_value T40;
  volatile dylan_value T41;
  volatile dylan_value T42;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile dylan_value T45;
  volatile dylan_value sb_;
  volatile dylan_value T47_0;
  volatile dylan_value T48_0;
  volatile dylan_value T49;
  volatile dylan_value T50;
  volatile dylan_value T51;
  volatile DWORD T52;
  volatile DWORD T53;
  volatile dylan_value T54;
  volatile _KLsimple_object_vectorGVKd_2 T55 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile _KLsimple_object_vectorGVKd_2 T56 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  volatile dylan_value T57;
  volatile dylan_value T58;
  volatile dylan_value T59;
  volatile dylan_value T60;
  volatile DWORD T61;
  volatile DWORD T62;
  volatile dylan_value T63;
  volatile dylan_value T64;
  volatile dylan_value T65;
  volatile dylan_value T66;
  volatile dylan_value T67;
  volatile dylan_value T68;
  volatile DWORD T69;
  volatile DWORD T70;
  volatile dylan_value T71;
  volatile dylan_value T72;
  volatile DBCHR T73;
  volatile dylan_value T74;
  volatile dylan_value T75_0;
  volatile dylan_value T76;
  volatile dylan_value T77;
  volatile dylan_value T78;
  volatile DWORD T79;
  volatile dylan_value T80;
  volatile DBCHR T81;
  volatile dylan_value T82_0;
  volatile dylan_value T83;
  volatile DBCHR T84;
  volatile DWORD T85;
  volatile DWORD T86;
  volatile dylan_value T87;
  volatile dylan_value T88_0;
  volatile dylan_value T89_0;
  volatile dylan_value T90;
  volatile DSINT T91;
  volatile dylan_value T92;
  volatile dylan_value T93;
  volatile dylan_value T94;
  volatile dylan_value s_;
  volatile dylan_value T96_0;
  volatile _KLsimple_object_vectorGVKd_4 T97 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  volatile dylan_value T98;
  volatile DWORD T99;
  volatile DWORD T100;
  volatile dylan_value T101;
  volatile dylan_value output_;
  volatile DWORD T103;
  volatile DWORD T104;
  volatile DWORD T105;
  volatile DWORD T106;
  volatile DWORD T107;
  volatile DWORD T108;
  volatile DWORD T109;
  volatile dylan_value T110;
  volatile dylan_value T111;
  volatile DWORD T112;
  volatile dylan_value T113;
  volatile dylan_value T114;
  volatile dylan_value T115;
  volatile DWORD T116;
  volatile dylan_value T117;
  volatile DBCHR T118;
  volatile dylan_value T119;
  volatile dylan_value T120_0;
  volatile dylan_value T121;
  volatile dylan_value T122;
  volatile dylan_value T123;
  volatile DWORD T124;
  volatile DWORD T125;
  volatile dylan_value T126;
  volatile DWORD T127;
  volatile DWORD T128;
  volatile dylan_value T129;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:49
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:51
  T45 = SLOT_VALUE_INITD(control_string_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
  ENTER_EXIT_FRAME(exitPexit_8_);
  if (nlx_setjmp(FRAME_DEST(exitPexit_8_))) {
    T28 = FRAME_RETVAL(exitPexit_8_);
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
    ENTER_UNWIND_FRAME(T6);
    if (!nlx_setjmp(FRAME_DEST(T6))) {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:53
      start_ = (dylan_value) 1;
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:54
      arg_i_ = (dylan_value) 1;
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:56
      CONGRUENT_CALL_PROLOG(&Klock_streamYstreamsVio, 1);
      CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
      CONGRUENT_CALL_PROLOG(&Kstream_output_bufferYstreams_internalsVio, 1);
      sb_ = CONGRUENT_CALL1(stream_);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
      if (sb_ != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T49 = sb_;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T50 = SLOT_VALUE_INITD(T49, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T51 = SLOT_VALUE_INITD(T49, 9);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T52 = primitive_cast_integer_as_raw(T50);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T53 = primitive_cast_integer_as_raw(T51);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T54 = primitive_machine_word_less_thanQ(T52,T53);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        if (T54 != &KPfalseVKi) {
          T58 = T49;
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
          T55.vector_element_[0] = IKJbytes_;
          T55.vector_element_[1] = (dylan_value) 5;
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
          CONGRUENT_CALL_PROLOG(&Kdo_next_output_bufferYstreamsVio, 2);
          T47_0 = CONGRUENT_CALL2(stream_, &T55);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
          T57 = T47_0;
          T58 = T57;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T60 = T58;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T56.vector_element_[0] = IKJbytes_;
        T56.vector_element_[1] = (dylan_value) 5;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        CONGRUENT_CALL_PROLOG(&Kdo_get_output_bufferYstreamsVio, 2);
        T48_0 = CONGRUENT_CALL2(stream_, &T56);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
        T59 = T48_0;
        T60 = T59;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:58
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
    L0: ;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
        T30 = start_;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
        T61 = primitive_cast_integer_as_raw(T30);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
        T62 = primitive_cast_integer_as_raw(T45);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
        T63 = primitive_machine_word_less_thanQ(T61,T62);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
        if (T63 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
          T38 = start_;
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
          i_T = T38;
        L1: ;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
            i_ = i_T;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:64
            T64 = primitive_idQ(i_,T45);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:64
            if (T64 != &KPfalseVKi) {
              Utmp_ = T64;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:65
              CONGRUENT_CALL_PROLOG(&KelementVKd, 3);
              T9 = CONGRUENT_CALL3(control_string_, i_, &KPempty_vectorVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:65
              T65 = primitive_idQ(T9,C('%'));
              Utmp_ = T65;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:64
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:64
            if (Utmp_ != &KPfalseVKi) {
              T12 = Utmp_;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:66
              CONGRUENT_CALL_PROLOG(&KelementVKd, 3);
              T11 = CONGRUENT_CALL3(control_string_, i_, &KPempty_vectorVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:66
              T66 = primitive_idQ(T11,C('\n'));
              T12 = T66;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:64
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
            if (T12 == &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
              CONGRUENT_CALL_PROLOG(&KAVKd, 2);
              T8 = CONGRUENT_CALL2(i_, (dylan_value) 5);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
              i_T = T8;
              goto L1;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:68
            T37 = start_;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:68
            T67 = primitive_idQ(i_,T37);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:68
            if (T67 == &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:69
              T36 = start_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:69
              CALL7(&Kbuffered_writeYformat_internalsVioMM0, stream_, T60, control_string_, &KJstart_, T36, &KJend_, i_);
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:68
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:71
            if (T64 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
              T68 = MV_SET_REST_AT(&KPempty_vectorVKi, 0);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
              NLX(exitPexit_8_, T68);
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:74
              CONGRUENT_CALL_PROLOG(&KAVKd, 2);
              T13 = CONGRUENT_CALL2(i_, (dylan_value) 5);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:74
              primitive_type_check(T13, &KLintegerGVKd);
              T14 = T13;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:74
              start_ = T14;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:71
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:63
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          T35 = start_;
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          T69 = primitive_cast_integer_as_raw(T35);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          T70 = primitive_machine_word_subtract_signal_overflow(T69,4);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          T71 = primitive_cast_raw_as_integer(T70);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          T72 = primitive_machine_word_unsigned_less_thanQ(T70,T62);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          if (T72 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
            T73 = REPEATED_DBCHR_SLOT_VALUE_TAGGED(control_string_, 1, T70);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
            T74 = primitive_raw_as_byte_character(T73);
            T77 = T74;
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
            T75_0 = Kelement_range_errorVKeI(control_string_, T71);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
            T76 = T75_0;
            T77 = T76;
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          T78 = primitive_idQ(T77,C('\n'));
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          if (T78 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:78
            CONGRUENT_CALL_PROLOG(&Knew_lineYstreamsVio, 1);
            CONGRUENT_CALL1(stream_);
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T34 = start_;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T79 = primitive_cast_integer_as_raw(T34);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T80 = primitive_machine_word_unsigned_less_thanQ(T79,T62);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            if (T80 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
              T81 = REPEATED_DBCHR_SLOT_VALUE_TAGGED(control_string_, 1, T79);
              T84 = T81;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
              T82_0 = Kelement_range_errorVKeI(control_string_, T34);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
              T83 = T82_0;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
              T91 = primitive_byte_character_as_raw(T83);
              T84 = T91;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T85 = primitive_machine_word_shift_left_signal_overflow(T84,2);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T86 = primitive_machine_word_logior(T85,1);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T87 = primitive_cast_raw_as_integer(T86);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T88_0 = T87;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T89_0 = T88_0;
            {
              MV_CHECK_TYPE_PROLOGUE(T88_0);
              primitive_type_check(T89_0, &KLbyteGVKe);
              MV_CHECK_TYPE_EPILOGUE();
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T90 = T89_0;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T92 = KelementVKdMM3I(char_classesYformat_internalsVio, T90, &KPempty_vectorVKi, &Kunsupplied_objectVKi);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            T93 = primitive_idQ(T92,IKJdigit_);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            if (T93 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:83
              T33 = start_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:83
              T15_0 = Kparse_integerYformat_internalsVioMM0I(control_string_, T33);
              T15_1 = MV_GET_ELT(1);
              T17_0 = T15_0;
              T17_1 = T15_1;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
              T16_0 = &KPfalseVKi;
              T16_1 = &KPfalseVKi;
              T17_0 = T16_0;
              T17_1 = T16_1;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:82
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:81
            field_ = T17_0;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:81
            field_spec_end_ = T17_1;
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:85
            if (field_ != &KPfalseVKi) {
              T44 = field_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:89
              T94 = KmakeVKdMM33I(&KLbyte_stringGVKd, &KPempty_vectorVKi, C(' '), (dylan_value) 321);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:88
              T97.vector_element_[0] = IKJcontents_;
              T97.vector_element_[1] = T94;
              T97.vector_element_[2] = &KJdirection_;
              T97.vector_element_[3] = &KJoutput_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:88
              T96_0 = KLbyte_string_streamGZ32ZconstructorYstreams_internalsVioMM0I(&KLbyte_string_streamGYstreamsVio, &T97, &KPunboundVKi, &KLobjectGVKd, &KPfalseVKi, T94);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:88
              s_ = T96_0;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:91
              CONGRUENT_CALL_PROLOG(&KelementVKd, 3);
              T20 = CONGRUENT_CALL3(control_string_, field_spec_end_, &KPempty_vectorVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:92
              T43 = arg_i_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:92
              T98 = KelementVKdMM3I(args_, T43, &KPempty_vectorVKi, &KPfalseVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:91
              T21 = CALL3(&Kdo_dispatchYformat_internalsVioMM0, T20, s_, T98);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:91
              if (T21 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:93
                T42 = arg_i_;
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:93
                T99 = primitive_cast_integer_as_raw(T42);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:93
                T100 = primitive_machine_word_add_signal_overflow(T99,4);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:93
                T101 = primitive_cast_raw_as_integer(T100);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:93
                arg_i_ = T101;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:91
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:95
              output_ = Kstream_contentsYstreams_protocolVcommon_dylanMioM0I(s_, &KPempty_vectorVKi, &KPtrueVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:96
              CONGRUENT_CALL_PROLOG(&KsizeVKd, 1);
              T22 = CONGRUENT_CALL1(output_);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:96
              primitive_type_check(T22, &KLintegerGVKd);
              output_len_ = T22;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T103 = primitive_cast_integer_as_raw(T44);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T104 = primitive_machine_word_logxor(T103,1);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T105 = primitive_machine_word_abs_signal_overflow(T104);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T106 = primitive_machine_word_logior(T105,1);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T107 = primitive_cast_integer_as_raw(output_len_);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T108 = primitive_machine_word_logxor(T107,1);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T109 = primitive_machine_word_subtract_signal_overflow(T106,T108);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:97
              T110 = primitive_cast_raw_as_integer(T109);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:99
              T111 = primitive_machine_word_less_thanQ(T109,1);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:98
              if (T111 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:100
                CALL3(&Kbuffered_writeYformat_internalsVioMM0, stream_, T60, output_);
              } else {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:101
                T112 = primitive_cast_integer_as_raw(T44);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:101
                T113 = primitive_machine_word_less_thanQ(1,T112);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:98
                if (T113 != &KPfalseVKi) {
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:102
                  T114 = KmakeVKdMM33I(&KLbyte_stringGVKd, &KPempty_vectorVKi, C(' '), T110);
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:102
                  CALL3(&Kbuffered_writeYformat_internalsVioMM0, stream_, T60, T114);
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:103
                  CALL3(&Kbuffered_writeYformat_internalsVioMM0, stream_, T60, output_);
                } else {
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:105
                  CALL3(&Kbuffered_writeYformat_internalsVioMM0, stream_, T60, output_);
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:106
                  T115 = KmakeVKdMM33I(&KLbyte_stringGVKd, &KPempty_vectorVKi, C(' '), T110);
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:106
                  CALL3(&Kbuffered_writeYformat_internalsVioMM0, stream_, T60, T115);
                }
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:98
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:98
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:108
              CONGRUENT_CALL_PROLOG(&KAVKd, 2);
              T24 = CONGRUENT_CALL2(field_spec_end_, (dylan_value) 5);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:108
              primitive_type_check(T24, &KLintegerGVKd);
              T25 = T24;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:108
              start_ = T25;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              T32 = start_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              T116 = primitive_cast_integer_as_raw(T32);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              T117 = primitive_machine_word_unsigned_less_thanQ(T116,T62);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              if (T117 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
                T118 = REPEATED_DBCHR_SLOT_VALUE_TAGGED(control_string_, 1, T116);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
                T119 = primitive_raw_as_byte_character(T118);
                T122 = T119;
              } else {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
                T120_0 = Kelement_range_errorVKeI(control_string_, T32);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
                T121 = T120_0;
                T122 = T121;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:111
              T41 = arg_i_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:111
              T123 = KelementVKdMM3I(args_, T41, &KPempty_vectorVKi, &KPfalseVKi);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              T26 = CALL4(&Kbuffered_do_dispatchYformat_internalsVioMM0, T122, stream_, T60, T123);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              if (T26 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:112
                T40 = arg_i_;
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:112
                T124 = primitive_cast_integer_as_raw(T40);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:112
                T125 = primitive_machine_word_add_signal_overflow(T124,4);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:112
                T126 = primitive_cast_raw_as_integer(T125);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:112
                arg_i_ = T126;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:110
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:114
              T31 = start_;
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:114
              T127 = primitive_cast_integer_as_raw(T31);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:114
              T128 = primitive_machine_word_add_signal_overflow(T127,4);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:114
              T129 = primitive_cast_raw_as_integer(T128);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:114
              start_ = T129;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:85
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:77
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
          goto L0;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:61
      T27 = &KPfalseVKi;
      MV_SET_COUNT(0);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
      FALL_THROUGH_UNWIND(T27);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:119
    CONGRUENT_CALL_PROLOG(&Kunlock_streamYstreamsVio, 1);
    CONGRUENT_CALL1(stream_);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
    CONTINUE_UNWIND();
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
  T28 = T27;
    /* invalidate exitPexit_8_ */
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:52
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:49
  MV_SET_COUNT(0);
  return(T28);
}

dylan_value Kbuffered_writeYformat_internalsVioMM0I (dylan_value stream_, dylan_value sb_, dylan_value elements_, dylan_value Urest_, dylan_value Ustart_, dylan_value Uend_) {
  dylan_value T7;
  dylan_value UendF8;
  dylan_value iF9;
  dylan_value T10;
  DWORD T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value sbF16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value iF24;
  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;
  DWORD T34;
  dylan_value T35;
  DWORD T36;
  DWORD T37;
  dylan_value T38;
  dylan_value T39;
  DWORD T40;
  DWORD T41;
  dylan_value T42;
  DWORD T43;
  DWORD T44;
  DWORD T45;
  DWORD T46;
  DWORD T47;
  DWORD T48;
  DWORD T49;
  dylan_value T50;
  DWORD T51;
  DWORD T52;
  DWORD T53;
  dylan_value T54;
  dylan_value T55;
  DWORD T56;
  DWORD T57;
  DWORD T58;
  dylan_value T59;
  DWORD T60;
  DWORD T61;
  DWORD T62;
  dylan_value T63;
  dylan_value T64;
  dylan_value T65;
  DWORD T66;
  dylan_value T67;
  DWORD T68;
  dylan_value T69;
  _KLsimple_object_vectorGVKd_2 T70 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T71;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
  sbF16 = sb_;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
  T30 = primitive_idQ(Uend_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
  if (T30 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
    T7 = DunsuppliedYcommon_extensionsVcommon_dylan;
    UendF8 = T7;
  } else {
    UendF8 = Uend_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:28
  primitive_type_check(Ustart_, &KLintegerGVKd);
  iF9 = Ustart_;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:28
  iF24 = iF9;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:29
  T31 = primitive_idQ(UendF8,DunsuppliedYcommon_extensionsVcommon_dylan);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:29
  if (T31 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:29
    CONGRUENT_CALL_PROLOG(&KsizeVKd, 1);
    T10 = CONGRUENT_CALL1(elements_);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:29
    primitive_type_check(T10, &KLintegerGVKd);
    T32 = T10;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    T36 = primitive_cast_integer_as_raw(T32);
    T11 = T36;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
    primitive_type_check(UendF8, &KLintegerGVKd);
    T33 = UendF8;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    T37 = primitive_cast_integer_as_raw(T33);
    T11 = T37;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:29
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
L0: ;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    sbF16;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    T26 = iF24;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    T34 = primitive_cast_integer_as_raw(T26);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    T35 = primitive_machine_word_less_thanQ(T34,T11);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    if (T35 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:31
      T23 = sbF16;
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:31
      T38 = SLOT_VALUE_INITD(T23, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:32
      T22 = sbF16;
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:32
      T39 = SLOT_VALUE_INITD(T22, 9);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:33
      T40 = primitive_cast_integer_as_raw(T38);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:33
      T41 = primitive_cast_integer_as_raw(T39);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:33
      T42 = primitive_machine_word_less_thanQ(T40,T41);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:33
      if (T42 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T43 = primitive_cast_integer_as_raw(T38);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T44 = primitive_machine_word_logxor(T43,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T45 = primitive_machine_word_subtract_signal_overflow(T41,T44);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T29 = iF24;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T46 = primitive_cast_integer_as_raw(T29);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T47 = primitive_machine_word_logxor(T46,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T48 = primitive_machine_word_subtract_signal_overflow(T11,T47);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        T50 = primitive_machine_word_less_thanQ(T45,T48);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        if (T50 != &KPfalseVKi) {
          T49 = T45;
        } else {
          T49 = T48;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:36
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        T55 = primitive_cast_raw_as_integer(T49);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:37
        T21 = sbF16;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:37
        T28 = iF24;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:37
        ENGINE_NODE_CALL_PROLOG(&Kcoerce_from_sequenceYstreams_internalsVio, &K42, 6);
        ENGINE_NODE_CALL6(&K42, stream_, T21, T38, elements_, T28, T55);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:38
        T20 = sbF16;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:38
        SLOT_VALUE_SETTER(&KPtrueVKi, T20, 3);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        T27 = iF24;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        T51 = primitive_cast_integer_as_raw(T27);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        T52 = primitive_machine_word_logxor(T49,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        T53 = primitive_machine_word_add_signal_overflow(T51,T52);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        T54 = primitive_cast_raw_as_integer(T53);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:39
        iF24 = T54;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:40
        T56 = primitive_cast_integer_as_raw(T38);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:40
        T57 = primitive_machine_word_logxor(T49,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:40
        T58 = primitive_machine_word_add_signal_overflow(T56,T57);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:40
        T59 = primitive_cast_raw_as_integer(T58);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:40
        T19 = sbF16;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:40
        SLOT_VALUE_SETTER(T59, T19, 0);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T60 = primitive_cast_integer_as_raw(T38);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T61 = primitive_machine_word_logxor(T49,1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T62 = primitive_machine_word_add_signal_overflow(T60,T61);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T63 = primitive_cast_raw_as_integer(T62);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T18 = sbF16;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T64 = SLOT_VALUE_INITD(T18, 1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T66 = primitive_cast_integer_as_raw(T64);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T67 = primitive_machine_word_less_thanQ(T66,T62);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        if (T67 != &KPfalseVKi) {
          T65 = T63;
        } else {
          T65 = T64;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        T17 = sbF16;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:41
        SLOT_VALUE_SETTER(T65, T17, 1);
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:34
        CONGRUENT_CALL_PROLOG(&Kdo_next_output_bufferYstreamsVio, 2);
        T12 = CONGRUENT_CALL2(stream_, &KPempty_vectorVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:34
        sbF16 = T12;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:33
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
      goto L0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:30
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:44
  T25 = iF24;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:44
  T68 = primitive_cast_integer_as_raw(T25);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:44
  T69 = primitive_machine_word_less_thanQ(T68,T11);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:44
  if (T69 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:45
    T70.vector_element_[0] = IKJstream_;
    T70.vector_element_[1] = stream_;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:45
    CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
    T13 = CONGRUENT_CALL2(&KLend_of_stream_errorGYstreams_protocolVcommon_dylan, &T70);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:45
    T71 = KsignalVKdMM0I(T13, &KPempty_vectorVKi);
    T15 = T71;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:44
    T14 = &KPfalseVKi;
    T15 = T14;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:44
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:25
  MV_SET_COUNT(0);
  return(T15);
}

dylan_value Kbuffered_do_dispatchYformat_internalsVioMM0I (dylan_value char_, dylan_value stream_, dylan_value sb_, dylan_value arg_) {
  dylan_value T5;
  dylan_value T6_0;
  dylan_value T7;
  dylan_value T8_0;
  dylan_value Pold_valueP_;
  dylan_value T10;
  dylan_value T11_0;
  dylan_value T12;
  dylan_value T13_0;
  dylan_value T14;
  dylan_value T15_0;
  dylan_value T16;
  dylan_value T17_0;
  dylan_value T18;
  dylan_value T19_0;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22_0;
  dylan_value T23_0;
  dylan_value T24_0;
  dylan_value T25_0;
  dylan_value T26_0;
  dylan_value T27_0;
  dylan_value T28_0;
  dylan_value T29_0;
  dylan_value T30_0;
  dylan_value T31_0;
  dylan_value T32_0;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  dylan_value T36;
  dylan_value T37;
  dylan_value T38;
  dylan_value T39;
  dylan_value T40;
  _KLsimple_object_vectorGVKd_1 T41 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  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;
  _KLsimple_object_vectorGVKd_1 T53 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T54;
  _KLsimple_object_vectorGVKd_1 T55 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T56_0;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:123
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
  T34 = primitive_idQ(char_,C('s'));
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
  if (T34 != &KPfalseVKi) {
    T5 = T34;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
    T35 = primitive_idQ(char_,C('S'));
    T5 = T35;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
  if (T5 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:128
    T36 = primitive_instanceQ(arg_,&KLbyte_stringGVKd);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:128
    if (T36 != &KPfalseVKi) {
      T33 = arg_;
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:131
      Kbuffered_writeYformat_internalsVioMM0I(stream_, sb_, T33, &KPempty_vectorVKi, (dylan_value) 1, &KPunboundVKi);
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:133
      CONGRUENT_CALL_PROLOG(&Kprint_messageYformatVio, 2);
      CONGRUENT_CALL2(arg_, stream_);
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:128
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:135
    T6_0 = &KPtrueVKi;
    T32_0 = T6_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
    T37 = primitive_idQ(char_,C('c'));
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
    if (T37 != &KPfalseVKi) {
      T7 = T37;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
      T38 = primitive_idQ(char_,C('C'));
      T7 = T38;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
    if (T7 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:137
      T39 = primitive_instanceQ(arg_,&KLbyte_characterGVKe);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:137
      if (T39 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:139
        Kbuffered_write_elementYformat_internalsVioMM0I(stream_, sb_, arg_);
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:137
        T40 = primitive_instanceQ(arg_,&KLcharacterGVKd);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:137
        if (T40 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:141
          CONGRUENT_CALL_PROLOG(&Kprint_messageYformatVio, 2);
          CONGRUENT_CALL2(arg_, stream_);
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:143
          T41.vector_element_[0] = arg_;
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:143
          KerrorVKdMM1I(&K10, &T41);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:137
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:137
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:145
      T8_0 = &KPtrueVKi;
      T31_0 = T8_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
      T42 = primitive_idQ(char_,C('='));
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
      if (T42 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:147
        Pold_valueP_ = primitive_read_thread_variable(Tprint_escapeQTYprintVio);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:147
        ENTER_UNWIND_FRAME(T10);
        if (!nlx_setjmp(FRAME_DEST(T10))) {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:147
          primitive_write_thread_variable(Tprint_escapeQTYprintVio, &KPtrueVKi);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:148
          CONGRUENT_CALL_PROLOG(&Kprint_objectYprintVio, 2);
          CONGRUENT_CALL2(arg_, stream_);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:147
          FALL_THROUGH_UNWIND(&KPfalseVKi);
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:147
        primitive_write_thread_variable(Tprint_escapeQTYprintVio, Pold_valueP_);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:147
        CONTINUE_UNWIND();
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:150
        T11_0 = &KPtrueVKi;
        T30_0 = T11_0;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
        T43 = primitive_idQ(char_,C('d'));
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
        if (T43 != &KPfalseVKi) {
          T12 = T43;
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
          T44 = primitive_idQ(char_,C('D'));
          T12 = T44;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
        if (T12 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:152
          ENGINE_NODE_CALL_PROLOG(&Kbuffered_format_integerYformat_internalsVio, &K11, 4);
          ENGINE_NODE_CALL4(&K11, arg_, (dylan_value) 41, stream_, sb_);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:153
          T13_0 = &KPtrueVKi;
          T29_0 = T13_0;
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
          T45 = primitive_idQ(char_,C('b'));
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
          if (T45 != &KPfalseVKi) {
            T14 = T45;
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
            T46 = primitive_idQ(char_,C('B'));
            T14 = T46;
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
          if (T14 != &KPfalseVKi) {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:155
            ENGINE_NODE_CALL_PROLOG(&Kbuffered_format_integerYformat_internalsVio, &K13, 4);
            ENGINE_NODE_CALL4(&K13, arg_, (dylan_value) 9, stream_, sb_);
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:156
            T15_0 = &KPtrueVKi;
            T28_0 = T15_0;
          } else {
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
            T47 = primitive_idQ(char_,C('o'));
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
            if (T47 != &KPfalseVKi) {
              T16 = T47;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
              T48 = primitive_idQ(char_,C('O'));
              T16 = T48;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
            if (T16 != &KPfalseVKi) {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:158
              ENGINE_NODE_CALL_PROLOG(&Kbuffered_format_integerYformat_internalsVio, &K14, 4);
              ENGINE_NODE_CALL4(&K14, arg_, (dylan_value) 33, stream_, sb_);
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:159
              T17_0 = &KPtrueVKi;
              T27_0 = T17_0;
            } else {
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
              T49 = primitive_idQ(char_,C('x'));
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
              if (T49 != &KPfalseVKi) {
                T18 = T49;
              } else {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                T50 = primitive_idQ(char_,C('X'));
                T18 = T50;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
              if (T18 != &KPfalseVKi) {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:161
                ENGINE_NODE_CALL_PROLOG(&Kbuffered_format_integerYformat_internalsVio, &K15, 4);
                ENGINE_NODE_CALL4(&K15, arg_, (dylan_value) 65, stream_, sb_);
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:162
                T19_0 = &KPtrueVKi;
                T26_0 = T19_0;
              } else {
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                T51 = primitive_idQ(char_,C('m'));
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                if (T51 != &KPfalseVKi) {
                  T20 = T51;
                } else {
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                  T52 = primitive_idQ(char_,C('M'));
                  T20 = T52;
                }
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                if (T20 != &KPfalseVKi) {
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:164
                  T53.vector_element_[0] = stream_;
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:164
                  T21 = KlistVKdI(&T53);
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:164
                  CALL2(&KapplyVKd, arg_, T21);
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:165
                  T22_0 = &KPtrueVKi;
                  T25_0 = T22_0;
                } else {
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                  T54 = primitive_idQ(char_,C('%'));
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                  if (T54 != &KPfalseVKi) {
                    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:167
                    Kbuffered_write_elementYformat_internalsVioMM0I(stream_, sb_, C('%'));
                    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:168
                    T23_0 = &KPfalseVKi;
                    T24_0 = T23_0;
                  } else {
                    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:170
                    T55.vector_element_[0] = char_;
                    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:170
                    T56_0 = KerrorVKdMM1I(&K16, &T55);
                    T24_0 = T56_0;
                  }
                  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                  T25_0 = T24_0;
                }
                // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
                T26_0 = T25_0;
              }
              // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
              T27_0 = T26_0;
            }
            // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
            T28_0 = T27_0;
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
          T29_0 = T28_0;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
        T30_0 = T29_0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
      T31_0 = T30_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
    T32_0 = T31_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:126
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:123
  MV_SET_COUNT(1);
  return(T32_0);
}

dylan_value Kbuffered_write_elementYformat_internalsVioMM0I (dylan_value stream_, dylan_value sb_, dylan_value elt_) {
  dylan_value T4;
  dylan_value T5;
  dylan_value sbF6;
  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;
  DWORD T17;
  DWORD T18;
  dylan_value T19;
  _KLsimple_object_vectorGVKd_2 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T21;
  DWORD T22;
  DWORD T23;
  dylan_value T24;
  DWORD T25;
  DWORD T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value T29;
  DWORD T30;
  dylan_value T31;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:12
  sbF6 = sb_;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T14 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T15 = SLOT_VALUE_INITD(T14, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T13 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T16 = SLOT_VALUE_INITD(T13, 9);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T17 = primitive_cast_integer_as_raw(T15);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T18 = primitive_cast_integer_as_raw(T16);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  T19 = primitive_machine_word_less_thanQ(T17,T18);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  if (T19 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:15
    T20.vector_element_[0] = IKJbytes_;
    T20.vector_element_[1] = (dylan_value) 5;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:15
    CONGRUENT_CALL_PROLOG(&Kdo_next_output_bufferYstreamsVio, 2);
    T4 = CONGRUENT_CALL2(stream_, &T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:15
    sbF6 = T4;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:14
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:17
  T12 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:17
  T21 = SLOT_VALUE_INITD(T12, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:18
  T11 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:18
  ENGINE_NODE_CALL_PROLOG(&Kcoerce_from_elementYstreams_internalsVio, &K37, 4);
  ENGINE_NODE_CALL4(&K37, stream_, T11, T21, elt_);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:19
  T10 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:19
  SLOT_VALUE_SETTER(&KPtrueVKi, T10, 3);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:20
  T22 = primitive_cast_integer_as_raw(T21);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:20
  T23 = primitive_machine_word_add_signal_overflow(T22,4);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:20
  T24 = primitive_cast_raw_as_integer(T23);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:20
  T9 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:20
  SLOT_VALUE_SETTER(T24, T9, 0);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T25 = primitive_cast_integer_as_raw(T21);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T26 = primitive_machine_word_add_signal_overflow(T25,4);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T27 = primitive_cast_raw_as_integer(T26);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T8 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T28 = SLOT_VALUE_INITD(T8, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T30 = primitive_cast_integer_as_raw(T28);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T31 = primitive_machine_word_less_thanQ(T30,T26);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  if (T31 != &KPfalseVKi) {
    T29 = T27;
  } else {
    T29 = T28;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T7 = sbF6;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  SLOT_VALUE_SETTER(T29, T7, 1);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:21
  T5 = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:12
  MV_SET_COUNT(0);
  return(T5);
}

dylan_value Kbuffered_format_integerYformat_internalsVioMM0I (dylan_value arg_, dylan_value radix_, dylan_value stream_, dylan_value sb_) {
  dylan_value T5;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:176
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:179
  T5 = KprintYprintVioMM0I(arg_, stream_, &KPempty_vectorVKi, &KPunboundVKi, &KPunboundVKi, &KPunboundVKi, &KPunboundVKi, &KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:176
  MV_SET_COUNT(0);
  return(T5);
}

dylan_value Kbuffered_format_integerYformat_internalsVioMM1I (dylan_value arg_, dylan_value radix_, dylan_value stream_, dylan_value sb_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  DWORD T11;
  dylan_value T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  DWORD T16_0;
  DWORD T16_1;
  DWORD quotient_;
  DWORD remainder_;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  dylan_value T22;
  DWORD T23;
  DWORD T24;
  dylan_value T25;
  DWORD T26;
  DWORD T27;
  dylan_value T28;
  dylan_value T29;
  DWORD T30;
  dylan_value T31;
  DBCHR T32;
  dylan_value T33;
  dylan_value T34_0;
  dylan_value T35;
  dylan_value T36;
  _KLsimple_object_vectorGVKd_1 T37 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  DWORD T38;
  DWORD T39;
  dylan_value T40;
  dylan_value T41;
  DWORD T42;
  dylan_value T43;
  DBCHR T44;
  dylan_value T45;
  dylan_value T46_0;
  dylan_value T47;
  dylan_value T48;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:182
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:198
  T11 = primitive_cast_integer_as_raw(arg_);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:198
  T12 = primitive_machine_word_less_thanQ(T11,1);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:198
  if (T12 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:199
    Kbuffered_write_elementYformat_internalsVioMM0I(stream_, sb_, C('-'));
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T13 = primitive_machine_word_shift_right(T11,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T14 = primitive_cast_integer_as_raw(radix_);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T15 = primitive_machine_word_shift_right(T14,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T16_0 = primitive_machine_word_truncateS_byref(T13,T15,(DWORD*)&T16_1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    quotient_ = T16_0;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    remainder_ = T16_1;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T19 = primitive_machine_word_shift_left_signal_overflow(quotient_,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T20 = primitive_machine_word_logior(T19,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:206
    T21 = primitive_machine_word_shift_left_signal_overflow(remainder_,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:207
    T22 = primitive_machine_word_equalQ(T20,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:207
    if (T22 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T38 = primitive_machine_word_negative_signal_overflow(T21);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T39 = primitive_machine_word_logior(T38,1);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T40 = primitive_cast_raw_as_integer(T39);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T41 = SLOT_VALUE_INITD(DdigitsYformat_internalsVio, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T42 = primitive_cast_integer_as_raw(T41);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T43 = primitive_machine_word_unsigned_less_thanQ(T39,T42);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      if (T43 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
        T44 = REPEATED_DBCHR_SLOT_VALUE_TAGGED(DdigitsYformat_internalsVio, 1, T39);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
        T45 = primitive_raw_as_byte_character(T44);
        T48 = T45;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
        T46_0 = Kelement_range_errorVKeI(DdigitsYformat_internalsVio, T40);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
        T47 = T46_0;
        T48 = T47;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:210
      T7 = Kbuffered_write_elementYformat_internalsVioMM0I(stream_, sb_, T48);
      T8 = T7;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T23 = primitive_machine_word_negative_signal_overflow(T19);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T24 = primitive_machine_word_logior(T23,1);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T25 = primitive_cast_raw_as_integer(T24);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T26 = primitive_machine_word_negative_signal_overflow(T21);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T27 = primitive_machine_word_logior(T26,1);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T28 = primitive_cast_raw_as_integer(T27);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T29 = SLOT_VALUE_INITD(DdigitsYformat_internalsVio, 0);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T30 = primitive_cast_integer_as_raw(T29);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T31 = primitive_machine_word_unsigned_less_thanQ(T27,T30);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      if (T31 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
        T32 = REPEATED_DBCHR_SLOT_VALUE_TAGGED(DdigitsYformat_internalsVio, 1, T27);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
        T33 = primitive_raw_as_byte_character(T32);
        T36 = T33;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
        T34_0 = Kelement_range_errorVKeI(DdigitsYformat_internalsVio, T28);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
        T35 = T34_0;
        T36 = T35;
      }
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T37.vector_element_[0] = T36;
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T5 = KlistVKdI(&T37);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:208
      T6 = KrepeatF32I(sb_, stream_, radix_, T25, T5);
      T8 = T6;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:207
    T10 = T8;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:213
    T9 = KrepeatF32I(sb_, stream_, radix_, arg_, &KPempty_listVKi);
    T10 = T9;
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:198
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:182
  MV_SET_COUNT(0);
  return(T10);
}

dylan_value Kbuffered_format_integerYformat_internalsVioMM2I (dylan_value arg_, dylan_value radix_, dylan_value stream_, dylan_value buffer_) {
  DWORD T5;
  dylan_value T6;
  dylan_value T7;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:217
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:221
  T5 = primitive_cast_integer_as_raw(radix_);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:221
  T6 = primitive_machine_word_equalQ(T5,41);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:221
  if (T6 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:221
    Kassertion_failureVKiI(&K27, &KPempty_vectorVKi);
  }
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:221
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:222
  T7 = KprintYprintVioMM0I(arg_, stream_, &KPempty_vectorVKi, &KPunboundVKi, &KPunboundVKi, &KPunboundVKi, &KPunboundVKi, &KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:217
  MV_SET_COUNT(0);
  return(T7);
}

static dylan_value KrepeatF32I (dylan_value sb_, dylan_value stream_, dylan_value radix_, dylan_value arg_, dylan_value digits_) {
  dylan_value T6T, T6;
  dylan_value T7;
  dylan_value T8;
  DWORD T9;
  DWORD T10;
  DWORD T11;
  DWORD T12;
  DWORD T13_0;
  DWORD T13_1;
  DWORD quotient_;
  DWORD remainder_;
  DWORD T16;
  DWORD T17;
  dylan_value T18;
  DWORD T19;
  DWORD T20;
  dylan_value T21;
  dylan_value T22;
  DWORD T23;
  dylan_value T24;
  DBCHR T25;
  dylan_value T26;
  dylan_value T27_0;
  dylan_value T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35_0;
  dylan_value T36_0;
  dylan_value T37;
  dylan_value T38;
  dylan_value argF39T, argF39;
  dylan_value T40;
  dylan_value digitsF41T, digitsF41;
  dylan_value T42;

  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:185
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
  argF39T = arg_;
  digitsF41T = digits_;
L0: ;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
    argF39 = argF39T;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
    primitive_type_check(argF39, &KLintegerGVKd);
    T40 = argF39;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
    digitsF41 = digitsF41T;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
    primitive_type_check(digitsF41, &KLlistGVKd);
    T42 = digitsF41;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T9 = primitive_cast_integer_as_raw(T40);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T10 = primitive_machine_word_shift_right(T9,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T11 = primitive_cast_integer_as_raw(radix_);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T12 = primitive_machine_word_shift_right(T11,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T13_0 = primitive_machine_word_floorS_byref(T10,T12,(DWORD*)&T13_1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    quotient_ = T13_0;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    remainder_ = T13_1;
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T16 = primitive_machine_word_shift_left_signal_overflow(quotient_,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T17 = primitive_machine_word_logior(T16,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T18 = primitive_cast_raw_as_integer(T17);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T19 = primitive_machine_word_shift_left_signal_overflow(remainder_,2);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T20 = primitive_machine_word_logior(T19,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:187
    T21 = primitive_cast_raw_as_integer(T20);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    T22 = SLOT_VALUE_INITD(DdigitsYformat_internalsVio, 0);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    T23 = primitive_cast_integer_as_raw(T22);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    T24 = primitive_machine_word_unsigned_less_thanQ(T20,T23);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    if (T24 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
      T25 = REPEATED_DBCHR_SLOT_VALUE_TAGGED(DdigitsYformat_internalsVio, 1, T20);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
      T26 = primitive_raw_as_byte_character(T25);
      T29 = T26;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
      T27_0 = Kelement_range_errorVKeI(DdigitsYformat_internalsVio, T21);
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
      T28 = T27_0;
      T29 = T28;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    T30 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    SLOT_VALUE_SETTER(T29, T30, 0);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:188
    SLOT_VALUE_SETTER(T42, T30, 1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:189
    T31 = primitive_machine_word_equalQ(T17,1);
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:189
    if (T31 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
      T6T = T30;
    L1: ;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
        T6 = T6T;
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
        T32 = primitive_idQ(T6,&KPempty_listVKi);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
        if (T32 == &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
          T33 = SLOT_VALUE_INITD(T6, 0);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:191
          Kbuffered_write_elementYformat_internalsVioMM0I(stream_, sb_, T33);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
          T34 = SLOT_VALUE_INITD(T6, 1);
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
          T35_0 = T34;
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
          T36_0 = T35_0;
          {
            MV_CHECK_TYPE_PROLOGUE(T35_0);
            primitive_type_check(T36_0, &KLlistGVKd);
            MV_CHECK_TYPE_EPILOGUE();
          }
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
          T37 = T36_0;
          // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
          T6T = T37;
          goto L1;
        }
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
        T7 = &KPfalseVKi;
        MV_SET_ELT(0, &KPfalseVKi);
        MV_SET_COUNT(1);
        // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:190
      T8 = T7;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
      argF39T = T18;
      digitsF41T = T30;
      goto L0;
      T8 = T38;
    }
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:189
    // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:194
  // /home/bruce/Development/dylan/opendylan/sources/io/buffered-format.dylan:185
  return(T8);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJbytes_);
    if (T0 != &KJbytes_) {
      IKJbytes_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJdigit_);
    if (T0 != &KJdigit_) {
      IKJdigit_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJcontents_);
    if (T0 != &KJcontents_) {
      IKJcontents_ = T0;
    }
  }
  {
    dylan_value T0;

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

/* USER INIT CODE */

void _Init_io__X_buffered_format_for_user () {
  return;
}


/* eof */
