
int __regparm3 get_line_end(char *data,int len)

{
  int iVar1;
  int iVar2;
  
  if (0 < len) {
    iVar2 = 0;
    do {
      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {
        iVar2 = iVar1;
        if (len <= iVar1) {
          return -1;
        }
      }
      if (iVar1 < 3) {
        return iVar1;
      }
      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {
        return iVar1;
      }
      iVar2 = iVar2 + 3;
    } while (iVar2 < len);
  }
  return -1;
}



int __regparm3 FUN_0001e850(int param_1,int param_2)

{
  int iVar1;
  char cVar2;
  int iVar3;
  
  if (0 < param_2) {
    iVar3 = 0;
    do {
      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {
        iVar3 = iVar1;
        if (param_2 <= iVar1) {
          return -1;
        }
      }
      if (iVar1 < 3) {
        return iVar1;
      }
      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&
         (cVar2 != '\t')) {
        return iVar1;
      }
      iVar3 = iVar3 + 3;
    } while (iVar3 < param_2);
  }
  return -1;
}


PUSH EDI
PUSH ESI
PUSH EBX
TEST EDX,EDX
JLE 0x0001e893
MOV EDI,EAX
XOR ECX,ECX
JMP 0x0001e866
MOV ECX,EBX
CMP EDX,EBX
JLE 0x0001e893
CMP byte ptr [EDI + ECX*0x1],0xa
LEA EBX,[ECX + 0x1]
JNZ 0x0001e860
CMP EBX,0x2
JLE 0x0001e898
LEA ESI,[ECX + 0x2]
CMP ESI,EDX
JGE 0x0001e88a
MOVZX ESI,byte ptr [EDI + ECX*0x1 + 0x2]
MOV EAX,ESI
CMP AL,0x20
JZ 0x0001e88a
CMP AL,0x9
JNZ 0x0001e898
LEA EBX,[ECX + 0x3]
MOV ECX,EBX
CMP EDX,EBX
JG 0x0001e866
MOV EBX,0xffffffff
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "int __regparm3 FUN_0001e850(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}\n\n" (function_definition "int __regparm3 FUN_0001e850(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e850(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);" do (compound_statement "{\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    }" { (while_statement "while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }" while (parenthesized_expression "(iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n')" ( (comma_expression "iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n'" (assignment_expression "iVar1 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "*(char *)(param_1 + iVar3) != '\n'" (pointer_expression "*(char *)(param_1 + iVar3)" * (cast_expression "(char *)(param_1 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar3)" ( (binary_expression "param_1 + iVar3" identifier + identifier) )))) != (char_literal "'\n'" ' escape_sequence '))) )) (compound_statement "{\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (if_statement "if (param_2 <= iVar1) {\n          return -1;\n        }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) })) (if_statement "if (iVar1 < 3) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 < 3)" ( (binary_expression "iVar1 < 3" identifier < number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }" if (parenthesized_expression "(((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t'))" ( (binary_expression "((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')" (parenthesized_expression "((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' '))" ( (binary_expression "(iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')" (parenthesized_expression "(iVar3 + 2 < param_2)" ( (binary_expression "iVar3 + 2 < param_2" (binary_expression "iVar3 + 2" identifier + number_literal) < identifier) )) && (parenthesized_expression "(cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')" ( (comma_expression "cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' '" (assignment_expression "cVar2 = *(char *)(param_1 + 2 + iVar3)" identifier = (pointer_expression "*(char *)(param_1 + 2 + iVar3)" * (cast_expression "(char *)(param_1 + 2 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2 + iVar3)" ( (binary_expression "param_1 + 2 + iVar3" (binary_expression "param_1 + 2" identifier + number_literal) + identifier) ))))) , (binary_expression "cVar2 != ' '" identifier != (char_literal "' '" ' character '))) ))) )) && (parenthesized_expression "(cVar2 != '\t')" ( (binary_expression "cVar2 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar3 = iVar3 + 3;" (assignment_expression "iVar3 = iVar3 + 3" identifier = (binary_expression "iVar3 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < param_2)" ( (binary_expression "iVar3 < param_2" identifier < identifier) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int __regparm3 get_line_end(char *data,int len)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < len) {\n    iVar2 = 0;\n    do {\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    } while (iVar2 < len);\n  }\n  return -1;\n}\n\n" (function_definition "int __regparm3 get_line_end(char *data,int len)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < len) {\n    iVar2 = 0;\n    do {\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    } while (iVar2 < len);\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "get_line_end(char *data,int len)" identifier (parameter_list "(char *data,int len)" ( (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < len) {\n    iVar2 = 0;\n    do {\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    } while (iVar2 < len);\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (0 < len) {\n    iVar2 = 0;\n    do {\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    } while (iVar2 < len);\n  }" if (parenthesized_expression "(0 < len)" ( (binary_expression "0 < len" number_literal < identifier) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    } while (iVar2 < len);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    } while (iVar2 < len);" do (compound_statement "{\n      while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }\n      iVar2 = iVar2 + 3;\n    }" { (while_statement "while (iVar1 = iVar2 + 1, data[iVar2] != '\n') {\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }" while (parenthesized_expression "(iVar1 = iVar2 + 1, data[iVar2] != '\n')" ( (comma_expression "iVar1 = iVar2 + 1, data[iVar2] != '\n'" (assignment_expression "iVar1 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) , (binary_expression "data[iVar2] != '\n'" (subscript_expression "data[iVar2]" identifier [ identifier ]) != (char_literal "'\n'" ' escape_sequence '))) )) (compound_statement "{\n        iVar2 = iVar1;\n        if (len <= iVar1) {\n          return -1;\n        }\n      }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (if_statement "if (len <= iVar1) {\n          return -1;\n        }" if (parenthesized_expression "(len <= iVar1)" ( (binary_expression "len <= iVar1" identifier <= identifier) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) })) (if_statement "if (iVar1 < 3) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 < 3)" ( (binary_expression "iVar1 < 3" identifier < number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')) {\n        return iVar1;\n      }" if (parenthesized_expression "(((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t'))" ( (binary_expression "((iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')) && (data[iVar2 + 2] != '\t')" (parenthesized_expression "((iVar2 + 2 < len) && (data[iVar2 + 2] != ' '))" ( (binary_expression "(iVar2 + 2 < len) && (data[iVar2 + 2] != ' ')" (parenthesized_expression "(iVar2 + 2 < len)" ( (binary_expression "iVar2 + 2 < len" (binary_expression "iVar2 + 2" identifier + number_literal) < identifier) )) && (parenthesized_expression "(data[iVar2 + 2] != ' ')" ( (binary_expression "data[iVar2 + 2] != ' '" (subscript_expression "data[iVar2 + 2]" identifier [ (binary_expression "iVar2 + 2" identifier + number_literal) ]) != (char_literal "' '" ' character ')) ))) )) && (parenthesized_expression "(data[iVar2 + 2] != '\t')" ( (binary_expression "data[iVar2 + 2] != '\t'" (subscript_expression "data[iVar2 + 2]" identifier [ (binary_expression "iVar2 + 2" identifier + number_literal) ]) != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar2 = iVar2 + 3;" (assignment_expression "iVar2 = iVar2 + 3" identifier = (binary_expression "iVar2 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < len)" ( (binary_expression "iVar2 < len" identifier < identifier) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_0001e850(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}\n\n" (function_definition "int __regparm3 FUN_0001e850(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e850(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);" do (compound_statement "{\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    }" { (while_statement "while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }" while (parenthesized_expression "(iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n')" ( (comma_expression "iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n'" (assignment_expression "iVar1 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "*(char *)(param_1 + iVar3) != '\n'" (pointer_expression "*(char *)(param_1 + iVar3)" * (cast_expression "(char *)(param_1 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar3)" ( (binary_expression "param_1 + iVar3" identifier + identifier) )))) != (char_literal "'\n'" ' escape_sequence '))) )) (compound_statement "{\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (if_statement "if (param_2 <= iVar1) {\n          return -1;\n        }" if (parenthesized_expression "(param_2 <= iVar1)" ( (binary_expression "param_2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) })) (if_statement "if (iVar1 < 3) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 < 3)" ( (binary_expression "iVar1 < 3" identifier < number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }" if (parenthesized_expression "(((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t'))" ( (binary_expression "((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')" (parenthesized_expression "((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' '))" ( (binary_expression "(iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')" (parenthesized_expression "(iVar3 + 2 < param_2)" ( (binary_expression "iVar3 + 2 < param_2" (binary_expression "iVar3 + 2" identifier + number_literal) < identifier) )) && (parenthesized_expression "(cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')" ( (comma_expression "cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' '" (assignment_expression "cVar2 = *(char *)(param_1 + 2 + iVar3)" identifier = (pointer_expression "*(char *)(param_1 + 2 + iVar3)" * (cast_expression "(char *)(param_1 + 2 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2 + iVar3)" ( (binary_expression "param_1 + 2 + iVar3" (binary_expression "param_1 + 2" identifier + number_literal) + identifier) ))))) , (binary_expression "cVar2 != ' '" identifier != (char_literal "' '" ' character '))) ))) )) && (parenthesized_expression "(cVar2 != '\t')" ( (binary_expression "cVar2 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar3 = iVar3 + 3;" (assignment_expression "iVar3 = iVar3 + 3" identifier = (binary_expression "iVar3 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < param_2)" ( (binary_expression "iVar3 < param_2" identifier < identifier) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != (char_literal ' escape_sequence '))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) , (binary_expression IDENT != (char_literal ' character '))) ))) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_0001e850(int param_1,int param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e850(int param_1,int param_2)" (identifier "FUN_0001e850") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  \n  if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (0 < param_2) {\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    } while (iVar3 < param_2);" (do "do") (compound_statement "{\n      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }\n      if (iVar1 < 3) {\n        return iVar1;\n      }\n      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }\n      iVar3 = iVar3 + 3;\n    }" ({ "{") (while_statement "while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }" (while "while") (parenthesized_expression "(iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n')" (( "(") (comma_expression "iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n'" (assignment_expression "iVar1 = iVar3 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (, ",") (binary_expression "*(char *)(param_1 + iVar3) != '\n'" (pointer_expression "*(char *)(param_1 + iVar3)" (* "*") (cast_expression "(char *)(param_1 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar3)" (( "(") (binary_expression "param_1 + iVar3" (identifier "param_1") (+ "+") (identifier "iVar3")) () ")")))) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'")))) () ")")) (compound_statement "{\n        iVar3 = iVar1;\n        if (param_2 <= iVar1) {\n          return -1;\n        }\n      }" ({ "{") (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (param_2 <= iVar1) {\n          return -1;\n        }" (if "if") (parenthesized_expression "(param_2 <= iVar1)" (( "(") (binary_expression "param_2 <= iVar1" (identifier "param_2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n          return -1;\n        }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar1 < 3) {\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 < 3)" (( "(") (binary_expression "iVar1 < 3" (identifier "iVar1") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        return iVar1;\n      }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (if_statement "if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')) {\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t'))" (( "(") (binary_expression "((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&\n         (cVar2 != '\t')" (parenthesized_expression "((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' '))" (( "(") (binary_expression "(iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')" (parenthesized_expression "(iVar3 + 2 < param_2)" (( "(") (binary_expression "iVar3 + 2 < param_2" (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2")) (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')" (( "(") (comma_expression "cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' '" (assignment_expression "cVar2 = *(char *)(param_1 + 2 + iVar3)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_1 + 2 + iVar3)" (* "*") (cast_expression "(char *)(param_1 + 2 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2 + iVar3)" (( "(") (binary_expression "param_1 + 2 + iVar3" (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (+ "+") (identifier "iVar3")) () ")"))))) (, ",") (binary_expression "cVar2 != ' '" (identifier "cVar2") (!= "!=") (char_literal "' '" (' "'") (character " ") (' "'")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(cVar2 != '\t')" (( "(") (binary_expression "cVar2 != '\t'" (identifier "cVar2") (!= "!=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        return iVar1;\n      }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + 3;" (assignment_expression "iVar3 = iVar3 + 3" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 3" (identifier "iVar3") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < param_2)" (( "(") (binary_expression "iVar3 < param_2" (identifier "iVar3") (< "<") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

int __regparm3 function_1(char *data,int var_1)

{
  int var_3;
  int var_2;
  
  if (0 < var_1) {
    var_2 = 0;
    do {
      while (var_3 = var_2 + 1, data[var_2] != '\n') {
        var_2 = var_3;
        if (var_1 <= var_3) {
          return -1;
        }
      }
      if (var_3 < 3) {
        return var_3;
      }
      if (((var_2 + 2 < var_1) && (data[var_2 + 2] != ' ')) && (data[var_2 + 2] != '\t')) {
        return var_3;
      }
      var_2 = var_2 + 3;
    } while (var_2 < var_1);
  }
  return -1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (char_literal (escape_sequence))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) right: (binary_expression left: (identifier) right: (char_literal (character))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement (number_literal)))))

int __regparm3 MASKED(int param_1,int param_2)

{
  int iVar1;
  char cVar2;
  int iVar3;
  
  if (0 < param_2) {
    iVar3 = 0;
    do {
      while (iVar1 = iVar3 + 1, *(char *)(param_1 + iVar3) != '\n') {
        iVar3 = iVar1;
        if (param_2 <= iVar1) {
          return -1;
        }
      }
      if (iVar1 < 3) {
        return iVar1;
      }
      if (((iVar3 + 2 < param_2) && (cVar2 = *(char *)(param_1 + 2 + iVar3), cVar2 != ' ')) &&
         (cVar2 != '\t')) {
        return iVar1;
      }
      iVar3 = iVar3 + 3;
    } while (iVar3 < param_2);
  }
  return -1;
}

