
void add_include_dir(char *path)

{
  char **ppcVar1;
  size_t sVar2;
  long lVar3;
  
  if (include_dir_count == 0) {
    ppcVar1 = (char **)xmalloc(0x10);
    lVar3 = 8;
    include_dir_count = 2;
    include_dirs = ppcVar1;
    *ppcVar1 = ".";
  }
  else {
    include_dir_count = include_dir_count + 1;
    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);
    lVar3 = (long)include_dir_count * 8 + -8;
    include_dirs = ppcVar1;
  }
  *(char **)((long)ppcVar1 + lVar3) = path;
  sVar2 = strlen(path);
  if (include_dir_maxlen < (int)sVar2) {
    include_dir_maxlen = (int)sVar2;
  }
  return;
}



void FUN_00126e70(char *param_1)

{
  undefined8 *puVar1;
  size_t sVar2;
  long lVar3;
  
  if (DAT_0019da60 == 0) {
    puVar1 = (undefined8 *)xmalloc(0x10);
    lVar3 = 8;
    DAT_0019da60 = 2;
    DAT_0019d9a8 = puVar1;
    *puVar1 = &DAT_001441e9;
  }
  else {
    DAT_0019da60 = DAT_0019da60 + 1;
    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);
    lVar3 = (long)DAT_0019da60 * 8 + -8;
    DAT_0019d9a8 = puVar1;
  }
  *(char **)((long)puVar1 + lVar3) = param_1;
  sVar2 = strlen(param_1);
  if (DAT_00194524 < (int)sVar2) {
    DAT_00194524 = (int)sVar2;
  }
  return;
}


MOV ESI,dword ptr [0x0019da60]
PUSH RBX
MOV RBX,RDI
TEST ESI,ESI
JNZ 0x00126ec8
MOV EDI,0x10
CALL 0x0010a7d8
LEA RCX,[0x1441e9]
MOV EDX,0x8
MOV dword ptr [0x0019da60],0x2
MOV qword ptr [0x0019d9a8],RAX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + RDX*0x1],RBX
MOV RDI,RBX
CALL 0x0010a1f0
CMP dword ptr [0x00194524],EAX
JGE 0x00126ec2
MOV dword ptr [0x00194524],EAX
POP RBX
RET
ADD ESI,0x1
MOV RDI,qword ptr [0x0019d9a8]
MOV dword ptr [0x0019da60],ESI
MOVSXD RSI,ESI
SHL RSI,0x3
CALL 0x0010a260
MOVSXD RDX,dword ptr [0x0019da60]
MOV qword ptr [0x0019d9a8],RAX
LEA RDX,[-0x8 + RDX*0x8]
JMP 0x00126ea8
(translation_unit "void FUN_00126e70(char *param_1)\n\n{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00126e70(char *param_1)\n\n{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00126e70(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" if (parenthesized_expression "(DAT_0019da60 == 0)" ( (binary_expression "DAT_0019da60 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }" { (expression_statement "puVar1 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar1 = (undefined8 *)xmalloc(0x10)" identifier = (cast_expression "(undefined8 *)xmalloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "lVar3 = 8;" (assignment_expression "lVar3 = 8" identifier = number_literal) ;) (expression_statement "DAT_0019da60 = 2;" (assignment_expression "DAT_0019da60 = 2" identifier = number_literal) ;) (expression_statement "DAT_0019d9a8 = puVar1;" (assignment_expression "DAT_0019d9a8 = puVar1" identifier = identifier) ;) (expression_statement "*puVar1 = &DAT_001441e9;" (assignment_expression "*puVar1 = &DAT_001441e9" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_001441e9" & identifier)) ;) }) (else_clause "else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" else (compound_statement "{\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" { (expression_statement "DAT_0019da60 = DAT_0019da60 + 1;" (assignment_expression "DAT_0019da60 = DAT_0019da60 + 1" identifier = (binary_expression "DAT_0019da60 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);" (assignment_expression "puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" identifier = (cast_expression "(undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" identifier (argument_list "(DAT_0019d9a8,(long)DAT_0019da60 << 3)" ( identifier , (binary_expression "(long)DAT_0019da60 << 3" (cast_expression "(long)DAT_0019da60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) << number_literal) ))))) ;) (expression_statement "lVar3 = (long)DAT_0019da60 * 8 + -8;" (assignment_expression "lVar3 = (long)DAT_0019da60 * 8 + -8" identifier = (binary_expression "(long)DAT_0019da60 * 8 + -8" (binary_expression "(long)DAT_0019da60 * 8" (cast_expression "(long)DAT_0019da60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + number_literal)) ;) (expression_statement "DAT_0019d9a8 = puVar1;" (assignment_expression "DAT_0019d9a8 = puVar1" identifier = identifier) ;) }))) (expression_statement "*(char **)((long)puVar1 + lVar3) = param_1;" (assignment_expression "*(char **)((long)puVar1 + lVar3) = param_1" (pointer_expression "*(char **)((long)puVar1 + lVar3)" * (cast_expression "(char **)((long)puVar1 + lVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)puVar1 + lVar3)" ( (binary_expression "(long)puVar1 + lVar3" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }" if (parenthesized_expression "(DAT_00194524 < (int)sVar2)" ( (binary_expression "DAT_00194524 < (int)sVar2" identifier < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    DAT_00194524 = (int)sVar2;\n  }" { (expression_statement "DAT_00194524 = (int)sVar2;" (assignment_expression "DAT_00194524 = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void add_include_dir(char *path)\n\n{\n  char **ppcVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(0x10);\n    lVar3 = 8;\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);\n    lVar3 = (long)include_dir_count * 8 + -8;\n    include_dirs = ppcVar1;\n  }\n  *(char **)((long)ppcVar1 + lVar3) = path;\n  sVar2 = strlen(path);\n  if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = (int)sVar2;\n  }\n  return;\n}\n\n" (function_definition "void add_include_dir(char *path)\n\n{\n  char **ppcVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(0x10);\n    lVar3 = 8;\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);\n    lVar3 = (long)include_dir_count * 8 + -8;\n    include_dirs = ppcVar1;\n  }\n  *(char **)((long)ppcVar1 + lVar3) = path;\n  sVar2 = strlen(path);\n  if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = (int)sVar2;\n  }\n  return;\n}" primitive_type (function_declarator "add_include_dir(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) ))) (compound_statement "{\n  char **ppcVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(0x10);\n    lVar3 = 8;\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);\n    lVar3 = (long)include_dir_count * 8 + -8;\n    include_dirs = ppcVar1;\n  }\n  *(char **)((long)ppcVar1 + lVar3) = path;\n  sVar2 = strlen(path);\n  if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = (int)sVar2;\n  }\n  return;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(0x10);\n    lVar3 = 8;\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);\n    lVar3 = (long)include_dir_count * 8 + -8;\n    include_dirs = ppcVar1;\n  }" if (parenthesized_expression "(include_dir_count == 0)" ( (binary_expression "include_dir_count == 0" identifier == number_literal) )) (compound_statement "{\n    ppcVar1 = (char **)xmalloc(0x10);\n    lVar3 = 8;\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n  }" { (expression_statement "ppcVar1 = (char **)xmalloc(0x10);" (assignment_expression "ppcVar1 = (char **)xmalloc(0x10)" identifier = (cast_expression "(char **)xmalloc(0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "lVar3 = 8;" (assignment_expression "lVar3 = 8" identifier = number_literal) ;) (expression_statement "include_dir_count = 2;" (assignment_expression "include_dir_count = 2" identifier = number_literal) ;) (expression_statement "include_dirs = ppcVar1;" (assignment_expression "include_dirs = ppcVar1" identifier = identifier) ;) (expression_statement "*ppcVar1 = ".";" (assignment_expression "*ppcVar1 = "."" (pointer_expression "*ppcVar1" * identifier) = (string_literal ""."" " string_content ")) ;) }) (else_clause "else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);\n    lVar3 = (long)include_dir_count * 8 + -8;\n    include_dirs = ppcVar1;\n  }" else (compound_statement "{\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);\n    lVar3 = (long)include_dir_count * 8 + -8;\n    include_dirs = ppcVar1;\n  }" { (expression_statement "include_dir_count = include_dir_count + 1;" (assignment_expression "include_dir_count = include_dir_count + 1" identifier = (binary_expression "include_dir_count + 1" identifier + number_literal)) ;) (expression_statement "ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3);" (assignment_expression "ppcVar1 = (char **)xrealloc(include_dirs,(long)include_dir_count << 3)" identifier = (cast_expression "(char **)xrealloc(include_dirs,(long)include_dir_count << 3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(include_dirs,(long)include_dir_count << 3)" identifier (argument_list "(include_dirs,(long)include_dir_count << 3)" ( identifier , (binary_expression "(long)include_dir_count << 3" (cast_expression "(long)include_dir_count" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) << number_literal) ))))) ;) (expression_statement "lVar3 = (long)include_dir_count * 8 + -8;" (assignment_expression "lVar3 = (long)include_dir_count * 8 + -8" identifier = (binary_expression "(long)include_dir_count * 8 + -8" (binary_expression "(long)include_dir_count * 8" (cast_expression "(long)include_dir_count" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + number_literal)) ;) (expression_statement "include_dirs = ppcVar1;" (assignment_expression "include_dirs = ppcVar1" identifier = identifier) ;) }))) (expression_statement "*(char **)((long)ppcVar1 + lVar3) = path;" (assignment_expression "*(char **)((long)ppcVar1 + lVar3) = path" (pointer_expression "*(char **)((long)ppcVar1 + lVar3)" * (cast_expression "(char **)((long)ppcVar1 + lVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)ppcVar1 + lVar3)" ( (binary_expression "(long)ppcVar1 + lVar3" (cast_expression "(long)ppcVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "sVar2 = strlen(path);" (assignment_expression "sVar2 = strlen(path)" identifier = (call_expression "strlen(path)" identifier (argument_list "(path)" ( identifier )))) ;) (if_statement "if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = (int)sVar2;\n  }" if (parenthesized_expression "(include_dir_maxlen < (int)sVar2)" ( (binary_expression "include_dir_maxlen < (int)sVar2" identifier < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    include_dir_maxlen = (int)sVar2;\n  }" { (expression_statement "include_dir_maxlen = (int)sVar2;" (assignment_expression "include_dir_maxlen = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00126e70(char *param_1)\n\n{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00126e70(char *param_1)\n\n{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00126e70(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" if (parenthesized_expression "(DAT_0019da60 == 0)" ( (binary_expression "DAT_0019da60 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }" { (expression_statement "puVar1 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar1 = (undefined8 *)xmalloc(0x10)" identifier = (cast_expression "(undefined8 *)xmalloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "lVar3 = 8;" (assignment_expression "lVar3 = 8" identifier = number_literal) ;) (expression_statement "DAT_0019da60 = 2;" (assignment_expression "DAT_0019da60 = 2" identifier = number_literal) ;) (expression_statement "DAT_0019d9a8 = puVar1;" (assignment_expression "DAT_0019d9a8 = puVar1" identifier = identifier) ;) (expression_statement "*puVar1 = &DAT_001441e9;" (assignment_expression "*puVar1 = &DAT_001441e9" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_001441e9" & identifier)) ;) }) (else_clause "else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" else (compound_statement "{\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" { (expression_statement "DAT_0019da60 = DAT_0019da60 + 1;" (assignment_expression "DAT_0019da60 = DAT_0019da60 + 1" identifier = (binary_expression "DAT_0019da60 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);" (assignment_expression "puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" identifier = (cast_expression "(undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" identifier (argument_list "(DAT_0019d9a8,(long)DAT_0019da60 << 3)" ( identifier , (binary_expression "(long)DAT_0019da60 << 3" (cast_expression "(long)DAT_0019da60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) << number_literal) ))))) ;) (expression_statement "lVar3 = (long)DAT_0019da60 * 8 + -8;" (assignment_expression "lVar3 = (long)DAT_0019da60 * 8 + -8" identifier = (binary_expression "(long)DAT_0019da60 * 8 + -8" (binary_expression "(long)DAT_0019da60 * 8" (cast_expression "(long)DAT_0019da60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + number_literal)) ;) (expression_statement "DAT_0019d9a8 = puVar1;" (assignment_expression "DAT_0019d9a8 = puVar1" identifier = identifier) ;) }))) (expression_statement "*(char **)((long)puVar1 + lVar3) = param_1;" (assignment_expression "*(char **)((long)puVar1 + lVar3) = param_1" (pointer_expression "*(char **)((long)puVar1 + lVar3)" * (cast_expression "(char **)((long)puVar1 + lVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)puVar1 + lVar3)" ( (binary_expression "(long)puVar1 + lVar3" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }" if (parenthesized_expression "(DAT_00194524 < (int)sVar2)" ( (binary_expression "DAT_00194524 < (int)sVar2" identifier < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    DAT_00194524 = (int)sVar2;\n  }" { (expression_statement "DAT_00194524 = (int)sVar2;" (assignment_expression "DAT_00194524 = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) << LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00126e70(char *param_1)\n\n{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00126e70(char *param_1)" (identifier "FUN_00126e70") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  size_t sVar2;\n  long lVar3;\n  \n  if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }\n  *(char **)((long)puVar1 + lVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (if_statement "if (DAT_0019da60 == 0) {\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }\n  else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" (if "if") (parenthesized_expression "(DAT_0019da60 == 0)" (( "(") (binary_expression "DAT_0019da60 == 0" (identifier "DAT_0019da60") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = (undefined8 *)xmalloc(0x10);\n    lVar3 = 8;\n    DAT_0019da60 = 2;\n    DAT_0019d9a8 = puVar1;\n    *puVar1 = &DAT_001441e9;\n  }" ({ "{") (expression_statement "puVar1 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar1 = (undefined8 *)xmalloc(0x10)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)xmalloc(0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "lVar3 = 8;" (assignment_expression "lVar3 = 8" (identifier "lVar3") (= "=") (number_literal "8")) (; ";")) (expression_statement "DAT_0019da60 = 2;" (assignment_expression "DAT_0019da60 = 2" (identifier "DAT_0019da60") (= "=") (number_literal "2")) (; ";")) (expression_statement "DAT_0019d9a8 = puVar1;" (assignment_expression "DAT_0019d9a8 = puVar1" (identifier "DAT_0019d9a8") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*puVar1 = &DAT_001441e9;" (assignment_expression "*puVar1 = &DAT_001441e9" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_001441e9" (& "&") (identifier "DAT_001441e9"))) (; ";")) (} "}")) (else_clause "else {\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" (else "else") (compound_statement "{\n    DAT_0019da60 = DAT_0019da60 + 1;\n    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);\n    lVar3 = (long)DAT_0019da60 * 8 + -8;\n    DAT_0019d9a8 = puVar1;\n  }" ({ "{") (expression_statement "DAT_0019da60 = DAT_0019da60 + 1;" (assignment_expression "DAT_0019da60 = DAT_0019da60 + 1" (identifier "DAT_0019da60") (= "=") (binary_expression "DAT_0019da60 + 1" (identifier "DAT_0019da60") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);" (assignment_expression "puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3)" (identifier "xrealloc") (argument_list "(DAT_0019d9a8,(long)DAT_0019da60 << 3)" (( "(") (identifier "DAT_0019d9a8") (, ",") (binary_expression "(long)DAT_0019da60 << 3" (cast_expression "(long)DAT_0019da60" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_0019da60")) (<< "<<") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "lVar3 = (long)DAT_0019da60 * 8 + -8;" (assignment_expression "lVar3 = (long)DAT_0019da60 * 8 + -8" (identifier "lVar3") (= "=") (binary_expression "(long)DAT_0019da60 * 8 + -8" (binary_expression "(long)DAT_0019da60 * 8" (cast_expression "(long)DAT_0019da60" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_0019da60")) (* "*") (number_literal "8")) (+ "+") (number_literal "-8"))) (; ";")) (expression_statement "DAT_0019d9a8 = puVar1;" (assignment_expression "DAT_0019d9a8 = puVar1" (identifier "DAT_0019d9a8") (= "=") (identifier "puVar1")) (; ";")) (} "}")))) (expression_statement "*(char **)((long)puVar1 + lVar3) = param_1;" (assignment_expression "*(char **)((long)puVar1 + lVar3) = param_1" (pointer_expression "*(char **)((long)puVar1 + lVar3)" (* "*") (cast_expression "(char **)((long)puVar1 + lVar3)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)puVar1 + lVar3)" (( "(") (binary_expression "(long)puVar1 + lVar3" (cast_expression "(long)puVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar1")) (+ "+") (identifier "lVar3")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (DAT_00194524 < (int)sVar2) {\n    DAT_00194524 = (int)sVar2;\n  }" (if "if") (parenthesized_expression "(DAT_00194524 < (int)sVar2)" (( "(") (binary_expression "DAT_00194524 < (int)sVar2" (identifier "DAT_00194524") (< "<") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) () ")")) (compound_statement "{\n    DAT_00194524 = (int)sVar2;\n  }" ({ "{") (expression_statement "DAT_00194524 = (int)sVar2;" (assignment_expression "DAT_00194524 = (int)sVar2" (identifier "DAT_00194524") (= "=") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *path)

{
  char **ppcVar1;
  size_t sVar2;
  long var_4;
  
  if (var_1 == 0) {
    ppcVar1 = (char **)var_2(0x10);
    var_4 = 8;
    var_1 = 2;
    include_dirs = ppcVar1;
    *ppcVar1 = ".";
  }
  else {
    var_1 = var_1 + 1;
    ppcVar1 = (char **)var_3(include_dirs,(long)var_1 << 3);
    var_4 = (long)var_1 * 8 + -8;
    include_dirs = ppcVar1;
  }
  *(char **)((long)ppcVar1 + var_4) = path;
  sVar2 = var_5(path);
  if (var_6 < (int)sVar2) {
    var_6 = (int)sVar2;
  }
  return;
}


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

void MASKED(char *param_1)

{
  undefined8 *puVar1;
  size_t sVar2;
  long lVar3;
  
  if (DAT_0019da60 == 0) {
    puVar1 = (undefined8 *)xmalloc(0x10);
    lVar3 = 8;
    DAT_0019da60 = 2;
    DAT_0019d9a8 = puVar1;
    *puVar1 = &DAT_001441e9;
  }
  else {
    DAT_0019da60 = DAT_0019da60 + 1;
    puVar1 = (undefined8 *)xrealloc(DAT_0019d9a8,(long)DAT_0019da60 << 3);
    lVar3 = (long)DAT_0019da60 * 8 + -8;
    DAT_0019d9a8 = puVar1;
  }
  *(char **)((long)puVar1 + lVar3) = param_1;
  sVar2 = strlen(param_1);
  if (DAT_00194524 < (int)sVar2) {
    DAT_00194524 = (int)sVar2;
  }
  return;
}

