#include "run-time.h"

/* Typedefs for referenced classes */

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

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

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    D vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(0);

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

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

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

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

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

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

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(40);
define__KLbyte_stringGVKd(7);

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


/* 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;
D KgethashVKiI (D, D, D, D);
D Kjam_variableVjamMM0I (D, D, D, D);
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLincremental_generic_functionGVKe KemptyQVKd;
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 KelementVKd;
extern _KLsimple_methodGVKe Kparse_regular_expressionYjam_internalsVjam;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLsymbolGVKd KJdirection_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLsymbolGVKd KJinput_;
extern _KLincremental_generic_functionGVKe Kopen_file_streamYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLfile_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLfile_streamGYstreams_internalsVioW;
extern _KLincremental_generic_functionGVKe Kstream_input_bufferYstreams_internalsVio;
extern _KLclassGVKd KLbufferGYstreamsVio;
extern _KLmm_wrapperGVKi_0 KLbufferGYstreamsVioW;
extern _KLsymbolGVKd KJwaitQ_;
extern _KLincremental_generic_functionGVKe Kdo_next_input_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe Kdo_get_input_bufferYstreamsVio;
D KerrorVKdMM1I (D, D);
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLincremental_generic_functionGVKe Kdo_release_input_bufferYstreamsVio;
extern _KLincremental_generic_functionGVKe Kstream_openQYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe KcloseYcommon_extensionsVcommon_dylan;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLsealed_generic_functionGVKe Kbuffer_endYstreamsVio;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLsealed_generic_functionGVKe Kbuffer_next_setterYstreamsVio;

/* Defined object declarations */

D Ktarget_header_scanYjam_internalsVjamMM0I (D, D);
static _KLbyte_stringGVKd_7 K1;
static _KLbyte_stringGVKd_7 K2;
static _KLsymbolGVKd KJbytes_;
static D KloopF6I (D, D);
static _KLbyte_stringGVKd_40 K5;
static _KLbyte_stringGVKd_5 K7;

/* Indirection variables */

static D IKJbytes_ = &KJbytes_;

/* Variables */


/* Objects */

static _KLbyte_stringGVKd_7 K1 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 29,
  "HDRSCAN"
};

static _KLbyte_stringGVKd_7 K2 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 29,
  "HDRRULE"
};

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

static _KLbyte_stringGVKd_40 K5 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 161,
  "Stream %= does not have the input buffer"
};

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

/* Code */

D Ktarget_header_scanYjam_internalsVjamMM0I (D jam_, D target_) {
  D T3;
  D hdrscan_;
  D T5;
  D hdrrule_;
  D T7;
  D T8;
  D T9;
  D T10;
  D T11;
  D T12;
  D streamF13;
  D T14;
  D T15;
  D T16;
  D T17;
  D Ustream_;
  D T19;
  D T20;
  D T21;
  D T22;
  D T23;
  D T24_0;
  D UtmpF25;
  D T26_0;
  D UtmpF27;
  D T28;
  D T29;
  _KLsimple_object_vectorGVKd_2 T30 = {&KLsimple_object_vectorGVKdW, (D) 9};
  D sb_;
  D T32;
  D T33;
  D T34;
  DWORD T35;
  DWORD T36;
  D T37;
  _KLsimple_object_vectorGVKd_4 T38 = {&KLsimple_object_vectorGVKdW, (D) 17};
  D T39_0;
  _KLsimple_object_vectorGVKd_4 T40 = {&KLsimple_object_vectorGVKdW, (D) 17};
  D T41_0;
  D T42;
  D T43;
  D T44;
  D T45;
  D T46;
  _KLsimple_object_vectorGVKd_1 T47 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T48;

  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:8
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:12
  T23 = SLOT_VALUE_INITD(target_, 7);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:12
  T24_0 = KgethashVKiI(T23, &K1, &KPfalseVKi, &KPtrueVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:12
  UtmpF25 = T24_0;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:12
  if (UtmpF25 != &KPfalseVKi) {
    hdrscan_ = UtmpF25;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:13
    T3 = Kjam_variableVjamMM0I(jam_, &K1, &KPempty_vectorVKi, &KPempty_vectorVKi);
    hdrscan_ = T3;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:12
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:15
  T26_0 = KgethashVKiI(T23, &K2, &KPfalseVKi, &KPtrueVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:15
  UtmpF27 = T26_0;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:15
  if (UtmpF27 != &KPfalseVKi) {
    hdrrule_ = UtmpF27;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:16
    T5 = Kjam_variableVjamMM0I(jam_, &K2, &KPempty_vectorVKi, &KPempty_vectorVKi);
    hdrrule_ = T5;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:15
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
  CONGRUENT_CALL_PROLOG(&KemptyQVKd, 1);
  T7 = CONGRUENT_CALL1(hdrscan_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
  if (T7 != &KPfalseVKi) {
    T9 = &KPfalseVKi;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
    CONGRUENT_CALL_PROLOG(&KemptyQVKd, 1);
    T8 = CONGRUENT_CALL1(hdrrule_);
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
    T28 = primitive_not(T8);
    T9 = T28;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
  if (T9 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:19
    T10 = CALL2(&KelementVKd, hdrscan_, (D) 1);
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:19
    CALL1(&Kparse_regular_expressionYjam_internalsVjam, T10);
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    Ustream_ = &KPfalseVKi;
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    ENTER_UNWIND_FRAME(T11);
    if (!nlx_setjmp(FRAME_DEST(T11))) {
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      T29 = SLOT_VALUE_INITD(target_, 1);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      T30.vector_element_[0] = &KJdirection_;
      T30.vector_element_[1] = &KJinput_;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      CONGRUENT_CALL_PROLOG(&Kopen_file_streamYstreams_protocolVcommon_dylan, 2);
      T12 = CONGRUENT_CALL2(T29, &T30);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      Ustream_ = T12;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      T22 = Ustream_;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      primitive_type_check(T22, &KLfile_streamGYstreams_internalsVio);
      streamF13 = T22;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
      CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
      sb_ = CONGRUENT_CALL1(streamF13);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
      if (sb_ != &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T32 = sb_;
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T33 = SLOT_VALUE_INITD(T32, 0);
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T34 = SLOT_VALUE_INITD(T32, 1);
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T35 = primitive_cast_integer_as_raw(T33);
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T36 = primitive_cast_integer_as_raw(T34);
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T37 = primitive_machine_word_less_thanQ(T35,T36);
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        if (T37 != &KPfalseVKi) {
          T43 = T32;
        } else {
          // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
          T38.vector_element_[0] = &KJwaitQ_;
          T38.vector_element_[1] = &KPtrueVKi;
          T38.vector_element_[2] = IKJbytes_;
          T38.vector_element_[3] = (D) 5;
          // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
          CONGRUENT_CALL_PROLOG(&Kdo_next_input_bufferYstreamsVio, 2);
          T39_0 = CONGRUENT_CALL2(streamF13, &T38);
          // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
          T42 = T39_0;
          T43 = T42;
        }
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T45 = T43;
      } else {
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T40.vector_element_[0] = &KJwaitQ_;
        T40.vector_element_[1] = &KPtrueVKi;
        T40.vector_element_[2] = IKJbytes_;
        T40.vector_element_[3] = (D) 5;
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        CONGRUENT_CALL_PROLOG(&Kdo_get_input_bufferYstreamsVio, 2);
        T41_0 = CONGRUENT_CALL2(streamF13, &T40);
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
        T44 = T41_0;
        T45 = T44;
      }
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
      KloopF6I(streamF13, T45);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:29
      CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
      T46 = CONGRUENT_CALL1(streamF13);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:29
      if (T46 == &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:29
        T47.vector_element_[0] = streamF13;
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:29
        KerrorVKdMM1I(&K5, &T47);
      }
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:29
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:29
      CONGRUENT_CALL_PROLOG(&Kdo_release_input_bufferYstreamsVio, 1);
      T48 = CONGRUENT_CALL1(streamF13);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      FALL_THROUGH_UNWIND(T48);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    T20 = Ustream_;
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    if (T20 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      T21 = Ustream_;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      T14 = CALL1(&Kstream_openQYstreams_protocolVcommon_dylan, T21);
      T15 = T14;
    } else {
      T15 = &KPfalseVKi;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    if (T15 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      T19 = Ustream_;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
      CALL1(&KcloseYcommon_extensionsVcommon_dylan, T19);
    }
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:21
    CONTINUE_UNWIND();
    T17 = T48;
  } else {
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
    T16 = &KPfalseVKi;
    T17 = T16;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:18
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:8
  MV_SET_COUNT(0);
  return(T17);
}

static D KloopF6I (D stream_, D buf_) {
  D bufF2;
  D T3;
  D T4;
  D T5;
  D T6;
  _KLsimple_object_vectorGVKd_1 T7 = {&KLsimple_object_vectorGVKdW, (D) 5};
  _KLsimple_object_vectorGVKd_4 T8 = {&KLsimple_object_vectorGVKdW, (D) 17};
  D T9_0;
  D T10;
  D T11;
  D bufF12T, bufF12;
  D T13;

  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
  bufF12T = buf_;
L0: ;
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
    bufF12 = bufF12T;
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
    primitive_type_check(bufF12, &KLobjectGVKd);
    T13 = bufF12;
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
    bufF2 = T13;
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:23
    if (bufF2 != &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:25
      T3 = CALL1(&Kbuffer_endYstreamsVio, bufF2);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:25
      CALL2(&Kbuffer_next_setterYstreamsVio, T3, bufF2);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      CONGRUENT_CALL_PROLOG(&Kstream_input_bufferYstreams_internalsVio, 1);
      T6 = CONGRUENT_CALL1(stream_);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      if (T6 == &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
        T7.vector_element_[0] = stream_;
        // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
        KerrorVKdMM1I(&K5, &T7);
      }
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      T8.vector_element_[0] = &KJwaitQ_;
      T8.vector_element_[1] = &KPtrueVKi;
      T8.vector_element_[2] = IKJbytes_;
      T8.vector_element_[3] = (D) 5;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      CONGRUENT_CALL_PROLOG(&Kdo_next_input_bufferYstreamsVio, 2);
      T9_0 = CONGRUENT_CALL2(stream_, &T8);
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      T10 = T9_0;
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
      bufF12T = T10;
      goto L0;
      T5 = T11;
    } else {
      // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:23
      T4 = &KPfalseVKi;
      MV_SET_ELT(0, &KPfalseVKi);
      MV_SET_COUNT(1);
      T5 = T4;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:23
    // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:26
  // /Users/bruce/Development/dylan/opendylan/sources/lib/jam/jam-header-scan.dylan:22
  return(T5);
}


/* SYSTEM INIT CODE */

void _Init_jam__X_jam_header_scan_for_system () {
  extern D KPresolve_symbolVKiI(D);
  {
    D T0;

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

/* USER INIT CODE */

void _Init_jam__X_jam_header_scan_for_user () {
  return;
}


/* eof */
