
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int def_getc(void)

{
  int iVar1;
  
  if (lex_parse_string == (char *)0x0) {
    iVar1 = fgetc((FILE *)the_file);
  }
  else {
    if (lex_parse_string_end <= lex_parse_string) {
      return -1;
    }
    iVar1 = (int)*lex_parse_string;
    lex_parse_string = lex_parse_string + 1;
  }
  if (iVar1 != 10) {
    return iVar1;
  }
  saw_newline = 1;
  return 10;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00058380(void)

{
  int iVar1;
  
  if (DAT_001d0130 == (char *)0x0) {
    iVar1 = fgetc(DAT_001d0128);
  }
  else {
    if (DAT_001d012c <= DAT_001d0130) {
      return -1;
    }
    iVar1 = (int)*DAT_001d0130;
    DAT_001d0130 = DAT_001d0130 + 1;
  }
  if (iVar1 != 10) {
    return iVar1;
  }
  DAT_001d0118 = 1;
  return 10;
}


PUSH EBX
CALL 0x00017b80
ADD EBX,0x175c7a
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x2130]
TEST EAX,EAX
JZ 0x000583d0
CMP EAX,dword ptr [EBX + 0x212c]
JNC 0x000583e8
LEA EDX,[EAX + 0x1]
MOVSX EAX,byte ptr [EAX]
MOV dword ptr [EBX + 0x2130],EDX
CMP EAX,0xa
JZ 0x000583c0
ADD ESP,0x8
POP EBX
RET
MOV dword ptr [EBX + 0x2118],0x1
ADD ESP,0x8
POP EBX
RET
SUB ESP,0xc
PUSH dword ptr [EBX + 0x2128]
CALL 0x00016920
ADD ESP,0x10
JMP 0x000583ad
MOV EAX,0xffffffff
JMP 0x000583b2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00058380(void)\n\n{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}\n\n" comment (function_definition "int FUN_00058380(void)\n\n{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}" primitive_type (function_declarator "FUN_00058380(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" if (parenthesized_expression "(DAT_001d0130 == (char *)0x0)" ( (binary_expression "DAT_001d0130 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fgetc(DAT_001d0128);\n  }" { (expression_statement "iVar1 = fgetc(DAT_001d0128);" (assignment_expression "iVar1 = fgetc(DAT_001d0128)" identifier = (call_expression "fgetc(DAT_001d0128)" identifier (argument_list "(DAT_001d0128)" ( identifier )))) ;) }) (else_clause "else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" else (compound_statement "{\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" { (if_statement "if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }" if (parenthesized_expression "(DAT_001d012c <= DAT_001d0130)" ( (binary_expression "DAT_001d012c <= DAT_001d0130" identifier <= identifier) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = (int)*DAT_001d0130;" (assignment_expression "iVar1 = (int)*DAT_001d0130" identifier = (cast_expression "(int)*DAT_001d0130" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*DAT_001d0130" * identifier))) ;) (expression_statement "DAT_001d0130 = DAT_001d0130 + 1;" (assignment_expression "DAT_001d0130 = DAT_001d0130 + 1" identifier = (binary_expression "DAT_001d0130 + 1" identifier + number_literal)) ;) }))) (if_statement "if (iVar1 != 10) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 10)" ( (binary_expression "iVar1 != 10" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "DAT_001d0118 = 1;" (assignment_expression "DAT_001d0118 = 1" identifier = number_literal) ;) (return_statement "return 10;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint def_getc(void)\n\n{\n  int iVar1;\n  \n  if (lex_parse_string == (char *)0x0) {\n    iVar1 = fgetc((FILE *)the_file);\n  }\n  else {\n    if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }\n    iVar1 = (int)*lex_parse_string;\n    lex_parse_string = lex_parse_string + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  saw_newline = 1;\n  return 10;\n}\n\n" comment comment (function_definition "int def_getc(void)\n\n{\n  int iVar1;\n  \n  if (lex_parse_string == (char *)0x0) {\n    iVar1 = fgetc((FILE *)the_file);\n  }\n  else {\n    if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }\n    iVar1 = (int)*lex_parse_string;\n    lex_parse_string = lex_parse_string + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  saw_newline = 1;\n  return 10;\n}" primitive_type (function_declarator "def_getc(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (lex_parse_string == (char *)0x0) {\n    iVar1 = fgetc((FILE *)the_file);\n  }\n  else {\n    if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }\n    iVar1 = (int)*lex_parse_string;\n    lex_parse_string = lex_parse_string + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  saw_newline = 1;\n  return 10;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (lex_parse_string == (char *)0x0) {\n    iVar1 = fgetc((FILE *)the_file);\n  }\n  else {\n    if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }\n    iVar1 = (int)*lex_parse_string;\n    lex_parse_string = lex_parse_string + 1;\n  }" if (parenthesized_expression "(lex_parse_string == (char *)0x0)" ( (binary_expression "lex_parse_string == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fgetc((FILE *)the_file);\n  }" { (expression_statement "iVar1 = fgetc((FILE *)the_file);" (assignment_expression "iVar1 = fgetc((FILE *)the_file)" identifier = (call_expression "fgetc((FILE *)the_file)" identifier (argument_list "((FILE *)the_file)" ( (cast_expression "(FILE *)the_file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) }) (else_clause "else {\n    if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }\n    iVar1 = (int)*lex_parse_string;\n    lex_parse_string = lex_parse_string + 1;\n  }" else (compound_statement "{\n    if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }\n    iVar1 = (int)*lex_parse_string;\n    lex_parse_string = lex_parse_string + 1;\n  }" { (if_statement "if (lex_parse_string_end <= lex_parse_string) {\n      return -1;\n    }" if (parenthesized_expression "(lex_parse_string_end <= lex_parse_string)" ( (binary_expression "lex_parse_string_end <= lex_parse_string" identifier <= identifier) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = (int)*lex_parse_string;" (assignment_expression "iVar1 = (int)*lex_parse_string" identifier = (cast_expression "(int)*lex_parse_string" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*lex_parse_string" * identifier))) ;) (expression_statement "lex_parse_string = lex_parse_string + 1;" (assignment_expression "lex_parse_string = lex_parse_string + 1" identifier = (binary_expression "lex_parse_string + 1" identifier + number_literal)) ;) }))) (if_statement "if (iVar1 != 10) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 10)" ( (binary_expression "iVar1 != 10" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "saw_newline = 1;" (assignment_expression "saw_newline = 1" identifier = number_literal) ;) (return_statement "return 10;" return number_literal ;) })))
(translation_unit "int FUN_00058380(void)\n\n{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}\n\n" (function_definition "int FUN_00058380(void)\n\n{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}" primitive_type (function_declarator "FUN_00058380(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" if (parenthesized_expression "(DAT_001d0130 == (char *)0x0)" ( (binary_expression "DAT_001d0130 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fgetc(DAT_001d0128);\n  }" { (expression_statement "iVar1 = fgetc(DAT_001d0128);" (assignment_expression "iVar1 = fgetc(DAT_001d0128)" identifier = (call_expression "fgetc(DAT_001d0128)" identifier (argument_list "(DAT_001d0128)" ( identifier )))) ;) }) (else_clause "else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" else (compound_statement "{\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" { (if_statement "if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }" if (parenthesized_expression "(DAT_001d012c <= DAT_001d0130)" ( (binary_expression "DAT_001d012c <= DAT_001d0130" identifier <= identifier) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "iVar1 = (int)*DAT_001d0130;" (assignment_expression "iVar1 = (int)*DAT_001d0130" identifier = (cast_expression "(int)*DAT_001d0130" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*DAT_001d0130" * identifier))) ;) (expression_statement "DAT_001d0130 = DAT_001d0130 + 1;" (assignment_expression "DAT_001d0130 = DAT_001d0130 + 1" identifier = (binary_expression "DAT_001d0130 + 1" identifier + number_literal)) ;) }))) (if_statement "if (iVar1 != 10) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 10)" ( (binary_expression "iVar1 != 10" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "DAT_001d0118 = 1;" (assignment_expression "DAT_001d0118 = 1" identifier = number_literal) ;) (return_statement "return 10;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00058380(void)\n\n{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}" (primitive_type "int") (function_declarator "FUN_00058380(void)" (identifier "FUN_00058380") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }\n  if (iVar1 != 10) {\n    return iVar1;\n  }\n  DAT_001d0118 = 1;\n  return 10;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (DAT_001d0130 == (char *)0x0) {\n    iVar1 = fgetc(DAT_001d0128);\n  }\n  else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" (if "if") (parenthesized_expression "(DAT_001d0130 == (char *)0x0)" (( "(") (binary_expression "DAT_001d0130 == (char *)0x0" (identifier "DAT_001d0130") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = fgetc(DAT_001d0128);\n  }" ({ "{") (expression_statement "iVar1 = fgetc(DAT_001d0128);" (assignment_expression "iVar1 = fgetc(DAT_001d0128)" (identifier "iVar1") (= "=") (call_expression "fgetc(DAT_001d0128)" (identifier "fgetc") (argument_list "(DAT_001d0128)" (( "(") (identifier "DAT_001d0128") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" (else "else") (compound_statement "{\n    if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }\n    iVar1 = (int)*DAT_001d0130;\n    DAT_001d0130 = DAT_001d0130 + 1;\n  }" ({ "{") (if_statement "if (DAT_001d012c <= DAT_001d0130) {\n      return -1;\n    }" (if "if") (parenthesized_expression "(DAT_001d012c <= DAT_001d0130)" (( "(") (binary_expression "DAT_001d012c <= DAT_001d0130" (identifier "DAT_001d012c") (<= "<=") (identifier "DAT_001d0130")) () ")")) (compound_statement "{\n      return -1;\n    }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "iVar1 = (int)*DAT_001d0130;" (assignment_expression "iVar1 = (int)*DAT_001d0130" (identifier "iVar1") (= "=") (cast_expression "(int)*DAT_001d0130" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*DAT_001d0130" (* "*") (identifier "DAT_001d0130")))) (; ";")) (expression_statement "DAT_001d0130 = DAT_001d0130 + 1;" (assignment_expression "DAT_001d0130 = DAT_001d0130 + 1" (identifier "DAT_001d0130") (= "=") (binary_expression "DAT_001d0130 + 1" (identifier "DAT_001d0130") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 10) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 10)" (( "(") (binary_expression "iVar1 != 10" (identifier "iVar1") (!= "!=") (number_literal "10")) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "DAT_001d0118 = 1;" (assignment_expression "DAT_001d0118 = 1" (identifier "DAT_001d0118") (= "=") (number_literal "1")) (; ";")) (return_statement "return 10;" (return "return") (number_literal "10") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(void)

{
  int var_4;
  
  if (var_1 == (char *)0x0) {
    var_4 = var_2((type_1 *)the_file);
  }
  else {
    if (var_3 <= var_1) {
      return -1;
    }
    var_4 = (int)*var_1;
    var_1 = var_1 + 1;
  }
  if (var_4 != 10) {
    return var_4;
  }
  saw_newline = 1;
  return 10;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(void)

{
  int iVar1;
  
  if (DAT_001d0130 == (char *)0x0) {
    iVar1 = fgetc(DAT_001d0128);
  }
  else {
    if (DAT_001d012c <= DAT_001d0130) {
      return -1;
    }
    iVar1 = (int)*DAT_001d0130;
    DAT_001d0130 = DAT_001d0130 + 1;
  }
  if (iVar1 != 10) {
    return iVar1;
  }
  DAT_001d0118 = 1;
  return 10;
}

