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

void __regparm3 extract_dirs_from_files(char *dirname,_Bool command_line_arg)

{
  void **ppvVar1;
  fileinfo *f;
  int iVar2;
  size_t sVar3;
  void **ppvVar4;
  char *pcVar5;
  char *pcVar6;
  void **ppvVar7;
  
  ppvVar4 = sorted_file;
  sVar3 = cwd_n_used;
  if ((dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0)) {
    queue_directory((char *)0x0,dirname,false);
    ppvVar4 = sorted_file;
    sVar3 = cwd_n_used;
  }
joined_r0x00015016:
  do {
    sVar3 = sVar3 - 1;
    sorted_file = ppvVar4;
    if (sVar3 == 0xffffffff) {
      if (cwd_n_used != 0) {
        ppvVar1 = ppvVar4 + cwd_n_used;
        cwd_n_used = 0;
        ppvVar7 = ppvVar4;
        do {
          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);
          ppvVar4[cwd_n_used] = *ppvVar7;
          ppvVar7 = ppvVar7 + 1;
          cwd_n_used = cwd_n_used + (iVar2 != 9);
        } while (ppvVar1 != ppvVar7);
      }
      return;
    }
    f = (fileinfo *)ppvVar4[sVar3];
  } while ((f->filetype != directory) && (f->filetype != arg_directory));
  pcVar6 = f->name;
  if (dirname != (char *)0x0) goto code_r0x00015040;
  goto LAB_000150f0;
code_r0x00015040:
  pcVar5 = last_component(pcVar6);
  if ((*pcVar5 != '.') ||
     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&
      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))) {
    if (*pcVar6 == '/') {
LAB_000150f0:
      queue_directory(pcVar6,f->linkname,command_line_arg);
    }
    else {
      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);
      queue_directory(pcVar6,f->linkname,command_line_arg);
      free(pcVar6);
    }
    ppvVar4 = sorted_file;
    if (f->filetype == arg_directory) {
      free_ent(f);
      ppvVar4 = sorted_file;
    }
  }
  goto joined_r0x00015016;
}



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

void __regparm3 FUN_00014fd0(int param_1)

{
  int *piVar1;
  undefined4 *puVar2;
  char *pcVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  void *__ptr;
  int *piVar7;
  
  piVar5 = DAT_0003c350;
  iVar4 = DAT_0003c358;
  if ((param_1 != 0) && (DAT_0003c364 != 0)) {
    FUN_00014a20();
    piVar5 = DAT_0003c350;
    iVar4 = DAT_0003c358;
  }
joined_r0x00015016:
  do {
    iVar4 = iVar4 + -1;
    DAT_0003c350 = piVar5;
    if (iVar4 == -1) {
      if (DAT_0003c358 != 0) {
        piVar1 = piVar5 + DAT_0003c358;
        DAT_0003c358 = 0;
        piVar7 = piVar5;
        do {
          iVar4 = *(int *)(*piVar7 + 0x6c);
          piVar5[DAT_0003c358] = *piVar7;
          piVar7 = piVar7 + 1;
          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);
        } while (piVar1 != piVar7);
      }
      return;
    }
    puVar2 = (undefined4 *)piVar5[iVar4];
  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));
  pcVar3 = (char *)*puVar2;
  if (param_1 != 0) goto code_r0x00015040;
  goto LAB_000150f0;
code_r0x00015040:
  pcVar6 = (char *)FUN_0001c0f0(pcVar3);
  if ((*pcVar6 != '.') ||
     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&
      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {
    if (*pcVar3 == '/') {
LAB_000150f0:
      FUN_00014a20();
    }
    else {
      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);
      FUN_00014a20();
      free(__ptr);
    }
    piVar5 = DAT_0003c350;
    if (puVar2[0x1b] == 9) {
      FUN_00014af0();
      piVar5 = DAT_0003c350;
    }
  }
  goto joined_r0x00015016;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x26025
SUB ESP,0x1c
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JZ 0x00015001
MOV EDX,dword ptr [EBX + 0x1364]
TEST EDX,EDX
JZ 0x00015001
MOV EDX,EAX
XOR ECX,ECX
XOR EAX,EAX
CALL 0x00014a20
MOV EAX,EDI
MOV ESI,dword ptr [EBX + 0x1358]
MOVZX EAX,AL
MOV dword ptr [ESP + 0xc],EAX
SUB ESI,0x1
CMP ESI,-0x1
JZ 0x000150a0
MOV EAX,dword ptr [EBX + 0x1350]
MOV EDI,dword ptr [EAX + ESI*0x4]
MOV EAX,dword ptr [EDI + 0x6c]
CMP EAX,0x3
JZ 0x00015032
CMP EAX,0x9
JNZ 0x00015010
MOV EAX,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [EDI]
TEST EAX,EAX
JZ 0x000150f0
SUB ESP,0xc
PUSH EBP
CALL 0x0001c0f0
ADD ESP,0x10
CMP byte ptr [EAX],0x2e
JZ 0x00015100
CMP byte ptr [EBP],0x2f
JZ 0x000150f0
SUB ESP,0x4
PUSH 0x0
PUSH EBP
PUSH dword ptr [ESP + 0x14]
CALL 0x0001c520
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EDI + 0x4]
MOV EBP,EAX
CALL 0x00014a20
MOV dword ptr [ESP],EBP
CALL 0x00012790
ADD ESP,0x10
CMP dword ptr [EDI + 0x6c],0x9
JNZ 0x00015010
MOV EAX,EDI
SUB ESI,0x1
CALL 0x00014af0
CMP ESI,-0x1
JNZ 0x0001501c
LEA ESI,[ESI]
MOV EDX,dword ptr [EBX + 0x1358]
TEST EDX,EDX
JZ 0x000150d8
MOV ESI,dword ptr [EBX + 0x1350]
LEA EDI,[ESI + EDX*0x4]
MOV EAX,ESI
XOR EDX,EDX
LEA ESI,[ESI]
NOP
MOV ECX,dword ptr [EAX]
CMP dword ptr [ECX + 0x6c],0x9
MOV dword ptr [ESI + EDX*0x4],ECX
SETNZ CL
ADD EAX,0x4
MOVZX ECX,CL
ADD EDX,ECX
CMP EDI,EAX
JNZ 0x000150c0
MOV dword ptr [EBX + 0x1358],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EDI + 0x4]
MOV ECX,dword ptr [ESP + 0xc]
MOV EAX,EBP
CALL 0x00014a20
JMP 0x00015087
XOR EDX,EDX
CMP byte ptr [EAX + 0x1],0x2e
SETZ DL
MOVZX EAX,byte ptr [EAX + EDX*0x1 + 0x1]
TEST AL,AL
JZ 0x00015010
CMP AL,0x2f
JZ 0x00015010
JMP 0x00015055
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00014fd0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}\n\n" comment (function_definition "void __regparm3 FUN_00014fd0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014fd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) (expression_statement "iVar4 = DAT_0003c358;" (assignment_expression "iVar4 = DAT_0003c358" identifier = identifier) ;) (if_statement "if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }" if (parenthesized_expression "((param_1 != 0) && (DAT_0003c364 != 0))" ( (binary_expression "(param_1 != 0) && (DAT_0003c364 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(DAT_0003c364 != 0)" ( (binary_expression "DAT_0003c364 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }" { (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) (expression_statement "iVar4 = DAT_0003c358;" (assignment_expression "iVar4 = DAT_0003c358" identifier = identifier) ;) })) (labeled_statement "joined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));" statement_identifier : (do_statement "do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));" do (compound_statement "{\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  }" { (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "DAT_0003c350 = piVar5;" (assignment_expression "DAT_0003c350 = piVar5" identifier = identifier) ;) (if_statement "if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }" { (if_statement "if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }" if (parenthesized_expression "(DAT_0003c358 != 0)" ( (binary_expression "DAT_0003c358 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }" { (expression_statement "piVar1 = piVar5 + DAT_0003c358;" (assignment_expression "piVar1 = piVar5 + DAT_0003c358" identifier = (binary_expression "piVar5 + DAT_0003c358" identifier + identifier)) ;) (expression_statement "DAT_0003c358 = 0;" (assignment_expression "DAT_0003c358 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = piVar5;" (assignment_expression "piVar7 = piVar5" identifier = identifier) ;) (do_statement "do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);" do (compound_statement "{\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        }" { (expression_statement "iVar4 = *(int *)(*piVar7 + 0x6c);" (assignment_expression "iVar4 = *(int *)(*piVar7 + 0x6c)" identifier = (pointer_expression "*(int *)(*piVar7 + 0x6c)" * (cast_expression "(int *)(*piVar7 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar7 + 0x6c)" ( (binary_expression "*piVar7 + 0x6c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) ;) (expression_statement "piVar5[DAT_0003c358] = *piVar7;" (assignment_expression "piVar5[DAT_0003c358] = *piVar7" (subscript_expression "piVar5[DAT_0003c358]" identifier [ identifier ]) = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);" (assignment_expression "DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9)" identifier = (binary_expression "DAT_0003c358 + (uint)(iVar4 != 9)" identifier + (call_expression "(uint)(iVar4 != 9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 != 9)" ( (binary_expression "iVar4 != 9" identifier != number_literal) ))))) ;) }) while (parenthesized_expression "(piVar1 != piVar7)" ( (binary_expression "piVar1 != piVar7" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)piVar5[iVar4];" (assignment_expression "puVar2 = (undefined4 *)piVar5[iVar4]" identifier = (cast_expression "(undefined4 *)piVar5[iVar4]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[iVar4]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9))" ( (binary_expression "(puVar2[0x1b] != 3) && (puVar2[0x1b] != 9)" (parenthesized_expression "(puVar2[0x1b] != 3)" ( (binary_expression "puVar2[0x1b] != 3" (subscript_expression "puVar2[0x1b]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(puVar2[0x1b] != 9)" ( (binary_expression "puVar2[0x1b] != 9" (subscript_expression "puVar2[0x1b]" identifier [ number_literal ]) != number_literal) ))) )) ;)) (expression_statement "pcVar3 = (char *)*puVar2;" (assignment_expression "pcVar3 = (char *)*puVar2" identifier = (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (if_statement "if (param_1 != 0) goto code_r0x00015040;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (goto_statement "goto code_r0x00015040;" goto statement_identifier ;)) (goto_statement "goto LAB_000150f0;" goto statement_identifier ;) (labeled_statement "code_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);" statement_identifier : (expression_statement "pcVar6 = (char *)FUN_0001c0f0(pcVar3);" (assignment_expression "pcVar6 = (char *)FUN_0001c0f0(pcVar3)" identifier = (cast_expression "(char *)FUN_0001c0f0(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c0f0(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;)) (if_statement "if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }" if (parenthesized_expression "((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/'))))" ( (binary_expression "(*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))" (parenthesized_expression "(*pcVar6 != '.')" ( (binary_expression "*pcVar6 != '.'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'.'" ' character ')) )) || (parenthesized_expression "((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))" ( (parenthesized_expression "(piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/'))" ( (comma_expression "piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) , (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')" (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '\0'" (subscript_expression "pcVar6[(pcVar6[1] == '.') + 1]" identifier [ (binary_expression "(pcVar6[1] == '.') + 1" (parenthesized_expression "(pcVar6[1] == '.')" ( (binary_expression "pcVar6[1] == '.'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'.'" ' character ')) )) + number_literal) ]) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(pcVar6[(pcVar6[1] == '.') + 1] != '/')" ( (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '/'" (subscript_expression "pcVar6[(pcVar6[1] == '.') + 1]" identifier [ (binary_expression "(pcVar6[1] == '.') + 1" (parenthesized_expression "(pcVar6[1] == '.')" ( (binary_expression "pcVar6[1] == '.'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'.'" ' character ')) )) + number_literal) ]) != (char_literal "'/'" ' character ')) )))) )) ))) )) (compound_statement "{\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }" { (if_statement "if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" if (parenthesized_expression "(*pcVar3 == '/')" ( (binary_expression "*pcVar3 == '/'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\nLAB_000150f0:\n      FUN_00014a20();\n    }" { (labeled_statement "LAB_000150f0:\n      FUN_00014a20();" statement_identifier : (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" identifier (argument_list "()" ( ))) ;)) }) (else_clause "else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" else (compound_statement "{\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" { (expression_statement "__ptr = (void *)FUN_0001c520(param_1,pcVar3,0);" (assignment_expression "__ptr = (void *)FUN_0001c520(param_1,pcVar3,0)" identifier = (cast_expression "(void *)FUN_0001c520(param_1,pcVar3,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c520(param_1,pcVar3,0)" identifier (argument_list "(param_1,pcVar3,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) (if_statement "if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }" if (parenthesized_expression "(puVar2[0x1b] == 9)" ( (binary_expression "puVar2[0x1b] == 9" (subscript_expression "puVar2[0x1b]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }" { (expression_statement "FUN_00014af0();" (call_expression "FUN_00014af0()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) })) })) (goto_statement "goto joined_r0x00015016;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 extract_dirs_from_files(char *dirname,_Bool command_line_arg)\n\n{\n  void **ppvVar1;\n  fileinfo *f;\n  int iVar2;\n  size_t sVar3;\n  void **ppvVar4;\n  char *pcVar5;\n  char *pcVar6;\n  void **ppvVar7;\n  \n  ppvVar4 = sorted_file;\n  sVar3 = cwd_n_used;\n  if ((dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0)) {\n    queue_directory((char *)0x0,dirname,false);\n    ppvVar4 = sorted_file;\n    sVar3 = cwd_n_used;\n  }\njoined_r0x00015016:\n  do {\n    sVar3 = sVar3 - 1;\n    sorted_file = ppvVar4;\n    if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }\n    f = (fileinfo *)ppvVar4[sVar3];\n  } while ((f->filetype != directory) && (f->filetype != arg_directory));\n  pcVar6 = f->name;\n  if (dirname != (char *)0x0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar5 = last_component(pcVar6);\n  if ((*pcVar5 != '.') ||\n     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))) {\n    if (*pcVar6 == '/') {\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }\n    else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }\n    ppvVar4 = sorted_file;\n    if (f->filetype == arg_directory) {\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }\n  }\n  goto joined_r0x00015016;\n}\n\n" comment (function_definition "void __regparm3 extract_dirs_from_files(char *dirname,_Bool command_line_arg)\n\n{\n  void **ppvVar1;\n  fileinfo *f;\n  int iVar2;\n  size_t sVar3;\n  void **ppvVar4;\n  char *pcVar5;\n  char *pcVar6;\n  void **ppvVar7;\n  \n  ppvVar4 = sorted_file;\n  sVar3 = cwd_n_used;\n  if ((dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0)) {\n    queue_directory((char *)0x0,dirname,false);\n    ppvVar4 = sorted_file;\n    sVar3 = cwd_n_used;\n  }\njoined_r0x00015016:\n  do {\n    sVar3 = sVar3 - 1;\n    sorted_file = ppvVar4;\n    if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }\n    f = (fileinfo *)ppvVar4[sVar3];\n  } while ((f->filetype != directory) && (f->filetype != arg_directory));\n  pcVar6 = f->name;\n  if (dirname != (char *)0x0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar5 = last_component(pcVar6);\n  if ((*pcVar5 != '.') ||\n     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))) {\n    if (*pcVar6 == '/') {\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }\n    else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }\n    ppvVar4 = sorted_file;\n    if (f->filetype == arg_directory) {\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }\n  }\n  goto joined_r0x00015016;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "extract_dirs_from_files(char *dirname,_Bool command_line_arg)" identifier (parameter_list "(char *dirname,_Bool command_line_arg)" ( (parameter_declaration "char *dirname" primitive_type (pointer_declarator "*dirname" * identifier)) , (parameter_declaration "_Bool command_line_arg" type_identifier identifier) ))) (compound_statement "{\n  void **ppvVar1;\n  fileinfo *f;\n  int iVar2;\n  size_t sVar3;\n  void **ppvVar4;\n  char *pcVar5;\n  char *pcVar6;\n  void **ppvVar7;\n  \n  ppvVar4 = sorted_file;\n  sVar3 = cwd_n_used;\n  if ((dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0)) {\n    queue_directory((char *)0x0,dirname,false);\n    ppvVar4 = sorted_file;\n    sVar3 = cwd_n_used;\n  }\njoined_r0x00015016:\n  do {\n    sVar3 = sVar3 - 1;\n    sorted_file = ppvVar4;\n    if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }\n    f = (fileinfo *)ppvVar4[sVar3];\n  } while ((f->filetype != directory) && (f->filetype != arg_directory));\n  pcVar6 = f->name;\n  if (dirname != (char *)0x0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar5 = last_component(pcVar6);\n  if ((*pcVar5 != '.') ||\n     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))) {\n    if (*pcVar6 == '/') {\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }\n    else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }\n    ppvVar4 = sorted_file;\n    if (f->filetype == arg_directory) {\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }\n  }\n  goto joined_r0x00015016;\n}" { (declaration "void **ppvVar1;" primitive_type (pointer_declarator "**ppvVar1" * (pointer_declarator "*ppvVar1" * identifier)) ;) (declaration "fileinfo *f;" type_identifier (pointer_declarator "*f" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void **ppvVar4;" primitive_type (pointer_declarator "**ppvVar4" * (pointer_declarator "*ppvVar4" * identifier)) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "void **ppvVar7;" primitive_type (pointer_declarator "**ppvVar7" * (pointer_declarator "*ppvVar7" * identifier)) ;) (expression_statement "ppvVar4 = sorted_file;" (assignment_expression "ppvVar4 = sorted_file" identifier = identifier) ;) (expression_statement "sVar3 = cwd_n_used;" (assignment_expression "sVar3 = cwd_n_used" identifier = identifier) ;) (if_statement "if ((dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0)) {\n    queue_directory((char *)0x0,dirname,false);\n    ppvVar4 = sorted_file;\n    sVar3 = cwd_n_used;\n  }" if (parenthesized_expression "((dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0))" ( (binary_expression "(dirname != (char *)0x0) && (active_dir_set != (Hash_table *)0x0)" (parenthesized_expression "(dirname != (char *)0x0)" ( (binary_expression "dirname != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(active_dir_set != (Hash_table *)0x0)" ( (binary_expression "active_dir_set != (Hash_table *)0x0" identifier != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    queue_directory((char *)0x0,dirname,false);\n    ppvVar4 = sorted_file;\n    sVar3 = cwd_n_used;\n  }" { (expression_statement "queue_directory((char *)0x0,dirname,false);" (call_expression "queue_directory((char *)0x0,dirname,false)" identifier (argument_list "((char *)0x0,dirname,false)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , false ))) ;) (expression_statement "ppvVar4 = sorted_file;" (assignment_expression "ppvVar4 = sorted_file" identifier = identifier) ;) (expression_statement "sVar3 = cwd_n_used;" (assignment_expression "sVar3 = cwd_n_used" identifier = identifier) ;) })) (labeled_statement "joined_r0x00015016:\n  do {\n    sVar3 = sVar3 - 1;\n    sorted_file = ppvVar4;\n    if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }\n    f = (fileinfo *)ppvVar4[sVar3];\n  } while ((f->filetype != directory) && (f->filetype != arg_directory));" statement_identifier : (do_statement "do {\n    sVar3 = sVar3 - 1;\n    sorted_file = ppvVar4;\n    if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }\n    f = (fileinfo *)ppvVar4[sVar3];\n  } while ((f->filetype != directory) && (f->filetype != arg_directory));" do (compound_statement "{\n    sVar3 = sVar3 - 1;\n    sorted_file = ppvVar4;\n    if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }\n    f = (fileinfo *)ppvVar4[sVar3];\n  }" { (expression_statement "sVar3 = sVar3 - 1;" (assignment_expression "sVar3 = sVar3 - 1" identifier = (binary_expression "sVar3 - 1" identifier - number_literal)) ;) (expression_statement "sorted_file = ppvVar4;" (assignment_expression "sorted_file = ppvVar4" identifier = identifier) ;) (if_statement "if (sVar3 == 0xffffffff) {\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }" if (parenthesized_expression "(sVar3 == 0xffffffff)" ( (binary_expression "sVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }\n      return;\n    }" { (if_statement "if (cwd_n_used != 0) {\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }" if (parenthesized_expression "(cwd_n_used != 0)" ( (binary_expression "cwd_n_used != 0" identifier != number_literal) )) (compound_statement "{\n        ppvVar1 = ppvVar4 + cwd_n_used;\n        cwd_n_used = 0;\n        ppvVar7 = ppvVar4;\n        do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);\n      }" { (expression_statement "ppvVar1 = ppvVar4 + cwd_n_used;" (assignment_expression "ppvVar1 = ppvVar4 + cwd_n_used" identifier = (binary_expression "ppvVar4 + cwd_n_used" identifier + identifier)) ;) (expression_statement "cwd_n_used = 0;" (assignment_expression "cwd_n_used = 0" identifier = number_literal) ;) (expression_statement "ppvVar7 = ppvVar4;" (assignment_expression "ppvVar7 = ppvVar4" identifier = identifier) ;) (do_statement "do {\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        } while (ppvVar1 != ppvVar7);" do (compound_statement "{\n          iVar2 = *(int *)((int)*ppvVar7 + 0x6c);\n          ppvVar4[cwd_n_used] = *ppvVar7;\n          ppvVar7 = ppvVar7 + 1;\n          cwd_n_used = cwd_n_used + (iVar2 != 9);\n        }" { (expression_statement "iVar2 = *(int *)((int)*ppvVar7 + 0x6c);" (assignment_expression "iVar2 = *(int *)((int)*ppvVar7 + 0x6c)" identifier = (pointer_expression "*(int *)((int)*ppvVar7 + 0x6c)" * (cast_expression "(int *)((int)*ppvVar7 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppvVar7 + 0x6c)" ( (binary_expression "(int)*ppvVar7 + 0x6c" (cast_expression "(int)*ppvVar7" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppvVar7" * identifier)) + number_literal) ))))) ;) (expression_statement "ppvVar4[cwd_n_used] = *ppvVar7;" (assignment_expression "ppvVar4[cwd_n_used] = *ppvVar7" (subscript_expression "ppvVar4[cwd_n_used]" identifier [ identifier ]) = (pointer_expression "*ppvVar7" * identifier)) ;) (expression_statement "ppvVar7 = ppvVar7 + 1;" (assignment_expression "ppvVar7 = ppvVar7 + 1" identifier = (binary_expression "ppvVar7 + 1" identifier + number_literal)) ;) (expression_statement "cwd_n_used = cwd_n_used + (iVar2 != 9);" (assignment_expression "cwd_n_used = cwd_n_used + (iVar2 != 9)" identifier = (binary_expression "cwd_n_used + (iVar2 != 9)" identifier + (parenthesized_expression "(iVar2 != 9)" ( (binary_expression "iVar2 != 9" identifier != number_literal) )))) ;) }) while (parenthesized_expression "(ppvVar1 != ppvVar7)" ( (binary_expression "ppvVar1 != ppvVar7" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "f = (fileinfo *)ppvVar4[sVar3];" (assignment_expression "f = (fileinfo *)ppvVar4[sVar3]" identifier = (cast_expression "(fileinfo *)ppvVar4[sVar3]" ( (type_descriptor "fileinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppvVar4[sVar3]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "((f->filetype != directory) && (f->filetype != arg_directory))" ( (binary_expression "(f->filetype != directory) && (f->filetype != arg_directory)" (parenthesized_expression "(f->filetype != directory)" ( (binary_expression "f->filetype != directory" (field_expression "f->filetype" identifier -> field_identifier) != identifier) )) && (parenthesized_expression "(f->filetype != arg_directory)" ( (binary_expression "f->filetype != arg_directory" (field_expression "f->filetype" identifier -> field_identifier) != identifier) ))) )) ;)) (expression_statement "pcVar6 = f->name;" (assignment_expression "pcVar6 = f->name" identifier = (field_expression "f->name" identifier -> field_identifier)) ;) (if_statement "if (dirname != (char *)0x0) goto code_r0x00015040;" if (parenthesized_expression "(dirname != (char *)0x0)" ( (binary_expression "dirname != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto code_r0x00015040;" goto statement_identifier ;)) (goto_statement "goto LAB_000150f0;" goto statement_identifier ;) (labeled_statement "code_r0x00015040:\n  pcVar5 = last_component(pcVar6);" statement_identifier : (expression_statement "pcVar5 = last_component(pcVar6);" (assignment_expression "pcVar5 = last_component(pcVar6)" identifier = (call_expression "last_component(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;)) (if_statement "if ((*pcVar5 != '.') ||\n     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))) {\n    if (*pcVar6 == '/') {\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }\n    else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }\n    ppvVar4 = sorted_file;\n    if (f->filetype == arg_directory) {\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }\n  }" if (parenthesized_expression "((*pcVar5 != '.') ||\n     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/'))))" ( (binary_expression "(*pcVar5 != '.') ||\n     ((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))" (parenthesized_expression "(*pcVar5 != '.')" ( (binary_expression "*pcVar5 != '.'" (pointer_expression "*pcVar5" * identifier) != (char_literal "'.'" ' character ')) )) || (parenthesized_expression "((ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))" ( (parenthesized_expression "(ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/'))" ( (comma_expression "ppvVar4 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')" (assignment_expression "ppvVar4 = sorted_file" identifier = identifier) , (binary_expression "pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&\n      (pcVar5[(pcVar5[1] == '.') + 1] != '/')" (binary_expression "pcVar5[(pcVar5[1] == '.') + 1] != '\0'" (subscript_expression "pcVar5[(pcVar5[1] == '.') + 1]" identifier [ (binary_expression "(pcVar5[1] == '.') + 1" (parenthesized_expression "(pcVar5[1] == '.')" ( (binary_expression "pcVar5[1] == '.'" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) == (char_literal "'.'" ' character ')) )) + number_literal) ]) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(pcVar5[(pcVar5[1] == '.') + 1] != '/')" ( (binary_expression "pcVar5[(pcVar5[1] == '.') + 1] != '/'" (subscript_expression "pcVar5[(pcVar5[1] == '.') + 1]" identifier [ (binary_expression "(pcVar5[1] == '.') + 1" (parenthesized_expression "(pcVar5[1] == '.')" ( (binary_expression "pcVar5[1] == '.'" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) == (char_literal "'.'" ' character ')) )) + number_literal) ]) != (char_literal "'/'" ' character ')) )))) )) ))) )) (compound_statement "{\n    if (*pcVar6 == '/') {\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }\n    else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }\n    ppvVar4 = sorted_file;\n    if (f->filetype == arg_directory) {\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }\n  }" { (if_statement "if (*pcVar6 == '/') {\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }\n    else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }" if (parenthesized_expression "(*pcVar6 == '/')" ( (binary_expression "*pcVar6 == '/'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\nLAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n    }" { (labeled_statement "LAB_000150f0:\n      queue_directory(pcVar6,f->linkname,command_line_arg);" statement_identifier : (expression_statement "queue_directory(pcVar6,f->linkname,command_line_arg);" (call_expression "queue_directory(pcVar6,f->linkname,command_line_arg)" identifier (argument_list "(pcVar6,f->linkname,command_line_arg)" ( identifier , (field_expression "f->linkname" identifier -> field_identifier) , identifier ))) ;)) }) (else_clause "else {\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }" else (compound_statement "{\n      pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);\n      queue_directory(pcVar6,f->linkname,command_line_arg);\n      free(pcVar6);\n    }" { (expression_statement "pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0);" (assignment_expression "pcVar6 = file_name_concat(dirname,pcVar6,(char **)0x0)" identifier = (call_expression "file_name_concat(dirname,pcVar6,(char **)0x0)" identifier (argument_list "(dirname,pcVar6,(char **)0x0)" ( identifier , identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (expression_statement "queue_directory(pcVar6,f->linkname,command_line_arg);" (call_expression "queue_directory(pcVar6,f->linkname,command_line_arg)" identifier (argument_list "(pcVar6,f->linkname,command_line_arg)" ( identifier , (field_expression "f->linkname" identifier -> field_identifier) , identifier ))) ;) (expression_statement "free(pcVar6);" (call_expression "free(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) }))) (expression_statement "ppvVar4 = sorted_file;" (assignment_expression "ppvVar4 = sorted_file" identifier = identifier) ;) (if_statement "if (f->filetype == arg_directory) {\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }" if (parenthesized_expression "(f->filetype == arg_directory)" ( (binary_expression "f->filetype == arg_directory" (field_expression "f->filetype" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      free_ent(f);\n      ppvVar4 = sorted_file;\n    }" { (expression_statement "free_ent(f);" (call_expression "free_ent(f)" identifier (argument_list "(f)" ( identifier ))) ;) (expression_statement "ppvVar4 = sorted_file;" (assignment_expression "ppvVar4 = sorted_file" identifier = identifier) ;) })) })) (goto_statement "goto joined_r0x00015016;" goto statement_identifier ;) })))
(translation_unit "void __regparm3 FUN_00014fd0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}\n\n" (function_definition "void __regparm3 FUN_00014fd0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014fd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) (expression_statement "iVar4 = DAT_0003c358;" (assignment_expression "iVar4 = DAT_0003c358" identifier = identifier) ;) (if_statement "if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }" if (parenthesized_expression "((param_1 != 0) && (DAT_0003c364 != 0))" ( (binary_expression "(param_1 != 0) && (DAT_0003c364 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(DAT_0003c364 != 0)" ( (binary_expression "DAT_0003c364 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }" { (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) (expression_statement "iVar4 = DAT_0003c358;" (assignment_expression "iVar4 = DAT_0003c358" identifier = identifier) ;) })) (labeled_statement "joined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));" statement_identifier : (do_statement "do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));" do (compound_statement "{\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  }" { (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "DAT_0003c350 = piVar5;" (assignment_expression "DAT_0003c350 = piVar5" identifier = identifier) ;) (if_statement "if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }" { (if_statement "if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }" if (parenthesized_expression "(DAT_0003c358 != 0)" ( (binary_expression "DAT_0003c358 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }" { (expression_statement "piVar1 = piVar5 + DAT_0003c358;" (assignment_expression "piVar1 = piVar5 + DAT_0003c358" identifier = (binary_expression "piVar5 + DAT_0003c358" identifier + identifier)) ;) (expression_statement "DAT_0003c358 = 0;" (assignment_expression "DAT_0003c358 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = piVar5;" (assignment_expression "piVar7 = piVar5" identifier = identifier) ;) (do_statement "do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);" do (compound_statement "{\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        }" { (expression_statement "iVar4 = *(int *)(*piVar7 + 0x6c);" (assignment_expression "iVar4 = *(int *)(*piVar7 + 0x6c)" identifier = (pointer_expression "*(int *)(*piVar7 + 0x6c)" * (cast_expression "(int *)(*piVar7 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar7 + 0x6c)" ( (binary_expression "*piVar7 + 0x6c" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) ;) (expression_statement "piVar5[DAT_0003c358] = *piVar7;" (assignment_expression "piVar5[DAT_0003c358] = *piVar7" (subscript_expression "piVar5[DAT_0003c358]" identifier [ identifier ]) = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);" (assignment_expression "DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9)" identifier = (binary_expression "DAT_0003c358 + (uint)(iVar4 != 9)" identifier + (call_expression "(uint)(iVar4 != 9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 != 9)" ( (binary_expression "iVar4 != 9" identifier != number_literal) ))))) ;) }) while (parenthesized_expression "(piVar1 != piVar7)" ( (binary_expression "piVar1 != piVar7" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)piVar5[iVar4];" (assignment_expression "puVar2 = (undefined4 *)piVar5[iVar4]" identifier = (cast_expression "(undefined4 *)piVar5[iVar4]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[iVar4]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9))" ( (binary_expression "(puVar2[0x1b] != 3) && (puVar2[0x1b] != 9)" (parenthesized_expression "(puVar2[0x1b] != 3)" ( (binary_expression "puVar2[0x1b] != 3" (subscript_expression "puVar2[0x1b]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(puVar2[0x1b] != 9)" ( (binary_expression "puVar2[0x1b] != 9" (subscript_expression "puVar2[0x1b]" identifier [ number_literal ]) != number_literal) ))) )) ;)) (expression_statement "pcVar3 = (char *)*puVar2;" (assignment_expression "pcVar3 = (char *)*puVar2" identifier = (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (if_statement "if (param_1 != 0) goto code_r0x00015040;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (goto_statement "goto code_r0x00015040;" goto statement_identifier ;)) (goto_statement "goto LAB_000150f0;" goto statement_identifier ;) (labeled_statement "code_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);" statement_identifier : (expression_statement "pcVar6 = (char *)FUN_0001c0f0(pcVar3);" (assignment_expression "pcVar6 = (char *)FUN_0001c0f0(pcVar3)" identifier = (cast_expression "(char *)FUN_0001c0f0(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c0f0(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;)) (if_statement "if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }" if (parenthesized_expression "((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/'))))" ( (binary_expression "(*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))" (parenthesized_expression "(*pcVar6 != '.')" ( (binary_expression "*pcVar6 != '.'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'.'" ' character ')) )) || (parenthesized_expression "((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))" ( (parenthesized_expression "(piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/'))" ( (comma_expression "piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) , (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')" (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '\0'" (subscript_expression "pcVar6[(pcVar6[1] == '.') + 1]" identifier [ (binary_expression "(pcVar6[1] == '.') + 1" (parenthesized_expression "(pcVar6[1] == '.')" ( (binary_expression "pcVar6[1] == '.'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'.'" ' character ')) )) + number_literal) ]) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(pcVar6[(pcVar6[1] == '.') + 1] != '/')" ( (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '/'" (subscript_expression "pcVar6[(pcVar6[1] == '.') + 1]" identifier [ (binary_expression "(pcVar6[1] == '.') + 1" (parenthesized_expression "(pcVar6[1] == '.')" ( (binary_expression "pcVar6[1] == '.'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) == (char_literal "'.'" ' character ')) )) + number_literal) ]) != (char_literal "'/'" ' character ')) )))) )) ))) )) (compound_statement "{\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }" { (if_statement "if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" if (parenthesized_expression "(*pcVar3 == '/')" ( (binary_expression "*pcVar3 == '/'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\nLAB_000150f0:\n      FUN_00014a20();\n    }" { (labeled_statement "LAB_000150f0:\n      FUN_00014a20();" statement_identifier : (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" identifier (argument_list "()" ( ))) ;)) }) (else_clause "else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" else (compound_statement "{\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" { (expression_statement "__ptr = (void *)FUN_0001c520(param_1,pcVar3,0);" (assignment_expression "__ptr = (void *)FUN_0001c520(param_1,pcVar3,0)" identifier = (cast_expression "(void *)FUN_0001c520(param_1,pcVar3,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c520(param_1,pcVar3,0)" identifier (argument_list "(param_1,pcVar3,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) (if_statement "if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }" if (parenthesized_expression "(puVar2[0x1b] == 9)" ( (binary_expression "puVar2[0x1b] == 9" (subscript_expression "puVar2[0x1b]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }" { (expression_statement "FUN_00014af0();" (call_expression "FUN_00014af0()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" identifier = identifier) ;) })) })) (goto_statement "goto joined_r0x00015016;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ]))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) + LIT) ]) != (char_literal ' escape_sequence ')) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) + LIT) ]) != (char_literal ' character ')) )))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (goto_statement goto statement_identifier ;) })))
(function_definition "void __regparm3 FUN_00014fd0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00014fd0(int param_1)" (identifier "FUN_00014fd0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  char *pcVar6;\n  void *__ptr;\n  int *piVar7;\n  \n  piVar5 = DAT_0003c350;\n  iVar4 = DAT_0003c358;\n  if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }\njoined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));\n  pcVar3 = (char *)*puVar2;\n  if (param_1 != 0) goto code_r0x00015040;\n  goto LAB_000150f0;\ncode_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);\n  if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }\n  goto joined_r0x00015016;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" (identifier "piVar5") (= "=") (identifier "DAT_0003c350")) (; ";")) (expression_statement "iVar4 = DAT_0003c358;" (assignment_expression "iVar4 = DAT_0003c358" (identifier "iVar4") (= "=") (identifier "DAT_0003c358")) (; ";")) (if_statement "if ((param_1 != 0) && (DAT_0003c364 != 0)) {\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (DAT_0003c364 != 0))" (( "(") (binary_expression "(param_1 != 0) && (DAT_0003c364 != 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(DAT_0003c364 != 0)" (( "(") (binary_expression "DAT_0003c364 != 0" (identifier "DAT_0003c364") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00014a20();\n    piVar5 = DAT_0003c350;\n    iVar4 = DAT_0003c358;\n  }" ({ "{") (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" (identifier "FUN_00014a20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" (identifier "piVar5") (= "=") (identifier "DAT_0003c350")) (; ";")) (expression_statement "iVar4 = DAT_0003c358;" (assignment_expression "iVar4 = DAT_0003c358" (identifier "iVar4") (= "=") (identifier "DAT_0003c358")) (; ";")) (} "}"))) (labeled_statement "joined_r0x00015016:\n  do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));" (statement_identifier "joined_r0x00015016") (: ":") (do_statement "do {\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));" (do "do") (compound_statement "{\n    iVar4 = iVar4 + -1;\n    DAT_0003c350 = piVar5;\n    if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }\n    puVar2 = (undefined4 *)piVar5[iVar4];\n  }" ({ "{") (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "DAT_0003c350 = piVar5;" (assignment_expression "DAT_0003c350 = piVar5" (identifier "DAT_0003c350") (= "=") (identifier "piVar5")) (; ";")) (if_statement "if (iVar4 == -1) {\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }\n      return;\n    }" ({ "{") (if_statement "if (DAT_0003c358 != 0) {\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }" (if "if") (parenthesized_expression "(DAT_0003c358 != 0)" (( "(") (binary_expression "DAT_0003c358 != 0" (identifier "DAT_0003c358") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar1 = piVar5 + DAT_0003c358;\n        DAT_0003c358 = 0;\n        piVar7 = piVar5;\n        do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);\n      }" ({ "{") (expression_statement "piVar1 = piVar5 + DAT_0003c358;" (assignment_expression "piVar1 = piVar5 + DAT_0003c358" (identifier "piVar1") (= "=") (binary_expression "piVar5 + DAT_0003c358" (identifier "piVar5") (+ "+") (identifier "DAT_0003c358"))) (; ";")) (expression_statement "DAT_0003c358 = 0;" (assignment_expression "DAT_0003c358 = 0" (identifier "DAT_0003c358") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar7 = piVar5;" (assignment_expression "piVar7 = piVar5" (identifier "piVar7") (= "=") (identifier "piVar5")) (; ";")) (do_statement "do {\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        } while (piVar1 != piVar7);" (do "do") (compound_statement "{\n          iVar4 = *(int *)(*piVar7 + 0x6c);\n          piVar5[DAT_0003c358] = *piVar7;\n          piVar7 = piVar7 + 1;\n          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);\n        }" ({ "{") (expression_statement "iVar4 = *(int *)(*piVar7 + 0x6c);" (assignment_expression "iVar4 = *(int *)(*piVar7 + 0x6c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*piVar7 + 0x6c)" (* "*") (cast_expression "(int *)(*piVar7 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar7 + 0x6c)" (( "(") (binary_expression "*piVar7 + 0x6c" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "piVar5[DAT_0003c358] = *piVar7;" (assignment_expression "piVar5[DAT_0003c358] = *piVar7" (subscript_expression "piVar5[DAT_0003c358]" (identifier "piVar5") ([ "[") (identifier "DAT_0003c358") (] "]")) (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);" (assignment_expression "DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9)" (identifier "DAT_0003c358") (= "=") (binary_expression "DAT_0003c358 + (uint)(iVar4 != 9)" (identifier "DAT_0003c358") (+ "+") (call_expression "(uint)(iVar4 != 9)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar4 != 9)" (( "(") (binary_expression "iVar4 != 9" (identifier "iVar4") (!= "!=") (number_literal "9")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar1 != piVar7)" (( "(") (binary_expression "piVar1 != piVar7" (identifier "piVar1") (!= "!=") (identifier "piVar7")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)piVar5[iVar4];" (assignment_expression "puVar2 = (undefined4 *)piVar5[iVar4]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)piVar5[iVar4]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[iVar4]" (identifier "piVar5") ([ "[") (identifier "iVar4") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9))" (( "(") (binary_expression "(puVar2[0x1b] != 3) && (puVar2[0x1b] != 9)" (parenthesized_expression "(puVar2[0x1b] != 3)" (( "(") (binary_expression "puVar2[0x1b] != 3" (subscript_expression "puVar2[0x1b]" (identifier "puVar2") ([ "[") (number_literal "0x1b") (] "]")) (!= "!=") (number_literal "3")) () ")")) (&& "&&") (parenthesized_expression "(puVar2[0x1b] != 9)" (( "(") (binary_expression "puVar2[0x1b] != 9" (subscript_expression "puVar2[0x1b]" (identifier "puVar2") ([ "[") (number_literal "0x1b") (] "]")) (!= "!=") (number_literal "9")) () ")"))) () ")")) (; ";"))) (expression_statement "pcVar3 = (char *)*puVar2;" (assignment_expression "pcVar3 = (char *)*puVar2" (identifier "pcVar3") (= "=") (cast_expression "(char *)*puVar2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (if_statement "if (param_1 != 0) goto code_r0x00015040;" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto code_r0x00015040;" (goto "goto") (statement_identifier "code_r0x00015040") (; ";"))) (goto_statement "goto LAB_000150f0;" (goto "goto") (statement_identifier "LAB_000150f0") (; ";")) (labeled_statement "code_r0x00015040:\n  pcVar6 = (char *)FUN_0001c0f0(pcVar3);" (statement_identifier "code_r0x00015040") (: ":") (expression_statement "pcVar6 = (char *)FUN_0001c0f0(pcVar3);" (assignment_expression "pcVar6 = (char *)FUN_0001c0f0(pcVar3)" (identifier "pcVar6") (= "=") (cast_expression "(char *)FUN_0001c0f0(pcVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c0f0(pcVar3)" (identifier "FUN_0001c0f0") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))))) (; ";"))) (if_statement "if ((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }" (if "if") (parenthesized_expression "((*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/'))))" (( "(") (binary_expression "(*pcVar6 != '.') ||\n     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))" (parenthesized_expression "(*pcVar6 != '.')" (( "(") (binary_expression "*pcVar6 != '.'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (!= "!=") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))" (( "(") (parenthesized_expression "(piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/'))" (( "(") (comma_expression "piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')" (assignment_expression "piVar5 = DAT_0003c350" (identifier "piVar5") (= "=") (identifier "DAT_0003c350")) (, ",") (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&\n      (pcVar6[(pcVar6[1] == '.') + 1] != '/')" (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '\0'" (subscript_expression "pcVar6[(pcVar6[1] == '.') + 1]" (identifier "pcVar6") ([ "[") (binary_expression "(pcVar6[1] == '.') + 1" (parenthesized_expression "(pcVar6[1] == '.')" (( "(") (binary_expression "pcVar6[1] == '.'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (+ "+") (number_literal "1")) (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "(pcVar6[(pcVar6[1] == '.') + 1] != '/')" (( "(") (binary_expression "pcVar6[(pcVar6[1] == '.') + 1] != '/'" (subscript_expression "pcVar6[(pcVar6[1] == '.') + 1]" (identifier "pcVar6") ([ "[") (binary_expression "(pcVar6[1] == '.') + 1" (parenthesized_expression "(pcVar6[1] == '.')" (( "(") (binary_expression "pcVar6[1] == '.'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (+ "+") (number_literal "1")) (] "]")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }\n    piVar5 = DAT_0003c350;\n    if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }\n  }" ({ "{") (if_statement "if (*pcVar3 == '/') {\nLAB_000150f0:\n      FUN_00014a20();\n    }\n    else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" (if "if") (parenthesized_expression "(*pcVar3 == '/')" (( "(") (binary_expression "*pcVar3 == '/'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\nLAB_000150f0:\n      FUN_00014a20();\n    }" ({ "{") (labeled_statement "LAB_000150f0:\n      FUN_00014a20();" (statement_identifier "LAB_000150f0") (: ":") (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" (identifier "FUN_00014a20") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" (else "else") (compound_statement "{\n      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);\n      FUN_00014a20();\n      free(__ptr);\n    }" ({ "{") (expression_statement "__ptr = (void *)FUN_0001c520(param_1,pcVar3,0);" (assignment_expression "__ptr = (void *)FUN_0001c520(param_1,pcVar3,0)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_0001c520(param_1,pcVar3,0)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c520(param_1,pcVar3,0)" (identifier "FUN_0001c520") (argument_list "(param_1,pcVar3,0)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar3") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "FUN_00014a20();" (call_expression "FUN_00014a20()" (identifier "FUN_00014a20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")))) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" (identifier "piVar5") (= "=") (identifier "DAT_0003c350")) (; ";")) (if_statement "if (puVar2[0x1b] == 9) {\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }" (if "if") (parenthesized_expression "(puVar2[0x1b] == 9)" (( "(") (binary_expression "puVar2[0x1b] == 9" (subscript_expression "puVar2[0x1b]" (identifier "puVar2") ([ "[") (number_literal "0x1b") (] "]")) (== "==") (number_literal "9")) () ")")) (compound_statement "{\n      FUN_00014af0();\n      piVar5 = DAT_0003c350;\n    }" ({ "{") (expression_statement "FUN_00014af0();" (call_expression "FUN_00014af0()" (identifier "FUN_00014af0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar5 = DAT_0003c350;" (assignment_expression "piVar5 = DAT_0003c350" (identifier "piVar5") (= "=") (identifier "DAT_0003c350")) (; ";")) (} "}"))) (} "}"))) (goto_statement "goto joined_r0x00015016;" (goto "goto") (statement_identifier "joined_r0x00015016") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_1,type_1 command_line_arg)

{
  void **var_9;
  type_2 *f;
  int var_8;
  size_t var_4;
  void **var_6;
  char *pcVar5;
  char *pcVar6;
  void **var_7;
  
  var_6 = sorted_file;
  var_4 = var_5;
  if ((var_1 != (char *)0x0) && (var_2 != (type_3 *)0x0)) {
    var_3((char *)0x0,var_1,false);
    var_6 = sorted_file;
    var_4 = var_5;
  }
joined_r0x00015016:
  do {
    var_4 = var_4 - 1;
    sorted_file = var_6;
    if (var_4 == 0xffffffff) {
      if (var_5 != 0) {
        var_9 = var_6 + var_5;
        var_5 = 0;
        var_7 = var_6;
        do {
          var_8 = *(int *)((int)*var_7 + 0x6c);
          var_6[var_5] = *var_7;
          var_7 = var_7 + 1;
          var_5 = var_5 + (var_8 != 9);
        } while (var_9 != var_7);
      }
      return;
    }
    f = (type_2 *)var_6[var_4];
  } while ((f->filetype != var_10) && (f->filetype != var_11));
  pcVar6 = f->name;
  if (var_1 != (char *)0x0) goto code_r0x00015040;
  goto LAB_000150f0;
code_r0x00015040:
  pcVar5 = var_12(pcVar6);
  if ((*pcVar5 != '.') ||
     ((var_6 = sorted_file, pcVar5[(pcVar5[1] == '.') + 1] != '\0' &&
      (pcVar5[(pcVar5[1] == '.') + 1] != '/')))) {
    if (*pcVar6 == '/') {
LAB_000150f0:
      var_3(pcVar6,f->linkname,command_line_arg);
    }
    else {
      pcVar6 = var_13(var_1,pcVar6,(char **)0x0);
      var_3(pcVar6,f->linkname,command_line_arg);
      var_14(pcVar6);
    }
    var_6 = sorted_file;
    if (f->filetype == var_11) {
      var_15(f);
      var_6 = sorted_file;
    }
  }
  goto joined_r0x00015016;
}


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

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

void __regparm3 MASKED(int param_1)

{
  int *piVar1;
  undefined4 *puVar2;
  char *pcVar3;
  int iVar4;
  int *piVar5;
  char *pcVar6;
  void *__ptr;
  int *piVar7;
  
  piVar5 = DAT_0003c350;
  iVar4 = DAT_0003c358;
  if ((param_1 != 0) && (DAT_0003c364 != 0)) {
    FUN_00014a20();
    piVar5 = DAT_0003c350;
    iVar4 = DAT_0003c358;
  }
joined_r0x00015016:
  do {
    iVar4 = iVar4 + -1;
    DAT_0003c350 = piVar5;
    if (iVar4 == -1) {
      if (DAT_0003c358 != 0) {
        piVar1 = piVar5 + DAT_0003c358;
        DAT_0003c358 = 0;
        piVar7 = piVar5;
        do {
          iVar4 = *(int *)(*piVar7 + 0x6c);
          piVar5[DAT_0003c358] = *piVar7;
          piVar7 = piVar7 + 1;
          DAT_0003c358 = DAT_0003c358 + (uint)(iVar4 != 9);
        } while (piVar1 != piVar7);
      }
      return;
    }
    puVar2 = (undefined4 *)piVar5[iVar4];
  } while ((puVar2[0x1b] != 3) && (puVar2[0x1b] != 9));
  pcVar3 = (char *)*puVar2;
  if (param_1 != 0) goto code_r0x00015040;
  goto LAB_000150f0;
code_r0x00015040:
  pcVar6 = (char *)FUN_0001c0f0(pcVar3);
  if ((*pcVar6 != '.') ||
     ((piVar5 = DAT_0003c350, pcVar6[(pcVar6[1] == '.') + 1] != '\0' &&
      (pcVar6[(pcVar6[1] == '.') + 1] != '/')))) {
    if (*pcVar3 == '/') {
LAB_000150f0:
      FUN_00014a20();
    }
    else {
      __ptr = (void *)FUN_0001c520(param_1,pcVar3,0);
      FUN_00014a20();
      free(__ptr);
    }
    piVar5 = DAT_0003c350;
    if (puVar2[0x1b] == 9) {
      FUN_00014af0();
      piVar5 = DAT_0003c350;
    }
  }
  goto joined_r0x00015016;
}

