
POSITION curr_byte(int where)

{
  long lVar1;
  POSITION PVar2;
  
  lVar1 = position(where);
  if ((lVar1 == -1) && (-1 < where)) {
    if (where < sc_height + -1) {
      do {
        where = where + 1;
        lVar1 = position(where);
        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;
      } while (where < sc_height + -1);
    }
  }
  else {
LAB_001161e9:
    if (lVar1 != -1) {
      return lVar1;
    }
  }
  PVar2 = ch_length();
  return PVar2;
}



void FUN_00116193(int param_1)

{
  long lVar1;
  
  lVar1 = FUN_00115df3();
  if ((lVar1 == -1) && (-1 < param_1)) {
    if (param_1 < DAT_0012d990 + -1) {
      do {
        param_1 = param_1 + 1;
        lVar1 = FUN_00115df3(param_1);
        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;
      } while (param_1 < DAT_0012d990 + -1);
    }
  }
  else {
LAB_001161e9:
    if (lVar1 != -1) {
      return;
    }
  }
  FUN_00106340();
  return;
}


PUSH RBX
MOV EBX,EDI
MOV EAX,0x0
CALL 0x00115df3
CMP RAX,-0x1
JNZ 0x001161e9
TEST EBX,EBX
JS 0x001161e9
MOV EAX,dword ptr [0x0012d990]
SUB EAX,0x1
CMP EBX,EAX
JGE 0x001161dd
ADD EBX,0x1
MOV EDI,EBX
MOV EAX,0x0
CALL 0x00115df3
CMP RAX,-0x1
JNZ 0x001161e9
TEST EBX,EBX
JS 0x001161e9
MOV EAX,dword ptr [0x0012d990]
SUB EAX,0x1
CMP EAX,EBX
JG 0x001161b7
MOV EAX,0x0
CALL 0x00106340
JMP 0x001161ef
CMP RAX,-0x1
JZ 0x001161dd
POP RBX
RET
(translation_unit "void FUN_00116193(int param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}\n\n" (function_definition "void FUN_00116193(int param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}" primitive_type (function_declarator "FUN_00116193(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_00115df3();" (assignment_expression "lVar1 = FUN_00115df3()" identifier = (call_expression "FUN_00115df3()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" if (parenthesized_expression "((lVar1 == -1) && (-1 < param_1))" ( (binary_expression "(lVar1 == -1) && (-1 < param_1)" (parenthesized_expression "(lVar1 == -1)" ( (binary_expression "lVar1 == -1" identifier == number_literal) )) && (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) ))) )) (compound_statement "{\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }" { (if_statement "if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }" if (parenthesized_expression "(param_1 < DAT_0012d990 + -1)" ( (binary_expression "param_1 < DAT_0012d990 + -1" identifier < (binary_expression "DAT_0012d990 + -1" identifier + number_literal)) )) (compound_statement "{\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }" { (do_statement "do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);" do (compound_statement "{\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "lVar1 = FUN_00115df3(param_1);" (assignment_expression "lVar1 = FUN_00115df3(param_1)" identifier = (call_expression "FUN_00115df3(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;" if (parenthesized_expression "((lVar1 != -1) || (param_1 < 0))" ( (binary_expression "(lVar1 != -1) || (param_1 < 0)" (parenthesized_expression "(lVar1 != -1)" ( (binary_expression "lVar1 != -1" identifier != number_literal) )) || (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) ))) )) (goto_statement "goto LAB_001161e9;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_1 < DAT_0012d990 + -1)" ( (binary_expression "param_1 < DAT_0012d990 + -1" identifier < (binary_expression "DAT_0012d990 + -1" identifier + number_literal)) )) ;) })) }) (else_clause "else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" else (compound_statement "{\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" { (labeled_statement "LAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }" statement_identifier : (if_statement "if (lVar1 != -1) {\n      return;\n    }" if (parenthesized_expression "(lVar1 != -1)" ( (binary_expression "lVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) }))) }))) (expression_statement "FUN_00106340();" (call_expression "FUN_00106340()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "POSITION curr_byte(int where)\n\n{\n  long lVar1;\n  POSITION PVar2;\n  \n  lVar1 = position(where);\n  if ((lVar1 == -1) && (-1 < where)) {\n    if (where < sc_height + -1) {\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }\n  }\n  PVar2 = ch_length();\n  return PVar2;\n}\n\n" (function_definition "POSITION curr_byte(int where)\n\n{\n  long lVar1;\n  POSITION PVar2;\n  \n  lVar1 = position(where);\n  if ((lVar1 == -1) && (-1 < where)) {\n    if (where < sc_height + -1) {\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }\n  }\n  PVar2 = ch_length();\n  return PVar2;\n}" type_identifier (function_declarator "curr_byte(int where)" identifier (parameter_list "(int where)" ( (parameter_declaration "int where" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  POSITION PVar2;\n  \n  lVar1 = position(where);\n  if ((lVar1 == -1) && (-1 < where)) {\n    if (where < sc_height + -1) {\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }\n  }\n  PVar2 = ch_length();\n  return PVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "POSITION PVar2;" type_identifier identifier ;) (expression_statement "lVar1 = position(where);" (assignment_expression "lVar1 = position(where)" identifier = (call_expression "position(where)" identifier (argument_list "(where)" ( identifier )))) ;) (if_statement "if ((lVar1 == -1) && (-1 < where)) {\n    if (where < sc_height + -1) {\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }\n  }" if (parenthesized_expression "((lVar1 == -1) && (-1 < where))" ( (binary_expression "(lVar1 == -1) && (-1 < where)" (parenthesized_expression "(lVar1 == -1)" ( (binary_expression "lVar1 == -1" identifier == number_literal) )) && (parenthesized_expression "(-1 < where)" ( (binary_expression "-1 < where" number_literal < identifier) ))) )) (compound_statement "{\n    if (where < sc_height + -1) {\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }\n  }" { (if_statement "if (where < sc_height + -1) {\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }" if (parenthesized_expression "(where < sc_height + -1)" ( (binary_expression "where < sc_height + -1" identifier < (binary_expression "sc_height + -1" identifier + number_literal)) )) (compound_statement "{\n      do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);\n    }" { (do_statement "do {\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      } while (where < sc_height + -1);" do (compound_statement "{\n        where = where + 1;\n        lVar1 = position(where);\n        if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;\n      }" { (expression_statement "where = where + 1;" (assignment_expression "where = where + 1" identifier = (binary_expression "where + 1" identifier + number_literal)) ;) (expression_statement "lVar1 = position(where);" (assignment_expression "lVar1 = position(where)" identifier = (call_expression "position(where)" identifier (argument_list "(where)" ( identifier )))) ;) (if_statement "if ((lVar1 != -1) || (where < 0)) goto LAB_001161e9;" if (parenthesized_expression "((lVar1 != -1) || (where < 0))" ( (binary_expression "(lVar1 != -1) || (where < 0)" (parenthesized_expression "(lVar1 != -1)" ( (binary_expression "lVar1 != -1" identifier != number_literal) )) || (parenthesized_expression "(where < 0)" ( (binary_expression "where < 0" identifier < number_literal) ))) )) (goto_statement "goto LAB_001161e9;" goto statement_identifier ;)) }) while (parenthesized_expression "(where < sc_height + -1)" ( (binary_expression "where < sc_height + -1" identifier < (binary_expression "sc_height + -1" identifier + number_literal)) )) ;) })) }) (else_clause "else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }\n  }" else (compound_statement "{\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }\n  }" { (labeled_statement "LAB_001161e9:\n    if (lVar1 != -1) {\n      return lVar1;\n    }" statement_identifier : (if_statement "if (lVar1 != -1) {\n      return lVar1;\n    }" if (parenthesized_expression "(lVar1 != -1)" ( (binary_expression "lVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      return lVar1;\n    }" { (return_statement "return lVar1;" return identifier ;) }))) }))) (expression_statement "PVar2 = ch_length();" (assignment_expression "PVar2 = ch_length()" identifier = (call_expression "ch_length()" identifier (argument_list "()" ( )))) ;) (return_statement "return PVar2;" return identifier ;) })))
(translation_unit "void FUN_00116193(int param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}\n\n" (function_definition "void FUN_00116193(int param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}" primitive_type (function_declarator "FUN_00116193(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_00115df3();" (assignment_expression "lVar1 = FUN_00115df3()" identifier = (call_expression "FUN_00115df3()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" if (parenthesized_expression "((lVar1 == -1) && (-1 < param_1))" ( (binary_expression "(lVar1 == -1) && (-1 < param_1)" (parenthesized_expression "(lVar1 == -1)" ( (binary_expression "lVar1 == -1" identifier == number_literal) )) && (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) ))) )) (compound_statement "{\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }" { (if_statement "if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }" if (parenthesized_expression "(param_1 < DAT_0012d990 + -1)" ( (binary_expression "param_1 < DAT_0012d990 + -1" identifier < (binary_expression "DAT_0012d990 + -1" identifier + number_literal)) )) (compound_statement "{\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }" { (do_statement "do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);" do (compound_statement "{\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "lVar1 = FUN_00115df3(param_1);" (assignment_expression "lVar1 = FUN_00115df3(param_1)" identifier = (call_expression "FUN_00115df3(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;" if (parenthesized_expression "((lVar1 != -1) || (param_1 < 0))" ( (binary_expression "(lVar1 != -1) || (param_1 < 0)" (parenthesized_expression "(lVar1 != -1)" ( (binary_expression "lVar1 != -1" identifier != number_literal) )) || (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) ))) )) (goto_statement "goto LAB_001161e9;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_1 < DAT_0012d990 + -1)" ( (binary_expression "param_1 < DAT_0012d990 + -1" identifier < (binary_expression "DAT_0012d990 + -1" identifier + number_literal)) )) ;) })) }) (else_clause "else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" else (compound_statement "{\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" { (labeled_statement "LAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }" statement_identifier : (if_statement "if (lVar1 != -1) {\n      return;\n    }" if (parenthesized_expression "(lVar1 != -1)" ( (binary_expression "lVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) }))) }))) (expression_statement "FUN_00106340();" (call_expression "FUN_00106340()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) }))) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00116193(int param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00116193(int param_1)" (identifier "FUN_00116193") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_00115df3();\n  if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }\n  FUN_00106340();\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_00115df3();" (assignment_expression "lVar1 = FUN_00115df3()" (identifier "lVar1") (= "=") (call_expression "FUN_00115df3()" (identifier "FUN_00115df3") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((lVar1 == -1) && (-1 < param_1)) {\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }\n  else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((lVar1 == -1) && (-1 < param_1))" (( "(") (binary_expression "(lVar1 == -1) && (-1 < param_1)" (parenthesized_expression "(lVar1 == -1)" (( "(") (binary_expression "lVar1 == -1" (identifier "lVar1") (== "==") (number_literal "-1")) () ")")) (&& "&&") (parenthesized_expression "(-1 < param_1)" (( "(") (binary_expression "-1 < param_1" (number_literal "-1") (< "<") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n    if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }\n  }" ({ "{") (if_statement "if (param_1 < DAT_0012d990 + -1) {\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }" (if "if") (parenthesized_expression "(param_1 < DAT_0012d990 + -1)" (( "(") (binary_expression "param_1 < DAT_0012d990 + -1" (identifier "param_1") (< "<") (binary_expression "DAT_0012d990 + -1" (identifier "DAT_0012d990") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n      do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);\n    }" ({ "{") (do_statement "do {\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      } while (param_1 < DAT_0012d990 + -1);" (do "do") (compound_statement "{\n        param_1 = param_1 + 1;\n        lVar1 = FUN_00115df3(param_1);\n        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;\n      }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar1 = FUN_00115df3(param_1);" (assignment_expression "lVar1 = FUN_00115df3(param_1)" (identifier "lVar1") (= "=") (call_expression "FUN_00115df3(param_1)" (identifier "FUN_00115df3") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;" (if "if") (parenthesized_expression "((lVar1 != -1) || (param_1 < 0))" (( "(") (binary_expression "(lVar1 != -1) || (param_1 < 0)" (parenthesized_expression "(lVar1 != -1)" (( "(") (binary_expression "lVar1 != -1" (identifier "lVar1") (!= "!=") (number_literal "-1")) () ")")) (|| "||") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_001161e9;" (goto "goto") (statement_identifier "LAB_001161e9") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(param_1 < DAT_0012d990 + -1)" (( "(") (binary_expression "param_1 < DAT_0012d990 + -1" (identifier "param_1") (< "<") (binary_expression "DAT_0012d990 + -1" (identifier "DAT_0012d990") (+ "+") (number_literal "-1"))) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" (else "else") (compound_statement "{\nLAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }\n  }" ({ "{") (labeled_statement "LAB_001161e9:\n    if (lVar1 != -1) {\n      return;\n    }" (statement_identifier "LAB_001161e9") (: ":") (if_statement "if (lVar1 != -1) {\n      return;\n    }" (if "if") (parenthesized_expression "(lVar1 != -1)" (( "(") (binary_expression "lVar1 != -1" (identifier "lVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (} "}")))) (expression_statement "FUN_00106340();" (call_expression "FUN_00106340()" (identifier "FUN_00106340") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 function_1(int var_3)

{
  long var_2;
  type_1 PVar2;
  
  var_2 = var_1(var_3);
  if ((var_2 == -1) && (-1 < var_3)) {
    if (var_3 < var_4 + -1) {
      do {
        var_3 = var_3 + 1;
        var_2 = var_1(var_3);
        if ((var_2 != -1) || (var_3 < 0)) goto LAB_001161e9;
      } while (var_3 < var_4 + -1);
    }
  }
  else {
LAB_001161e9:
    if (var_2 != -1) {
      return var_2;
    }
  }
  PVar2 = var_5();
  return PVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int param_1)

{
  long lVar1;
  
  lVar1 = FUN_00115df3();
  if ((lVar1 == -1) && (-1 < param_1)) {
    if (param_1 < DAT_0012d990 + -1) {
      do {
        param_1 = param_1 + 1;
        lVar1 = FUN_00115df3(param_1);
        if ((lVar1 != -1) || (param_1 < 0)) goto LAB_001161e9;
      } while (param_1 < DAT_0012d990 + -1);
    }
  }
  else {
LAB_001161e9:
    if (lVar1 != -1) {
      return;
    }
  }
  FUN_00106340();
  return;
}

