
int get_line_sb(sb *line,int in_macro)

{
  int iVar1;
  char *pcVar2;
  int in_ECX;
  
  if (input_line_pointer[-1] == '\n') {
    bump_line_counters();
  }
  if ((input_line_pointer < buffer_limit) ||
     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)) {
    pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);
    sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);
    input_line_pointer = pcVar2 + 1;
    iVar1 = (int)*pcVar2;
  }
  else {
    iVar1 = 0;
  }
  return iVar1;
}



int FUN_0011ec40(undefined8 param_1,undefined4 param_2)

{
  int iVar1;
  char *pcVar2;
  
  if (DAT_001e4780[-1] == '\n') {
    FUN_001185c0();
  }
  if ((DAT_001e4780 < DAT_001e3740) ||
     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {
    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);
    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);
    DAT_001e4780 = pcVar2 + 1;
    iVar1 = (int)*pcVar2;
  }
  else {
    iVar1 = 0;
  }
  return iVar1;
}


PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV EBX,ESI
SUB RSP,0x8
MOV RDI,qword ptr [0x001e4780]
CMP byte ptr [RDI + -0x1],0xa
JZ 0x0011ecc0
CMP qword ptr [0x001e3740],RDI
JA 0x0011ec80
LEA RDI,[0x1e4780]
CALL 0x001182f0
MOV qword ptr [0x001e3740],RAX
TEST RAX,RAX
JZ 0x0011ecd0
MOV RDI,qword ptr [0x001e4780]
MOV EDX,EBX
XOR ESI,ESI
CALL 0x0011eb10
MOV RSI,qword ptr [0x001e4780]
MOV RDI,RBP
MOV RDX,RAX
MOV RBX,RAX
SUB RDX,RSI
CALL 0x001267d0
LEA RAX,[RBX + 0x1]
MOV qword ptr [0x001e4780],RAX
MOVSX EAX,byte ptr [RBX]
ADD RSP,0x8
POP RBX
POP RBP
RET
CALL 0x001185c0
MOV RDI,qword ptr [0x001e4780]
JMP 0x0011ec58
XOR EAX,EAX
JMP 0x0011ecaf
(translation_unit "int FUN_0011ec40(undefined8 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0011ec40(undefined8 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0011ec40(undefined8 param_1,undefined4 param_2)" identifier (parameter_list "(undefined8 param_1,undefined4 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }" if (parenthesized_expression "(DAT_001e4780[-1] == '\n')" ( (binary_expression "DAT_001e4780[-1] == '\n'" (subscript_expression "DAT_001e4780[-1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001185c0();\n  }" { (expression_statement "FUN_001185c0();" (call_expression "FUN_001185c0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }" if (parenthesized_expression "((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0))" ( (binary_expression "(DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)" (parenthesized_expression "(DAT_001e4780 < DAT_001e3740)" ( (binary_expression "DAT_001e4780 < DAT_001e3740" identifier < identifier) )) || (parenthesized_expression "(DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)" ( (comma_expression "DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0" (assignment_expression "DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780)" identifier = (cast_expression "(char *)FUN_001182f0(&DAT_001e4780)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001182f0(&DAT_001e4780)" identifier (argument_list "(&DAT_001e4780)" ( (pointer_expression "&DAT_001e4780" & identifier) ))))) , (binary_expression "DAT_001e3740 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }" { (expression_statement "pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);" (assignment_expression "pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2)" identifier = (cast_expression "(char *)FUN_0011eb10(DAT_001e4780,0,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0011eb10(DAT_001e4780,0,param_2)" identifier (argument_list "(DAT_001e4780,0,param_2)" ( identifier , number_literal , identifier ))))) ;) (expression_statement "FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);" (call_expression "FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780)" identifier (argument_list "(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780)" ( identifier , identifier , (binary_expression "(long)pcVar2 - (long)DAT_001e4780" (cast_expression "(long)pcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)DAT_001e4780" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ;) (expression_statement "DAT_001e4780 = pcVar2 + 1;" (assignment_expression "DAT_001e4780 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) }) (else_clause "else {\n    iVar1 = 0;\n  }" else (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int get_line_sb(sb *line,int in_macro)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int in_ECX;\n  \n  if (input_line_pointer[-1] == '\n') {\n    bump_line_counters();\n  }\n  if ((input_line_pointer < buffer_limit) ||\n     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)) {\n    pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);\n    sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);\n    input_line_pointer = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int get_line_sb(sb *line,int in_macro)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int in_ECX;\n  \n  if (input_line_pointer[-1] == '\n') {\n    bump_line_counters();\n  }\n  if ((input_line_pointer < buffer_limit) ||\n     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)) {\n    pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);\n    sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);\n    input_line_pointer = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "get_line_sb(sb *line,int in_macro)" identifier (parameter_list "(sb *line,int in_macro)" ( (parameter_declaration "sb *line" type_identifier (pointer_declarator "*line" * identifier)) , (parameter_declaration "int in_macro" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int in_ECX;\n  \n  if (input_line_pointer[-1] == '\n') {\n    bump_line_counters();\n  }\n  if ((input_line_pointer < buffer_limit) ||\n     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)) {\n    pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);\n    sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);\n    input_line_pointer = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int in_ECX;" primitive_type identifier ;) (if_statement "if (input_line_pointer[-1] == '\n') {\n    bump_line_counters();\n  }" if (parenthesized_expression "(input_line_pointer[-1] == '\n')" ( (binary_expression "input_line_pointer[-1] == '\n'" (subscript_expression "input_line_pointer[-1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n    bump_line_counters();\n  }" { (expression_statement "bump_line_counters();" (call_expression "bump_line_counters()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((input_line_pointer < buffer_limit) ||\n     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)) {\n    pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);\n    sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);\n    input_line_pointer = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }" if (parenthesized_expression "((input_line_pointer < buffer_limit) ||\n     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0))" ( (binary_expression "(input_line_pointer < buffer_limit) ||\n     (buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)" (parenthesized_expression "(input_line_pointer < buffer_limit)" ( (binary_expression "input_line_pointer < buffer_limit" identifier < identifier) )) || (parenthesized_expression "(buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0)" ( (comma_expression "buffer_limit = input_scrub_next_buffer(&input_line_pointer), buffer_limit != (char *)0x0" (assignment_expression "buffer_limit = input_scrub_next_buffer(&input_line_pointer)" identifier = (call_expression "input_scrub_next_buffer(&input_line_pointer)" identifier (argument_list "(&input_line_pointer)" ( (pointer_expression "&input_line_pointer" & identifier) )))) , (binary_expression "buffer_limit != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);\n    sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);\n    input_line_pointer = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }" { (expression_statement "pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX);" (assignment_expression "pcVar2 = _find_end_of_line(input_line_pointer,0,in_macro,in_ECX)" identifier = (call_expression "_find_end_of_line(input_line_pointer,0,in_macro,in_ECX)" identifier (argument_list "(input_line_pointer,0,in_macro,in_ECX)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer);" (call_expression "sb_add_buffer(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer)" identifier (argument_list "(line,input_line_pointer,(long)pcVar2 - (long)input_line_pointer)" ( identifier , identifier , (binary_expression "(long)pcVar2 - (long)input_line_pointer" (cast_expression "(long)pcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)input_line_pointer" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ;) (expression_statement "input_line_pointer = pcVar2 + 1;" (assignment_expression "input_line_pointer = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) }) (else_clause "else {\n    iVar1 = 0;\n  }" else (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0011ec40(undefined8 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0011ec40(undefined8 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0011ec40(undefined8 param_1,undefined4 param_2)" identifier (parameter_list "(undefined8 param_1,undefined4 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }" if (parenthesized_expression "(DAT_001e4780[-1] == '\n')" ( (binary_expression "DAT_001e4780[-1] == '\n'" (subscript_expression "DAT_001e4780[-1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001185c0();\n  }" { (expression_statement "FUN_001185c0();" (call_expression "FUN_001185c0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }" if (parenthesized_expression "((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0))" ( (binary_expression "(DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)" (parenthesized_expression "(DAT_001e4780 < DAT_001e3740)" ( (binary_expression "DAT_001e4780 < DAT_001e3740" identifier < identifier) )) || (parenthesized_expression "(DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)" ( (comma_expression "DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0" (assignment_expression "DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780)" identifier = (cast_expression "(char *)FUN_001182f0(&DAT_001e4780)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001182f0(&DAT_001e4780)" identifier (argument_list "(&DAT_001e4780)" ( (pointer_expression "&DAT_001e4780" & identifier) ))))) , (binary_expression "DAT_001e3740 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }" { (expression_statement "pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);" (assignment_expression "pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2)" identifier = (cast_expression "(char *)FUN_0011eb10(DAT_001e4780,0,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0011eb10(DAT_001e4780,0,param_2)" identifier (argument_list "(DAT_001e4780,0,param_2)" ( identifier , number_literal , identifier ))))) ;) (expression_statement "FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);" (call_expression "FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780)" identifier (argument_list "(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780)" ( identifier , identifier , (binary_expression "(long)pcVar2 - (long)DAT_001e4780" (cast_expression "(long)pcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)DAT_001e4780" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ;) (expression_statement "DAT_001e4780 = pcVar2 + 1;" (assignment_expression "DAT_001e4780 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) }) (else_clause "else {\n    iVar1 = 0;\n  }" else (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0011ec40(undefined8 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0011ec40(undefined8 param_1,undefined4 param_2)" (identifier "FUN_0011ec40") (parameter_list "(undefined8 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }\n  if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (if_statement "if (DAT_001e4780[-1] == '\n') {\n    FUN_001185c0();\n  }" (if "if") (parenthesized_expression "(DAT_001e4780[-1] == '\n')" (( "(") (binary_expression "DAT_001e4780[-1] == '\n'" (subscript_expression "DAT_001e4780[-1]" (identifier "DAT_001e4780") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n    FUN_001185c0();\n  }" ({ "{") (expression_statement "FUN_001185c0();" (call_expression "FUN_001185c0()" (identifier "FUN_001185c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if ((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }\n  else {\n    iVar1 = 0;\n  }" (if "if") (parenthesized_expression "((DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0))" (( "(") (binary_expression "(DAT_001e4780 < DAT_001e3740) ||\n     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)" (parenthesized_expression "(DAT_001e4780 < DAT_001e3740)" (( "(") (binary_expression "DAT_001e4780 < DAT_001e3740" (identifier "DAT_001e4780") (< "<") (identifier "DAT_001e3740")) () ")")) (|| "||") (parenthesized_expression "(DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)" (( "(") (comma_expression "DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0" (assignment_expression "DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780)" (identifier "DAT_001e3740") (= "=") (cast_expression "(char *)FUN_001182f0(&DAT_001e4780)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001182f0(&DAT_001e4780)" (identifier "FUN_001182f0") (argument_list "(&DAT_001e4780)" (( "(") (pointer_expression "&DAT_001e4780" (& "&") (identifier "DAT_001e4780")) () ")"))))) (, ",") (binary_expression "DAT_001e3740 != (char *)0x0" (identifier "DAT_001e3740") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);\n    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);\n    DAT_001e4780 = pcVar2 + 1;\n    iVar1 = (int)*pcVar2;\n  }" ({ "{") (expression_statement "pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);" (assignment_expression "pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2)" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_0011eb10(DAT_001e4780,0,param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0011eb10(DAT_001e4780,0,param_2)" (identifier "FUN_0011eb10") (argument_list "(DAT_001e4780,0,param_2)" (( "(") (identifier "DAT_001e4780") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);" (call_expression "FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780)" (identifier "FUN_001267d0") (argument_list "(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780)" (( "(") (identifier "param_1") (, ",") (identifier "DAT_001e4780") (, ",") (binary_expression "(long)pcVar2 - (long)DAT_001e4780" (cast_expression "(long)pcVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar2")) (- "-") (cast_expression "(long)DAT_001e4780" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_001e4780"))) () ")"))) (; ";")) (expression_statement "DAT_001e4780 = pcVar2 + 1;" (assignment_expression "DAT_001e4780 = pcVar2 + 1" (identifier "DAT_001e4780") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" (identifier "iVar1") (= "=") (cast_expression "(int)*pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = 0;\n  }" (else "else") (compound_statement "{\n    iVar1 = 0;\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(type_1 *line,int in_macro)

{
  int iVar1;
  char *var_7;
  int in_ECX;
  
  if (var_2[-1] == '\n') {
    var_1();
  }
  if ((var_2 < var_3) ||
     (var_3 = var_4(&var_2), var_3 != (char *)0x0)) {
    var_7 = var_5(var_2,0,in_macro,in_ECX);
    var_6(line,var_2,(long)var_7 - (long)var_2);
    var_2 = var_7 + 1;
    iVar1 = (int)*var_7;
  }
  else {
    iVar1 = 0;
  }
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) right: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

int MASKED(undefined8 param_1,undefined4 param_2)

{
  int iVar1;
  char *pcVar2;
  
  if (DAT_001e4780[-1] == '\n') {
    FUN_001185c0();
  }
  if ((DAT_001e4780 < DAT_001e3740) ||
     (DAT_001e3740 = (char *)FUN_001182f0(&DAT_001e4780), DAT_001e3740 != (char *)0x0)) {
    pcVar2 = (char *)FUN_0011eb10(DAT_001e4780,0,param_2);
    FUN_001267d0(param_1,DAT_001e4780,(long)pcVar2 - (long)DAT_001e4780);
    DAT_001e4780 = pcVar2 + 1;
    iVar1 = (int)*pcVar2;
  }
  else {
    iVar1 = 0;
  }
  return iVar1;
}

