
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int savewd_process_files
              (int n_files,char **file,_func_int_char_ptr_savewd_ptr_void_ptr *act,void *options)

{
  int iVar1;
  int iVar2;
  char **ppcVar3;
  int status;
  int iVar4;
  int in_GS_OFFSET;
  savewd wd;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  wd.state = DT_UNKNOWN;
  iVar4 = n_files + -1;
  if (-1 < iVar4) {
    do {
      if (*file[iVar4] != '/') {
        if (0 < iVar4) {
          status = 0;
          ppcVar3 = file;
          do {
            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&
               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {
              status = iVar2;
            }
            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {
              status = iVar2;
            }
            ppcVar3 = ppcVar3 + 1;
          } while (ppcVar3 != file + iVar4);
          goto LAB_000188c8;
        }
        break;
      }
      iVar4 = iVar4 + -1;
    } while (iVar4 != -1);
  }
  status = 0;
  iVar4 = 0;
LAB_000188c8:
  savewd_finish(&wd);
  if (iVar4 < n_files) {
    ppcVar3 = file + iVar4;
    do {
      iVar4 = (*act)(*ppcVar3,&wd,options);
      if (status < iVar4) {
        status = iVar4;
      }
      ppcVar3 = ppcVar3 + 1;
    } while (file + n_files != ppcVar3);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return status;
}



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

int FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x187e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_28 = 0;
  iVar4 = param_1 + -1;
  if (-1 < iVar4) {
    do {
      if (*(char *)param_2[iVar4] != '/') {
        if (0 < iVar4) {
          iVar3 = 0;
          puVar2 = param_2;
          do {
            if (((local_28 != 3) || (local_24 < 1)) &&
               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {
              iVar3 = iVar1;
            }
            if ((*(char *)puVar2[1] != '/') &&
               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {
              iVar3 = iVar1;
            }
            puVar2 = puVar2 + 1;
          } while (puVar2 != param_2 + iVar4);
          goto LAB_000188c8;
        }
        break;
      }
      iVar4 = iVar4 + -1;
    } while (iVar4 != -1);
  }
  iVar3 = 0;
  iVar4 = 0;
LAB_000188c8:
  FUN_00018740(&local_28);
  if (iVar4 < param_1) {
    puVar2 = param_2 + iVar4;
    do {
      iVar4 = (*param_3)(*puVar2,&local_28,param_4);
      if (iVar3 < iVar4) {
        iVar3 = iVar4;
      }
      puVar2 = puVar2 + 1;
    } while (param_2 + param_1 != puVar2);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00020910();
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012a80
ADD EBX,0x10817
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x58]
MOV EDI,dword ptr [ESP + 0x50]
MOV ECX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x24],0x0
SUB EDI,0x1
JNS 0x0001883c
JMP 0x00018930
SUB EDI,0x1
CMP EDI,-0x1
JZ 0x00018930
MOV EAX,dword ptr [ECX + EDI*0x4]
CMP byte ptr [EAX],0x2f
JZ 0x00018830
TEST EDI,EDI
JLE 0x00018930
LEA EAX,[ECX + EDI*0x4]
MOV dword ptr [ESP + 0x18],EDI
XOR ESI,ESI
LEA EBP,[ESP + 0x24]
MOV dword ptr [ESP + 0x14],EAX
MOV EDI,ECX
XOR EAX,EAX
MOV dword ptr [ESP + 0x1c],ECX
JMP 0x000188af
SUB ESP,0x4
PUSH dword ptr [ESP + 0x14]
PUSH EBP
PUSH dword ptr [EDI]
MOV EAX,dword ptr [ESP + 0x1c]
CALL EAX
ADD ESP,0x10
CMP ESI,EAX
CMOVL ESI,EAX
MOV EAX,dword ptr [EDI + 0x4]
CMP byte ptr [EAX],0x2f
JZ 0x000188a2
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x000185d0
ADD ESP,0x10
CMP ESI,EAX
CMOVL ESI,EAX
ADD EDI,0x4
CMP EDI,dword ptr [ESP + 0x14]
JZ 0x000188c0
MOV EAX,dword ptr [ESP + 0x24]
CMP EAX,0x3
JNZ 0x00018870
MOV EAX,dword ptr [ESP + 0x28]
TEST EAX,EAX
JG 0x00018888
JMP 0x00018870
MOV EDI,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x14],ECX
SUB ESP,0xc
PUSH EBP
CALL 0x00018740
ADD ESP,0x10
CMP dword ptr [ESP + 0x50],EDI
JLE 0x00018919
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x50]
LEA EBX,[ECX + EDI*0x4]
LEA EDI,[ECX + EAX*0x4]
MOV EAX,EBP
MOV EBP,ESI
MOV ESI,EAX
LEA ESI,[ESI]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x14]
PUSH ESI
PUSH dword ptr [EBX]
MOV EAX,dword ptr [ESP + 0x1c]
CALL EAX
ADD ESP,0x10
CMP EBP,EAX
CMOVL EBP,EAX
ADD EBX,0x4
CMP EDI,EBX
JNZ 0x000188f8
MOV ESI,EBP
MOV EDX,dword ptr [ESP + 0x2c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0001893a
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR ESI,ESI
XOR EDI,EDI
LEA EBP,[ESP + 0x24]
JMP 0x000188c8
CALL 0x00020910
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x187e9;" (assignment_expression "uStack_14 = 0x187e9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = param_1 + -1;" (assignment_expression "iVar4 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" { (do_statement "do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);" do (compound_statement "{\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    }" { (if_statement "if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" if (parenthesized_expression "(*(char *)param_2[iVar4] != '/')" ( (binary_expression "*(char *)param_2[iVar4] != '/'" (pointer_expression "*(char *)param_2[iVar4]" * (cast_expression "(char *)param_2[iVar4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[iVar4]" identifier [ identifier ]))) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" { (if_statement "if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);" do (compound_statement "{\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          }" { (if_statement "if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }" if (parenthesized_expression "(((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1))" ( (binary_expression "((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)" (parenthesized_expression "((local_28 != 3) || (local_24 < 1))" ( (binary_expression "(local_28 != 3) || (local_24 < 1)" (parenthesized_expression "(local_28 != 3)" ( (binary_expression "local_28 != 3" identifier != number_literal) )) || (parenthesized_expression "(local_24 < 1)" ( (binary_expression "local_24 < 1" identifier < number_literal) ))) )) && (parenthesized_expression "(iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)" ( (comma_expression "iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1" (assignment_expression "iVar1 = (*param_3)(*puVar2,&local_28,param_4)" identifier = (call_expression "(*param_3)(*puVar2,&local_28,param_4)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(*puVar2,&local_28,param_4)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "&local_28" & identifier) , identifier )))) , (binary_expression "iVar3 < iVar1" identifier < identifier)) ))) )) (compound_statement "{\n              iVar3 = iVar1;\n            }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) })) (if_statement "if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }" if (parenthesized_expression "((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1))" ( (binary_expression "(*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)" (parenthesized_expression "(*(char *)puVar2[1] != '/')" ( (binary_expression "*(char *)puVar2[1] != '/'" (pointer_expression "*(char *)puVar2[1]" * (cast_expression "(char *)puVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) != (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)" ( (comma_expression "iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1" (assignment_expression "iVar1 = FUN_000185d0(&local_28,iVar3)" identifier = (call_expression "FUN_000185d0(&local_28,iVar3)" identifier (argument_list "(&local_28,iVar3)" ( (pointer_expression "&local_28" & identifier) , identifier )))) , (binary_expression "iVar3 < iVar1" identifier < identifier)) ))) )) (compound_statement "{\n              iVar3 = iVar1;\n            }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != param_2 + iVar4)" ( (binary_expression "puVar2 != param_2 + iVar4" identifier != (binary_expression "param_2 + iVar4" identifier + identifier)) )) ;) (goto_statement "goto LAB_000188c8;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000188c8:\n  FUN_00018740(&local_28);" statement_identifier : (expression_statement "FUN_00018740(&local_28);" (call_expression "FUN_00018740(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;)) (if_statement "if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }" if (parenthesized_expression "(iVar4 < param_1)" ( (binary_expression "iVar4 < param_1" identifier < identifier) )) (compound_statement "{\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }" { (expression_statement "puVar2 = param_2 + iVar4;" (assignment_expression "puVar2 = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);" do (compound_statement "{\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "iVar4 = (*param_3)(*puVar2,&local_28,param_4);" (assignment_expression "iVar4 = (*param_3)(*puVar2,&local_28,param_4)" identifier = (call_expression "(*param_3)(*puVar2,&local_28,param_4)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(*puVar2,&local_28,param_4)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "&local_28" & identifier) , identifier )))) ;) (if_statement "if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }" if (parenthesized_expression "(iVar3 < iVar4)" ( (binary_expression "iVar3 < iVar4" identifier < identifier) )) (compound_statement "{\n        iVar3 = iVar4;\n      }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 + param_1 != puVar2)" ( (binary_expression "param_2 + param_1 != puVar2" (binary_expression "param_2 + param_1" identifier + identifier) != identifier) )) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }" { comment (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint savewd_process_files\n              (int n_files,char **file,_func_int_char_ptr_savewd_ptr_void_ptr *act,void *options)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  int status;\n  int iVar4;\n  int in_GS_OFFSET;\n  savewd wd;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  wd.state = DT_UNKNOWN;\n  iVar4 = n_files + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  status = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  savewd_finish(&wd);\n  if (iVar4 < n_files) {\n    ppcVar3 = file + iVar4;\n    do {\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    } while (file + n_files != ppcVar3);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return status;\n}\n\n" comment comment comment (function_definition "int savewd_process_files\n              (int n_files,char **file,_func_int_char_ptr_savewd_ptr_void_ptr *act,void *options)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  int status;\n  int iVar4;\n  int in_GS_OFFSET;\n  savewd wd;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  wd.state = DT_UNKNOWN;\n  iVar4 = n_files + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  status = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  savewd_finish(&wd);\n  if (iVar4 < n_files) {\n    ppcVar3 = file + iVar4;\n    do {\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    } while (file + n_files != ppcVar3);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return status;\n}" primitive_type (function_declarator "savewd_process_files\n              (int n_files,char **file,_func_int_char_ptr_savewd_ptr_void_ptr *act,void *options)" identifier (parameter_list "(int n_files,char **file,_func_int_char_ptr_savewd_ptr_void_ptr *act,void *options)" ( (parameter_declaration "int n_files" primitive_type identifier) , (parameter_declaration "char **file" primitive_type (pointer_declarator "**file" * (pointer_declarator "*file" * identifier))) , (parameter_declaration "_func_int_char_ptr_savewd_ptr_void_ptr *act" type_identifier (pointer_declarator "*act" * identifier)) , (parameter_declaration "void *options" primitive_type (pointer_declarator "*options" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  int status;\n  int iVar4;\n  int in_GS_OFFSET;\n  savewd wd;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  wd.state = DT_UNKNOWN;\n  iVar4 = n_files + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  status = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  savewd_finish(&wd);\n  if (iVar4 < n_files) {\n    ppcVar3 = file + iVar4;\n    do {\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    } while (file + n_files != ppcVar3);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return status;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (declaration "int status;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "savewd wd;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "wd.state = DT_UNKNOWN;" (assignment_expression "wd.state = DT_UNKNOWN" (field_expression "wd.state" identifier . field_identifier) = identifier) ;) (expression_statement "iVar4 = n_files + -1;" (assignment_expression "iVar4 = n_files + -1" identifier = (binary_expression "n_files + -1" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n    do {\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" { (do_statement "do {\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);" do (compound_statement "{\n      if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    }" { (if_statement "if (*file[iVar4] != '/') {\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" if (parenthesized_expression "(*file[iVar4] != '/')" ( (binary_expression "*file[iVar4] != '/'" (pointer_expression "*file[iVar4]" * (subscript_expression "file[iVar4]" identifier [ identifier ])) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n        if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" { (if_statement "if (0 < iVar4) {\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n          status = 0;\n          ppcVar3 = file;\n          do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);\n          goto LAB_000188c8;\n        }" { (expression_statement "status = 0;" (assignment_expression "status = 0" identifier = number_literal) ;) (expression_statement "ppcVar3 = file;" (assignment_expression "ppcVar3 = file" identifier = identifier) ;) (do_statement "do {\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          } while (ppcVar3 != file + iVar4);" do (compound_statement "{\n            if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }\n            if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }\n            ppcVar3 = ppcVar3 + 1;\n          }" { (if_statement "if (((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)) {\n              status = iVar2;\n            }" if (parenthesized_expression "(((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2))" ( (binary_expression "((wd.state != FORKING_STATE) || (wd.val.fd < 1)) &&\n               (iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)" (parenthesized_expression "((wd.state != FORKING_STATE) || (wd.val.fd < 1))" ( (binary_expression "(wd.state != FORKING_STATE) || (wd.val.fd < 1)" (parenthesized_expression "(wd.state != FORKING_STATE)" ( (binary_expression "wd.state != FORKING_STATE" (field_expression "wd.state" identifier . field_identifier) != identifier) )) || (parenthesized_expression "(wd.val.fd < 1)" ( (binary_expression "wd.val.fd < 1" (field_expression "wd.val.fd" (field_expression "wd.val" identifier . field_identifier) . field_identifier) < number_literal) ))) )) && (parenthesized_expression "(iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2)" ( (comma_expression "iVar2 = (*act)(*ppcVar3,&wd,options), status < iVar2" (assignment_expression "iVar2 = (*act)(*ppcVar3,&wd,options)" identifier = (call_expression "(*act)(*ppcVar3,&wd,options)" (parenthesized_expression "(*act)" ( (pointer_expression "*act" * identifier) )) (argument_list "(*ppcVar3,&wd,options)" ( (pointer_expression "*ppcVar3" * identifier) , (pointer_expression "&wd" & identifier) , identifier )))) , (binary_expression "status < iVar2" identifier < identifier)) ))) )) (compound_statement "{\n              status = iVar2;\n            }" { (expression_statement "status = iVar2;" (assignment_expression "status = iVar2" identifier = identifier) ;) })) (if_statement "if ((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)) {\n              status = iVar2;\n            }" if (parenthesized_expression "((*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2))" ( (binary_expression "(*ppcVar3[1] != '/') && (iVar2 = savewd_restore(&wd,status), status < iVar2)" (parenthesized_expression "(*ppcVar3[1] != '/')" ( (binary_expression "*ppcVar3[1] != '/'" (pointer_expression "*ppcVar3[1]" * (subscript_expression "ppcVar3[1]" identifier [ number_literal ])) != (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(iVar2 = savewd_restore(&wd,status), status < iVar2)" ( (comma_expression "iVar2 = savewd_restore(&wd,status), status < iVar2" (assignment_expression "iVar2 = savewd_restore(&wd,status)" identifier = (call_expression "savewd_restore(&wd,status)" identifier (argument_list "(&wd,status)" ( (pointer_expression "&wd" & identifier) , identifier )))) , (binary_expression "status < iVar2" identifier < identifier)) ))) )) (compound_statement "{\n              status = iVar2;\n            }" { (expression_statement "status = iVar2;" (assignment_expression "status = iVar2" identifier = identifier) ;) })) (expression_statement "ppcVar3 = ppcVar3 + 1;" (assignment_expression "ppcVar3 = ppcVar3 + 1" identifier = (binary_expression "ppcVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppcVar3 != file + iVar4)" ( (binary_expression "ppcVar3 != file + iVar4" identifier != (binary_expression "file + iVar4" identifier + identifier)) )) ;) (goto_statement "goto LAB_000188c8;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) })) (expression_statement "status = 0;" (assignment_expression "status = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000188c8:\n  savewd_finish(&wd);" statement_identifier : (expression_statement "savewd_finish(&wd);" (call_expression "savewd_finish(&wd)" identifier (argument_list "(&wd)" ( (pointer_expression "&wd" & identifier) ))) ;)) (if_statement "if (iVar4 < n_files) {\n    ppcVar3 = file + iVar4;\n    do {\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    } while (file + n_files != ppcVar3);\n  }" if (parenthesized_expression "(iVar4 < n_files)" ( (binary_expression "iVar4 < n_files" identifier < identifier) )) (compound_statement "{\n    ppcVar3 = file + iVar4;\n    do {\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    } while (file + n_files != ppcVar3);\n  }" { (expression_statement "ppcVar3 = file + iVar4;" (assignment_expression "ppcVar3 = file + iVar4" identifier = (binary_expression "file + iVar4" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    } while (file + n_files != ppcVar3);" do (compound_statement "{\n      iVar4 = (*act)(*ppcVar3,&wd,options);\n      if (status < iVar4) {\n        status = iVar4;\n      }\n      ppcVar3 = ppcVar3 + 1;\n    }" { (expression_statement "iVar4 = (*act)(*ppcVar3,&wd,options);" (assignment_expression "iVar4 = (*act)(*ppcVar3,&wd,options)" identifier = (call_expression "(*act)(*ppcVar3,&wd,options)" (parenthesized_expression "(*act)" ( (pointer_expression "*act" * identifier) )) (argument_list "(*ppcVar3,&wd,options)" ( (pointer_expression "*ppcVar3" * identifier) , (pointer_expression "&wd" & identifier) , identifier )))) ;) (if_statement "if (status < iVar4) {\n        status = iVar4;\n      }" if (parenthesized_expression "(status < iVar4)" ( (binary_expression "status < iVar4" identifier < identifier) )) (compound_statement "{\n        status = iVar4;\n      }" { (expression_statement "status = iVar4;" (assignment_expression "status = iVar4" identifier = identifier) ;) })) (expression_statement "ppcVar3 = ppcVar3 + 1;" (assignment_expression "ppcVar3 = ppcVar3 + 1" identifier = (binary_expression "ppcVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(file + n_files != ppcVar3)" ( (binary_expression "file + n_files != ppcVar3" (binary_expression "file + n_files" identifier + identifier) != identifier) )) ;) })) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return status;" return identifier ;) })))
(translation_unit "int FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x187e9;" (assignment_expression "uStack_14 = 0x187e9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = param_1 + -1;" (assignment_expression "iVar4 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" { (do_statement "do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);" do (compound_statement "{\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    }" { (if_statement "if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" if (parenthesized_expression "(*(char *)param_2[iVar4] != '/')" ( (binary_expression "*(char *)param_2[iVar4] != '/'" (pointer_expression "*(char *)param_2[iVar4]" * (cast_expression "(char *)param_2[iVar4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[iVar4]" identifier [ identifier ]))) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" { (if_statement "if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);" do (compound_statement "{\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          }" { (if_statement "if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }" if (parenthesized_expression "(((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1))" ( (binary_expression "((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)" (parenthesized_expression "((local_28 != 3) || (local_24 < 1))" ( (binary_expression "(local_28 != 3) || (local_24 < 1)" (parenthesized_expression "(local_28 != 3)" ( (binary_expression "local_28 != 3" identifier != number_literal) )) || (parenthesized_expression "(local_24 < 1)" ( (binary_expression "local_24 < 1" identifier < number_literal) ))) )) && (parenthesized_expression "(iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)" ( (comma_expression "iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1" (assignment_expression "iVar1 = (*param_3)(*puVar2,&local_28,param_4)" identifier = (call_expression "(*param_3)(*puVar2,&local_28,param_4)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(*puVar2,&local_28,param_4)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "&local_28" & identifier) , identifier )))) , (binary_expression "iVar3 < iVar1" identifier < identifier)) ))) )) (compound_statement "{\n              iVar3 = iVar1;\n            }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) })) (if_statement "if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }" if (parenthesized_expression "((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1))" ( (binary_expression "(*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)" (parenthesized_expression "(*(char *)puVar2[1] != '/')" ( (binary_expression "*(char *)puVar2[1] != '/'" (pointer_expression "*(char *)puVar2[1]" * (cast_expression "(char *)puVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) != (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)" ( (comma_expression "iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1" (assignment_expression "iVar1 = FUN_000185d0(&local_28,iVar3)" identifier = (call_expression "FUN_000185d0(&local_28,iVar3)" identifier (argument_list "(&local_28,iVar3)" ( (pointer_expression "&local_28" & identifier) , identifier )))) , (binary_expression "iVar3 < iVar1" identifier < identifier)) ))) )) (compound_statement "{\n              iVar3 = iVar1;\n            }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != param_2 + iVar4)" ( (binary_expression "puVar2 != param_2 + iVar4" identifier != (binary_expression "param_2 + iVar4" identifier + identifier)) )) ;) (goto_statement "goto LAB_000188c8;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000188c8:\n  FUN_00018740(&local_28);" statement_identifier : (expression_statement "FUN_00018740(&local_28);" (call_expression "FUN_00018740(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;)) (if_statement "if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }" if (parenthesized_expression "(iVar4 < param_1)" ( (binary_expression "iVar4 < param_1" identifier < identifier) )) (compound_statement "{\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }" { (expression_statement "puVar2 = param_2 + iVar4;" (assignment_expression "puVar2 = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);" do (compound_statement "{\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "iVar4 = (*param_3)(*puVar2,&local_28,param_4);" (assignment_expression "iVar4 = (*param_3)(*puVar2,&local_28,param_4)" identifier = (call_expression "(*param_3)(*puVar2,&local_28,param_4)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(*puVar2,&local_28,param_4)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "&local_28" & identifier) , identifier )))) ;) (if_statement "if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }" if (parenthesized_expression "(iVar3 < iVar4)" ( (binary_expression "iVar3 < iVar4" identifier < identifier) )) (compound_statement "{\n        iVar3 = iVar4;\n      }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 + param_1 != puVar2)" ( (binary_expression "param_2 + param_1 != puVar2" (binary_expression "param_2 + param_1" identifier + identifier) != identifier) )) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00020910();\n  }" { (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ]))) != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT )))) , (binary_expression IDENT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) != (char_literal ' character ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) , (binary_expression IDENT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000187e0(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)" (identifier "FUN_000187e0") (parameter_list "(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "code *param_3" (type_identifier "code") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x187e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28 = 0;\n  iVar4 = param_1 + -1;\n  if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }\n  iVar3 = 0;\n  iVar4 = 0;\nLAB_000188c8:\n  FUN_00018740(&local_28);\n  if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x187e9;" (assignment_expression "uStack_14 = 0x187e9" (identifier "uStack_14") (= "=") (number_literal "0x187e9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = param_1 + -1;" (assignment_expression "iVar4 = param_1 + -1" (identifier "iVar4") (= "=") (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (-1 < iVar4) {\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);\n  }" ({ "{") (do_statement "do {\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != -1);" (do "do") (compound_statement "{\n      if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }\n      iVar4 = iVar4 + -1;\n    }" ({ "{") (if_statement "if (*(char *)param_2[iVar4] != '/') {\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(*(char *)param_2[iVar4] != '/')" (( "(") (binary_expression "*(char *)param_2[iVar4] != '/'" (pointer_expression "*(char *)param_2[iVar4]" (* "*") (cast_expression "(char *)param_2[iVar4]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[iVar4]" (identifier "param_2") ([ "[") (identifier "iVar4") (] "]")))) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n        if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }\n        break;\n      }" ({ "{") (if_statement "if (0 < iVar4) {\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n          iVar3 = 0;\n          puVar2 = param_2;\n          do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);\n          goto LAB_000188c8;\n        }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" (identifier "puVar2") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          } while (puVar2 != param_2 + iVar4);" (do "do") (compound_statement "{\n            if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }\n            puVar2 = puVar2 + 1;\n          }" ({ "{") (if_statement "if (((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }" (if "if") (parenthesized_expression "(((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1))" (( "(") (binary_expression "((local_28 != 3) || (local_24 < 1)) &&\n               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)" (parenthesized_expression "((local_28 != 3) || (local_24 < 1))" (( "(") (binary_expression "(local_28 != 3) || (local_24 < 1)" (parenthesized_expression "(local_28 != 3)" (( "(") (binary_expression "local_28 != 3" (identifier "local_28") (!= "!=") (number_literal "3")) () ")")) (|| "||") (parenthesized_expression "(local_24 < 1)" (( "(") (binary_expression "local_24 < 1" (identifier "local_24") (< "<") (number_literal "1")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)" (( "(") (comma_expression "iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1" (assignment_expression "iVar1 = (*param_3)(*puVar2,&local_28,param_4)" (identifier "iVar1") (= "=") (call_expression "(*param_3)(*puVar2,&local_28,param_4)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(*puVar2,&local_28,param_4)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "param_4") () ")")))) (, ",") (binary_expression "iVar3 < iVar1" (identifier "iVar3") (< "<") (identifier "iVar1"))) () ")"))) () ")")) (compound_statement "{\n              iVar3 = iVar1;\n            }" ({ "{") (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (if_statement "if ((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {\n              iVar3 = iVar1;\n            }" (if "if") (parenthesized_expression "((*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1))" (( "(") (binary_expression "(*(char *)puVar2[1] != '/') &&\n               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)" (parenthesized_expression "(*(char *)puVar2[1] != '/')" (( "(") (binary_expression "*(char *)puVar2[1] != '/'" (pointer_expression "*(char *)puVar2[1]" (* "*") (cast_expression "(char *)puVar2[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")))) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)" (( "(") (comma_expression "iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1" (assignment_expression "iVar1 = FUN_000185d0(&local_28,iVar3)" (identifier "iVar1") (= "=") (call_expression "FUN_000185d0(&local_28,iVar3)" (identifier "FUN_000185d0") (argument_list "(&local_28,iVar3)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "iVar3") () ")")))) (, ",") (binary_expression "iVar3 < iVar1" (identifier "iVar3") (< "<") (identifier "iVar1"))) () ")"))) () ")")) (compound_statement "{\n              iVar3 = iVar1;\n            }" ({ "{") (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != param_2 + iVar4)" (( "(") (binary_expression "puVar2 != param_2 + iVar4" (identifier "puVar2") (!= "!=") (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4"))) () ")")) (; ";")) (goto_statement "goto LAB_000188c8;" (goto "goto") (statement_identifier "LAB_000188c8") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != -1)" (( "(") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000188c8:\n  FUN_00018740(&local_28);" (statement_identifier "LAB_000188c8") (: ":") (expression_statement "FUN_00018740(&local_28);" (call_expression "FUN_00018740(&local_28)" (identifier "FUN_00018740") (argument_list "(&local_28)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))) (; ";"))) (if_statement "if (iVar4 < param_1) {\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }" (if "if") (parenthesized_expression "(iVar4 < param_1)" (( "(") (binary_expression "iVar4 < param_1" (identifier "iVar4") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    puVar2 = param_2 + iVar4;\n    do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);\n  }" ({ "{") (expression_statement "puVar2 = param_2 + iVar4;" (assignment_expression "puVar2 = param_2 + iVar4" (identifier "puVar2") (= "=") (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4"))) (; ";")) (do_statement "do {\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_1 != puVar2);" (do "do") (compound_statement "{\n      iVar4 = (*param_3)(*puVar2,&local_28,param_4);\n      if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }\n      puVar2 = puVar2 + 1;\n    }" ({ "{") (expression_statement "iVar4 = (*param_3)(*puVar2,&local_28,param_4);" (assignment_expression "iVar4 = (*param_3)(*puVar2,&local_28,param_4)" (identifier "iVar4") (= "=") (call_expression "(*param_3)(*puVar2,&local_28,param_4)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(*puVar2,&local_28,param_4)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar3 < iVar4) {\n        iVar3 = iVar4;\n      }" (if "if") (parenthesized_expression "(iVar3 < iVar4)" (( "(") (binary_expression "iVar3 < iVar4" (identifier "iVar3") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        iVar3 = iVar4;\n      }" ({ "{") (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 + param_1 != puVar2)" (( "(") (binary_expression "param_2 + param_1 != puVar2" (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1")) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00020910();\n  }" ({ "{") (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" (identifier "FUN_00020910") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1
              (int var_2,char **var_9,type_1 *act,void *options)

{
  int var_11;
  int var_6;
  char **var_8;
  int var_5;
  int var_3;
  int var_1;
  type_2 wd;
  
  var_11 = *(int *)(var_1 + 0x14);
  wd.state = DT_UNKNOWN;
  var_3 = var_2 + -1;
  if (-1 < var_3) {
    do {
      if (*var_9[var_3] != '/') {
        if (0 < var_3) {
          var_5 = 0;
          var_8 = var_9;
          do {
            if (((wd.state != var_4) || (wd.val.fd < 1)) &&
               (var_6 = (*act)(*var_8,&wd,options), var_5 < var_6)) {
              var_5 = var_6;
            }
            if ((*var_8[1] != '/') && (var_6 = var_7(&wd,var_5), var_5 < var_6)) {
              var_5 = var_6;
            }
            var_8 = var_8 + 1;
          } while (var_8 != var_9 + var_3);
          goto LAB_000188c8;
        }
        break;
      }
      var_3 = var_3 + -1;
    } while (var_3 != -1);
  }
  var_5 = 0;
  var_3 = 0;
LAB_000188c8:
  var_10(&wd);
  if (var_3 < var_2) {
    var_8 = var_9 + var_3;
    do {
      var_3 = (*act)(*var_8,&wd,options);
      if (var_5 < var_3) {
        var_5 = var_3;
      }
      var_8 = var_8 + 1;
    } while (var_9 + var_2 != var_8);
  }
  if (var_11 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  return var_5;
}


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

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

int MASKED(int param_1,undefined4 *param_2,code *param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x187e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_28 = 0;
  iVar4 = param_1 + -1;
  if (-1 < iVar4) {
    do {
      if (*(char *)param_2[iVar4] != '/') {
        if (0 < iVar4) {
          iVar3 = 0;
          puVar2 = param_2;
          do {
            if (((local_28 != 3) || (local_24 < 1)) &&
               (iVar1 = (*param_3)(*puVar2,&local_28,param_4), iVar3 < iVar1)) {
              iVar3 = iVar1;
            }
            if ((*(char *)puVar2[1] != '/') &&
               (iVar1 = FUN_000185d0(&local_28,iVar3), iVar3 < iVar1)) {
              iVar3 = iVar1;
            }
            puVar2 = puVar2 + 1;
          } while (puVar2 != param_2 + iVar4);
          goto LAB_000188c8;
        }
        break;
      }
      iVar4 = iVar4 + -1;
    } while (iVar4 != -1);
  }
  iVar3 = 0;
  iVar4 = 0;
LAB_000188c8:
  FUN_00018740(&local_28);
  if (iVar4 < param_1) {
    puVar2 = param_2 + iVar4;
    do {
      iVar4 = (*param_3)(*puVar2,&local_28,param_4);
      if (iVar3 < iVar4) {
        iVar3 = iVar4;
      }
      puVar2 = puVar2 + 1;
    } while (param_2 + param_1 != puVar2);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00020910();
  }
  return iVar3;
}

