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

FTS * fts_open(char **argv,int options,_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar)

{
  _Bool _Var1;
  ushort uVar2;
  FTS *sp;
  size_t sVar3;
  FTSENT *pFVar4;
  size_t namelen;
  _ftsent *p_Var5;
  int *piVar6;
  int iVar7;
  FTS *sp_1;
  char **ppcVar8;
  _ftsent *p_Var9;
  char *pcVar10;
  uint uVar11;
  FTSENT *local_2c;
  FTSENT *local_20;
  
  if ((((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0))
  {
    piVar6 = __errno_location();
    *piVar6 = 0x16;
    return (FTS *)0x0;
  }
  sp = (FTS *)calloc(0x58,1);
  if (sp == (FTS *)0x0) {
    return (FTS *)0x0;
  }
  sp->fts_cwd_fd = -100;
  sp->fts_compar = (_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar;
  uVar11 = options & 0xfffffdffU | 4;
  if ((options & 2U) == 0) {
    uVar11 = options;
  }
  sp->fts_options = uVar11;
  pcVar10 = *argv;
  if (pcVar10 == (char *)0x0) {
    sp_1 = (FTS *)0x1000;
  }
  else {
    uVar11 = 0;
    ppcVar8 = argv;
    do {
      sVar3 = strlen(pcVar10);
      if (uVar11 < sVar3) {
        uVar11 = sVar3;
      }
      ppcVar8 = ppcVar8 + 1;
      pcVar10 = *ppcVar8;
    } while (pcVar10 != (char *)0x0);
    sp_1 = (FTS *)(uVar11 + 1);
    if (sp_1 < (FTS *)0x1000) {
      sp_1 = (FTS *)0x1000;
    }
  }
  _Var1 = fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1);
  if (!_Var1) goto LAB_00025198;
  if (*argv == (char *)0x0) {
    local_2c = (FTSENT *)0x0;
    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {
      pcVar10 = (char *)0x0;
LAB_00024fb8:
      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);
      goto LAB_00024fcd;
    }
LAB_00025266:
    p_Var5 = (FTSENT *)0x0;
LAB_000250dc:
    pFVar4 = fts_alloc(sp,"",0);
    sp->fts_cur = pFVar4;
    if (pFVar4 != (FTSENT *)0x0) {
      pFVar4->fts_link = p_Var5;
      pFVar4->fts_info = 9;
      pFVar4->fts_level = 1;
      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);
      if (_Var1) {
        if (((uint)sp->fts_options & 0x204) == 0) {
          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);
          sp->fts_rfd = iVar7;
          if (iVar7 < 0) {
            sp->fts_options = sp->fts_options | 4;
          }
        }
        i_ring_init(&sp->fts_fd_ring,-1);
        return sp;
      }
    }
LAB_00025170:
    fts_lfree(p_Var5);
    free(local_2c);
  }
  else {
    local_2c = fts_alloc(sp,"",0);
    if (local_2c != (FTSENT *)0x0) {
      local_2c->fts_level = -1;
      local_2c->fts_n_dirs_remaining = 0xffffffff;
      pcVar10 = *argv;
      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;
LAB_00024fcd:
      if (pcVar10 == (char *)0x0) goto LAB_00025266;
      local_20 = (FTSENT *)0x0;
      uVar11 = 0;
      p_Var9 = (_ftsent *)0x0;
      do {
        namelen = strlen(pcVar10);
        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&
           (pcVar10[namelen - 1] == '/')) {
          do {
            if (pcVar10[namelen - 2] != '/') break;
            namelen = namelen - 1;
          } while (namelen != 1);
        }
        pFVar4 = fts_alloc(sp,pcVar10,namelen);
        p_Var5 = p_Var9;
        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;
        pFVar4->fts_level = 0;
        pFVar4->fts_parent = local_2c;
        pFVar4->fts_accpath = (char *)(pFVar4 + 1);
        p_Var5 = pFVar4;
        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {
          uVar2 = fts_stat(sp,pFVar4,false);
          pFVar4->fts_info = uVar2;
          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;
          pFVar4->fts_link = (_ftsent *)0x0;
          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;
        }
        else {
          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;
          pFVar4->fts_info = 0xb;
          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;
          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {
            pFVar4->fts_link = (_ftsent *)0x0;
LAB_00025217:
            local_20->fts_link = pFVar4;
            p_Var5 = p_Var9;
          }
          else {
LAB_0002505c:
            pFVar4->fts_link = p_Var9;
            pFVar4 = local_20;
          }
        }
        local_20 = pFVar4;
        uVar11 = uVar11 + 1;
        pcVar10 = argv[uVar11];
        p_Var9 = p_Var5;
      } while (pcVar10 != (char *)0x0);
      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {
        p_Var5 = fts_sort(sp,p_Var5,uVar11);
      }
      goto LAB_000250dc;
    }
  }
  free(sp->fts_path);
LAB_00025198:
  free(sp);
  return (FTS *)0x0;
}



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

int * fts_open(int *param_1,uint param_2,int param_3)

{
  byte bVar1;
  char cVar2;
  undefined2 uVar3;
  int *piVar4;
  size_t sVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int *piVar9;
  char *pcVar10;
  uint uVar11;
  void *local_2c;
  int local_20;
  
  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {
    piVar4 = __errno_location();
    *piVar4 = 0x16;
    return (int *)0x0;
  }
  piVar4 = (int *)calloc(0x58,1);
  if (piVar4 == (int *)0x0) {
    return (int *)0x0;
  }
  piVar4[7] = -100;
  piVar4[10] = param_3;
  uVar11 = param_2 & 0xfffffdff | 4;
  if ((param_2 & 2) == 0) {
    uVar11 = param_2;
  }
  piVar4[0xb] = uVar11;
  pcVar10 = (char *)*param_1;
  if (pcVar10 != (char *)0x0) {
    uVar11 = 0;
    piVar9 = param_1;
    do {
      sVar5 = strlen(pcVar10);
      if (uVar11 < sVar5) {
        uVar11 = sVar5;
      }
      piVar9 = piVar9 + 1;
      pcVar10 = (char *)*piVar9;
    } while (pcVar10 != (char *)0x0);
  }
  bVar1 = FUN_00023e60();
  if (bVar1 == 0) goto LAB_00025198;
  if (*param_1 == 0) {
    local_2c = (void *)0x0;
    if (param_3 != 0) {
      pcVar10 = (char *)0x0;
LAB_00024fb8:
      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;
      goto LAB_00024fcd;
    }
LAB_00025266:
    iVar7 = 0;
LAB_000250dc:
    iVar8 = FUN_00023a70();
    *piVar4 = iVar8;
    if (iVar8 != 0) {
      *(int *)(iVar8 + 8) = iVar7;
      *(undefined2 *)(iVar8 + 0x3c) = 9;
      *(undefined4 *)(iVar8 + 0x30) = 1;
      cVar2 = FUN_00023ee0();
      if (cVar2 != '\0') {
        if ((piVar4[0xb] & 0x204U) == 0) {
          iVar7 = FUN_00023f60();
          piVar4[6] = iVar7;
          if (iVar7 < 0) {
            piVar4[0xb] = piVar4[0xb] | 4;
          }
        }
        FUN_00027fb0(piVar4 + 0xe,0xffffffff);
        return piVar4;
      }
    }
LAB_00025170:
    FUN_00023b00();
    free(local_2c);
  }
  else {
    local_2c = (void *)FUN_00023a70();
    if (local_2c != (void *)0x0) {
      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;
      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;
      pcVar10 = (char *)*param_1;
      if (param_3 != 0) goto LAB_00024fb8;
LAB_00024fcd:
      if (pcVar10 == (char *)0x0) goto LAB_00025266;
      local_20 = 0;
      uVar11 = 0;
      iVar8 = 0;
      do {
        sVar5 = strlen(pcVar10);
        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&
           (pcVar10[sVar5 - 1] == '/')) {
          do {
            if (pcVar10[sVar5 - 2] != '/') break;
            sVar5 = sVar5 - 1;
          } while (sVar5 != 1);
        }
        iVar6 = FUN_00023a70();
        if (iVar6 == 0) goto LAB_00025170;
        *(undefined4 *)(iVar6 + 0x30) = 0;
        *(void **)(iVar6 + 4) = local_2c;
        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;
        iVar7 = iVar6;
        if ((iVar8 == 0) || (bVar1 == 0)) {
          uVar3 = FUN_000237e0();
          *(undefined2 *)(iVar6 + 0x3c) = uVar3;
          if (param_3 != 0) goto LAB_0002505c;
          *(undefined4 *)(iVar6 + 8) = 0;
          if (iVar8 != 0) goto LAB_00025217;
        }
        else {
          *(undefined4 *)(iVar6 + 0x70) = 2;
          *(undefined2 *)(iVar6 + 0x3c) = 0xb;
          *(undefined4 *)(iVar6 + 0x74) = 0;
          if (param_3 == 0) {
            *(undefined4 *)(iVar6 + 8) = 0;
LAB_00025217:
            *(int *)(local_20 + 8) = iVar6;
            iVar7 = iVar8;
          }
          else {
LAB_0002505c:
            *(int *)(iVar6 + 8) = iVar8;
            iVar6 = local_20;
          }
        }
        local_20 = iVar6;
        uVar11 = uVar11 + 1;
        pcVar10 = (char *)param_1[uVar11];
        iVar8 = iVar7;
      } while (pcVar10 != (char *)0x0);
      if ((param_3 != 0) && (1 < uVar11)) {
        iVar7 = FUN_00023980();
      }
      goto LAB_000250dc;
    }
  }
  free((void *)piVar4[5]);
LAB_00025198:
  free(piVar4);
  return (int *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000132d0
ADD EBX,0x14167
SUB ESP,0x2c
TEST dword ptr [ESP + 0x44],0xffffe000
JNZ 0x00025150
MOV EAX,dword ptr [ESP + 0x44]
AND EAX,0x204
CMP EAX,0x204
JZ 0x00025150
TEST byte ptr [ESP + 0x44],0x12
JZ 0x00025150
SUB ESP,0x8
PUSH 0x1
PUSH 0x58
CALL 0x00012960
MOV dword ptr [ESP + 0x1c],EAX
MOV ECX,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002513b
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ECX + 0x1c],0xffffff9c
MOV dword ptr [ECX + 0x28],EAX
MOV EAX,dword ptr [ESP + 0x44]
AND AH,0xfd
OR EAX,0x4
TEST byte ptr [ESP + 0x44],0x2
CMOVZ EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ECX + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x00025230
MOV EBP,dword ptr [ESP + 0x40]
XOR EDI,EDI
LEA ESI,[ESI]
SUB ESP,0xc
PUSH EAX
CALL 0x000124d0
ADD ESP,0x10
CMP EDI,EAX
CMOVC EDI,EAX
ADD EBP,0x4
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JNZ 0x00024f28
LEA ECX,[EDI + 0x1]
MOV EAX,0x1000
CMP ECX,0x1000
CMOVC ECX,EAX
MOV EDI,dword ptr [ESP + 0xc]
LEA EDX,[EDI + 0x20]
LEA EAX,[EDI + 0x14]
CALL 0x00023e60
MOV byte ptr [ESP + 0x14],AL
TEST AL,AL
JZ 0x00025198
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x10],EAX
TEST EAX,EAX
JZ 0x000251c0
XOR ECX,ECX
LEA EDX,[EBX + 0xffff6846]
MOV EAX,EDI
CALL 0x00023a70
MOV dword ptr [ESP + 0x10],EAX
TEST EAX,EAX
JZ 0x00025186
MOV dword ptr [EAX + 0x30],0xffffffff
MOV dword ptr [EAX + 0x38],0xffffffff
MOV EAX,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x48]
TEST EAX,EAX
JZ 0x00024fcd
MOV EAX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x2c]
MOV dword ptr [ESP + 0x14],EAX
SHR EAX,0xa
AND EAX,0x1
MOV byte ptr [ESP + 0x14],AL
TEST ESI,ESI
JZ 0x00025266
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x1c],0x0
XOR EDI,EDI
XOR EBP,EBP
SHR EAX,0xc
XOR EAX,0x1
AND EAX,0x1
MOV byte ptr [ESP + 0x1b],AL
JMP 0x0002506f
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,ESI
CALL 0x00023a70
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00025170
MOV dword ptr [EAX + 0x30],0x0
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[ESI + 0xa4]
MOV dword ptr [ESI + 0x18],EAX
TEST EBP,EBP
JZ 0x000251d8
CMP byte ptr [ESP + 0x14],0x0
JZ 0x000251d8
MOV EAX,0xb
MOV dword ptr [ESI + 0x70],0x2
MOV word ptr [ESI + 0x3c],AX
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ESI + 0x74],0x0
TEST EAX,EAX
JZ 0x00025210
MOV dword ptr [ESI + 0x8],EBP
MOV EBP,ESI
MOV EAX,dword ptr [ESP + 0x40]
ADD EDI,0x1
MOV ESI,dword ptr [EAX + EDI*0x4]
TEST ESI,ESI
JZ 0x000250c0
SUB ESP,0xc
PUSH ESI
CALL 0x000124d0
ADD ESP,0x10
CMP EAX,0x2
JBE 0x00024ff8
CMP byte ptr [ESP + 0x1b],0x0
JZ 0x00024ff8
CMP byte ptr [ESI + EAX*0x1 + -0x1],0x2f
JNZ 0x00024ff8
LEA ESI,[ESI]
CMP byte ptr [ESI + EAX*0x1 + -0x2],0x2f
JNZ 0x00024ff8
SUB EAX,0x1
CMP EAX,0x1
JNZ 0x000250a0
JMP 0x00024ff8
MOV ECX,dword ptr [ESP + 0x48]
TEST ECX,ECX
JZ 0x000250dc
CMP EDI,0x1
JBE 0x000250dc
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,EBP
MOV ECX,EDI
CALL 0x00023980
MOV EBP,EAX
MOV EDI,dword ptr [ESP + 0xc]
XOR ECX,ECX
LEA EDX,[EBX + 0xffff6846]
MOV EAX,EDI
CALL 0x00023a70
MOV dword ptr [EDI],EAX
TEST EAX,EAX
JZ 0x00025170
MOV EDX,0x9
MOV dword ptr [EAX + 0x8],EBP
MOV word ptr [EAX + 0x3c],DX
LEA EDX,[EDI + 0x34]
MOV dword ptr [EAX + 0x30],0x1
MOV EAX,dword ptr [EDI + 0x2c]
CALL 0x00023ee0
TEST AL,AL
JZ 0x00025170
MOV EDX,dword ptr [EDI + 0x2c]
TEST EDX,0x204
JZ 0x00025240
SUB ESP,0x8
PUSH -0x1
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,0x38
PUSH EAX
CALL 0x00027fb0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000125a0
MOV dword ptr [EAX],0x16
MOV dword ptr [ESP + 0xc],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EBP
CALL 0x00023b00
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x00012990
ADD ESP,0x10
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x18]
PUSH dword ptr [EAX + 0x14]
CALL 0x00012990
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00012990
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x48]
TEST EAX,EAX
JZ 0x00025266
XOR ESI,ESI
JMP 0x00024fb8
MOV EAX,dword ptr [ESP + 0xc]
XOR ECX,ECX
MOV EDX,ESI
CALL 0x000237e0
MOV word ptr [ESI + 0x3c],AX
MOV EAX,dword ptr [ESP + 0x48]
TEST EAX,EAX
JNZ 0x0002505c
MOV dword ptr [ESI + 0x8],0x0
TEST EBP,EBP
JNZ 0x00025217
MOV dword ptr [ESP + 0x1c],ESI
MOV EBP,ESI
JMP 0x00025061
MOV dword ptr [ESI + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x1c],ESI
MOV dword ptr [EAX + 0x8],ESI
JMP 0x00025061
MOV ECX,0x1000
JMP 0x00024f54
MOV EDI,dword ptr [ESP + 0xc]
LEA ECX,[EBX + 0xffff4bc4]
MOV EAX,dword ptr [EDI + 0x1c]
CALL 0x00023f60
MOV dword ptr [EDI + 0x18],EAX
TEST EAX,EAX
JNS 0x00025126
OR dword ptr [EDI + 0x2c],0x4
JMP 0x00025126
XOR EBP,EBP
JMP 0x000250dc
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* fts_open(int *param_1,uint param_2,int param_3)" * (function_declarator "fts_open(int *param_1,uint param_2,int param_3)" identifier (parameter_list "(int *param_1,uint param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined2 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "void *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }" if (parenthesized_expression "((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0))" ( (binary_expression "(((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)" (parenthesized_expression "(((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204))" ( (binary_expression "((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)" (parenthesized_expression "((param_2 & 0xffffe000) != 0)" ( (binary_expression "(param_2 & 0xffffe000) != 0" (parenthesized_expression "(param_2 & 0xffffe000)" ( (binary_expression "param_2 & 0xffffe000" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "((param_2 & 0x204) == 0x204)" ( (binary_expression "(param_2 & 0x204) == 0x204" (parenthesized_expression "(param_2 & 0x204)" ( (binary_expression "param_2 & 0x204" identifier & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "((param_2 & 0x12) == 0)" ( (binary_expression "(param_2 & 0x12) == 0" (parenthesized_expression "(param_2 & 0x12)" ( (binary_expression "param_2 & 0x12" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar4 = 0x16;" (assignment_expression "*piVar4 = 0x16" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar4 = (int *)calloc(0x58,1);" (assignment_expression "piVar4 = (int *)calloc(0x58,1)" identifier = (cast_expression "(int *)calloc(0x58,1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(0x58,1)" identifier (argument_list "(0x58,1)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar4[7] = -100;" (assignment_expression "piVar4[7] = -100" (subscript_expression "piVar4[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[10] = param_3;" (assignment_expression "piVar4[10] = param_3" (subscript_expression "piVar4[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar11 = param_2 & 0xfffffdff | 4;" (assignment_expression "uVar11 = param_2 & 0xfffffdff | 4" identifier = (binary_expression "param_2 & 0xfffffdff | 4" (binary_expression "param_2 & 0xfffffdff" identifier & number_literal) | number_literal)) ;) (if_statement "if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }" if (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar11 = param_2;\n  }" { (expression_statement "uVar11 = param_2;" (assignment_expression "uVar11 = param_2" identifier = identifier) ;) })) (expression_statement "piVar4[0xb] = uVar11;" (assignment_expression "piVar4[0xb] = uVar11" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar9 = param_1;" (assignment_expression "piVar9 = param_1" identifier = identifier) ;) (do_statement "do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);" do (compound_statement "{\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    }" { (expression_statement "sVar5 = strlen(pcVar10);" (assignment_expression "sVar5 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }" if (parenthesized_expression "(uVar11 < sVar5)" ( (binary_expression "uVar11 < sVar5" identifier < identifier) )) (compound_statement "{\n        uVar11 = sVar5;\n      }" { (expression_statement "uVar11 = sVar5;" (assignment_expression "uVar11 = sVar5" identifier = identifier) ;) })) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = (char *)*piVar9;" (assignment_expression "pcVar10 = (char *)*piVar9" identifier = (cast_expression "(char *)*piVar9" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar9" * identifier))) ;) }) while (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "bVar1 = FUN_00023e60();" (assignment_expression "bVar1 = FUN_00023e60()" identifier = (call_expression "FUN_00023e60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (bVar1 == 0) goto LAB_00025198;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00025198;" goto statement_identifier ;)) (if_statement "if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }" { (expression_statement "local_2c = (void *)0x0;" (assignment_expression "local_2c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }" { (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;" statement_identifier : (expression_statement "bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;" (assignment_expression "bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1" identifier = (binary_expression "(byte)((uint)piVar4[0xb] >> 10) & 1" (call_expression "(byte)((uint)piVar4[0xb] >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)piVar4[0xb] >> 10)" ( (binary_expression "(uint)piVar4[0xb] >> 10" (cast_expression "(uint)piVar4[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar4[0xb]" identifier [ number_literal ])) >> number_literal) ))) & number_literal)) ;)) (goto_statement "goto LAB_00024fcd;" goto statement_identifier ;) })) (labeled_statement "LAB_00025266:\n    iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_000250dc:\n    iVar8 = FUN_00023a70();" statement_identifier : (expression_statement "iVar8 = FUN_00023a70();" (assignment_expression "iVar8 = FUN_00023a70()" identifier = (call_expression "FUN_00023a70()" identifier (argument_list "()" ( )))) ;)) (expression_statement "*piVar4 = iVar8;" (assignment_expression "*piVar4 = iVar8" (pointer_expression "*piVar4" * identifier) = identifier) ;) (if_statement "if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }" { (expression_statement "*(int *)(iVar8 + 8) = iVar7;" (assignment_expression "*(int *)(iVar8 + 8) = iVar7" (pointer_expression "*(int *)(iVar8 + 8)" * (cast_expression "(int *)(iVar8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar8 + 0x3c) = 9;" (assignment_expression "*(undefined2 *)(iVar8 + 0x3c) = 9" (pointer_expression "*(undefined2 *)(iVar8 + 0x3c)" * (cast_expression "(undefined2 *)(iVar8 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x3c)" ( (binary_expression "iVar8 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar8 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = 1" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" * (cast_expression "(undefined4 *)(iVar8 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x30)" ( (binary_expression "iVar8 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "cVar2 = FUN_00023ee0();" (assignment_expression "cVar2 = FUN_00023ee0()" identifier = (call_expression "FUN_00023ee0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }" { (if_statement "if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }" if (parenthesized_expression "((piVar4[0xb] & 0x204U) == 0)" ( (binary_expression "(piVar4[0xb] & 0x204U) == 0" (parenthesized_expression "(piVar4[0xb] & 0x204U)" ( (binary_expression "piVar4[0xb] & 0x204U" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }" { (expression_statement "iVar7 = FUN_00023f60();" (assignment_expression "iVar7 = FUN_00023f60()" identifier = (call_expression "FUN_00023f60()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar4[6] = iVar7;" (assignment_expression "piVar4[6] = iVar7" (subscript_expression "piVar4[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }" { (expression_statement "piVar4[0xb] = piVar4[0xb] | 4;" (assignment_expression "piVar4[0xb] = piVar4[0xb] | 4" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) = (binary_expression "piVar4[0xb] | 4" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) | number_literal)) ;) })) })) (expression_statement "FUN_00027fb0(piVar4 + 0xe,0xffffffff);" (call_expression "FUN_00027fb0(piVar4 + 0xe,0xffffffff)" identifier (argument_list "(piVar4 + 0xe,0xffffffff)" ( (binary_expression "piVar4 + 0xe" identifier + number_literal) , number_literal ))) ;) (return_statement "return piVar4;" return identifier ;) })) })) (labeled_statement "LAB_00025170:\n    FUN_00023b00();" statement_identifier : (expression_statement "FUN_00023b00();" (call_expression "FUN_00023b00()" identifier (argument_list "()" ( ))) ;)) (expression_statement "free(local_2c);" (call_expression "free(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) }) (else_clause "else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" else (compound_statement "{\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" { (expression_statement "local_2c = (void *)FUN_00023a70();" (assignment_expression "local_2c = (void *)FUN_00023a70()" identifier = (cast_expression "(void *)FUN_00023a70()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023a70()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }" if (parenthesized_expression "(local_2c != (void *)0x0)" ( (binary_expression "local_2c != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }" { (expression_statement "*(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_2c + 0x30) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_2c + 0x30)" * (cast_expression "(undefined4 *)((int)local_2c + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + 0x30)" ( (binary_expression "(int)local_2c + 0x30" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_2c + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_2c + 0x38)" * (cast_expression "(undefined4 *)((int)local_2c + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + 0x38)" ( (binary_expression "(int)local_2c + 0x38" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_3 != 0) goto LAB_00024fb8;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00024fb8;" goto statement_identifier ;)) (labeled_statement "LAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;" statement_identifier : (if_statement "if (pcVar10 == (char *)0x0) goto LAB_00025266;" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00025266;" goto statement_identifier ;))) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);" do (compound_statement "{\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      }" { (expression_statement "sVar5 = strlen(pcVar10);" (assignment_expression "sVar5 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }" if (parenthesized_expression "(((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/'))" ( (binary_expression "((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')" (parenthesized_expression "((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0))" ( (binary_expression "(2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)" (parenthesized_expression "(2 < sVar5)" ( (binary_expression "2 < sVar5" number_literal < identifier) )) && (parenthesized_expression "((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)" ( (binary_expression "(((byte)(param_2 >> 0xc) ^ 1) & 1) != 0" (parenthesized_expression "(((byte)(param_2 >> 0xc) ^ 1) & 1)" ( (binary_expression "((byte)(param_2 >> 0xc) ^ 1) & 1" (parenthesized_expression "((byte)(param_2 >> 0xc) ^ 1)" ( (binary_expression "(byte)(param_2 >> 0xc) ^ 1" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) ^ number_literal) )) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(pcVar10[sVar5 - 1] == '/')" ( (binary_expression "pcVar10[sVar5 - 1] == '/'" (subscript_expression "pcVar10[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }" { (do_statement "do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);" do (compound_statement "{\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          }" { (if_statement "if (pcVar10[sVar5 - 2] != '/') break;" if (parenthesized_expression "(pcVar10[sVar5 - 2] != '/')" ( (binary_expression "pcVar10[sVar5 - 2] != '/'" (subscript_expression "pcVar10[sVar5 - 2]" identifier [ (binary_expression "sVar5 - 2" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "sVar5 = sVar5 - 1;" (assignment_expression "sVar5 = sVar5 - 1" identifier = (binary_expression "sVar5 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(sVar5 != 1)" ( (binary_expression "sVar5 != 1" identifier != number_literal) )) ;) })) (expression_statement "iVar6 = FUN_00023a70();" (assignment_expression "iVar6 = FUN_00023a70()" identifier = (call_expression "FUN_00023a70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar6 == 0) goto LAB_00025170;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00025170;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar6 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x30)" * (cast_expression "(undefined4 *)(iVar6 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)(iVar6 + 4) = local_2c;" (assignment_expression "*(void **)(iVar6 + 4) = local_2c" (pointer_expression "*(void **)(iVar6 + 4)" * (cast_expression "(void **)(iVar6 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar6 + 0x18) = iVar6 + 0xa4;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar6 + 0xa4" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar6 + 0xa4" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) (if_statement "if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" if (parenthesized_expression "((iVar8 == 0) || (bVar1 == 0))" ( (binary_expression "(iVar8 == 0) || (bVar1 == 0)" (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) || (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }" { (expression_statement "uVar3 = FUN_000237e0();" (assignment_expression "uVar3 = FUN_000237e0()" identifier = (call_expression "FUN_000237e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined2 *)(iVar6 + 0x3c) = uVar3;" (assignment_expression "*(undefined2 *)(iVar6 + 0x3c) = uVar3" (pointer_expression "*(undefined2 *)(iVar6 + 0x3c)" * (cast_expression "(undefined2 *)(iVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x3c)" ( (binary_expression "iVar6 + 0x3c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_3 != 0) goto LAB_0002505c;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0002505c;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar8 != 0) goto LAB_00025217;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00025217;" goto statement_identifier ;)) }) (else_clause "else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" else (compound_statement "{\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" { (expression_statement "*(undefined4 *)(iVar6 + 0x70) = 2;" (assignment_expression "*(undefined4 *)(iVar6 + 0x70) = 2" (pointer_expression "*(undefined4 *)(iVar6 + 0x70)" * (cast_expression "(undefined4 *)(iVar6 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x70)" ( (binary_expression "iVar6 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar6 + 0x3c) = 0xb;" (assignment_expression "*(undefined2 *)(iVar6 + 0x3c) = 0xb" (pointer_expression "*(undefined2 *)(iVar6 + 0x3c)" * (cast_expression "(undefined2 *)(iVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x3c)" ( (binary_expression "iVar6 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x74)" * (cast_expression "(undefined4 *)(iVar6 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x74)" ( (binary_expression "iVar6 + 0x74" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }" { (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;" statement_identifier : (expression_statement "*(int *)(local_20 + 8) = iVar6;" (assignment_expression "*(int *)(local_20 + 8) = iVar6" (pointer_expression "*(int *)(local_20 + 8)" * (cast_expression "(int *)(local_20 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 8)" ( (binary_expression "local_20 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) (else_clause "else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" else (compound_statement "{\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" { (labeled_statement "LAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;" statement_identifier : (expression_statement "*(int *)(iVar6 + 8) = iVar8;" (assignment_expression "*(int *)(iVar6 + 8) = iVar8" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "iVar6 = local_20;" (assignment_expression "iVar6 = local_20" identifier = identifier) ;) }))) }))) (expression_statement "local_20 = iVar6;" (assignment_expression "local_20 = iVar6" identifier = identifier) ;) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" identifier = (binary_expression "uVar11 + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = (char *)param_1[uVar11];" (assignment_expression "pcVar10 = (char *)param_1[uVar11]" identifier = (cast_expression "(char *)param_1[uVar11]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[uVar11]" identifier [ identifier ]))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }" if (parenthesized_expression "((param_3 != 0) && (1 < uVar11))" ( (binary_expression "(param_3 != 0) && (1 < uVar11)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n        iVar7 = FUN_00023980();\n      }" { (expression_statement "iVar7 = FUN_00023980();" (assignment_expression "iVar7 = FUN_00023980()" identifier = (call_expression "FUN_00023980()" identifier (argument_list "()" ( )))) ;) })) (goto_statement "goto LAB_000250dc;" goto statement_identifier ;) })) }))) (expression_statement "free((void *)piVar4[5]);" (call_expression "free((void *)piVar4[5])" identifier (argument_list "((void *)piVar4[5])" ( (cast_expression "(void *)piVar4[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[5]" identifier [ number_literal ])) ))) ;) (labeled_statement "LAB_00025198:\n  free(piVar4);" statement_identifier : (expression_statement "free(piVar4);" (call_expression "free(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))) ;)) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nFTS * fts_open(char **argv,int options,_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar)\n\n{\n  _Bool _Var1;\n  ushort uVar2;\n  FTS *sp;\n  size_t sVar3;\n  FTSENT *pFVar4;\n  size_t namelen;\n  _ftsent *p_Var5;\n  int *piVar6;\n  int iVar7;\n  FTS *sp_1;\n  char **ppcVar8;\n  _ftsent *p_Var9;\n  char *pcVar10;\n  uint uVar11;\n  FTSENT *local_2c;\n  FTSENT *local_20;\n  \n  if ((((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0))\n  {\n    piVar6 = __errno_location();\n    *piVar6 = 0x16;\n    return (FTS *)0x0;\n  }\n  sp = (FTS *)calloc(0x58,1);\n  if (sp == (FTS *)0x0) {\n    return (FTS *)0x0;\n  }\n  sp->fts_cwd_fd = -100;\n  sp->fts_compar = (_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar;\n  uVar11 = options & 0xfffffdffU | 4;\n  if ((options & 2U) == 0) {\n    uVar11 = options;\n  }\n  sp->fts_options = uVar11;\n  pcVar10 = *argv;\n  if (pcVar10 == (char *)0x0) {\n    sp_1 = (FTS *)0x1000;\n  }\n  else {\n    uVar11 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);\n    sp_1 = (FTS *)(uVar11 + 1);\n    if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }\n  }\n  _Var1 = fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1);\n  if (!_Var1) goto LAB_00025198;\n  if (*argv == (char *)0x0) {\n    local_2c = (FTSENT *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    p_Var5 = (FTSENT *)0x0;\nLAB_000250dc:\n    pFVar4 = fts_alloc(sp,"",0);\n    sp->fts_cur = pFVar4;\n    if (pFVar4 != (FTSENT *)0x0) {\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }\nLAB_00025170:\n    fts_lfree(p_Var5);\n    free(local_2c);\n  }\n  else {\n    local_2c = fts_alloc(sp,"",0);\n    if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free(sp->fts_path);\nLAB_00025198:\n  free(sp);\n  return (FTS *)0x0;\n}\n\n" comment (function_definition "FTS * fts_open(char **argv,int options,_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar)\n\n{\n  _Bool _Var1;\n  ushort uVar2;\n  FTS *sp;\n  size_t sVar3;\n  FTSENT *pFVar4;\n  size_t namelen;\n  _ftsent *p_Var5;\n  int *piVar6;\n  int iVar7;\n  FTS *sp_1;\n  char **ppcVar8;\n  _ftsent *p_Var9;\n  char *pcVar10;\n  uint uVar11;\n  FTSENT *local_2c;\n  FTSENT *local_20;\n  \n  if ((((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0))\n  {\n    piVar6 = __errno_location();\n    *piVar6 = 0x16;\n    return (FTS *)0x0;\n  }\n  sp = (FTS *)calloc(0x58,1);\n  if (sp == (FTS *)0x0) {\n    return (FTS *)0x0;\n  }\n  sp->fts_cwd_fd = -100;\n  sp->fts_compar = (_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar;\n  uVar11 = options & 0xfffffdffU | 4;\n  if ((options & 2U) == 0) {\n    uVar11 = options;\n  }\n  sp->fts_options = uVar11;\n  pcVar10 = *argv;\n  if (pcVar10 == (char *)0x0) {\n    sp_1 = (FTS *)0x1000;\n  }\n  else {\n    uVar11 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);\n    sp_1 = (FTS *)(uVar11 + 1);\n    if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }\n  }\n  _Var1 = fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1);\n  if (!_Var1) goto LAB_00025198;\n  if (*argv == (char *)0x0) {\n    local_2c = (FTSENT *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    p_Var5 = (FTSENT *)0x0;\nLAB_000250dc:\n    pFVar4 = fts_alloc(sp,"",0);\n    sp->fts_cur = pFVar4;\n    if (pFVar4 != (FTSENT *)0x0) {\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }\nLAB_00025170:\n    fts_lfree(p_Var5);\n    free(local_2c);\n  }\n  else {\n    local_2c = fts_alloc(sp,"",0);\n    if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free(sp->fts_path);\nLAB_00025198:\n  free(sp);\n  return (FTS *)0x0;\n}" type_identifier (pointer_declarator "* fts_open(char **argv,int options,_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar)" * (function_declarator "fts_open(char **argv,int options,_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar)" identifier (parameter_list "(char **argv,int options,_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar)" ( (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) , (parameter_declaration "int options" primitive_type identifier) , (parameter_declaration "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *compar" type_identifier (pointer_declarator "*compar" * identifier)) )))) (compound_statement "{\n  _Bool _Var1;\n  ushort uVar2;\n  FTS *sp;\n  size_t sVar3;\n  FTSENT *pFVar4;\n  size_t namelen;\n  _ftsent *p_Var5;\n  int *piVar6;\n  int iVar7;\n  FTS *sp_1;\n  char **ppcVar8;\n  _ftsent *p_Var9;\n  char *pcVar10;\n  uint uVar11;\n  FTSENT *local_2c;\n  FTSENT *local_20;\n  \n  if ((((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0))\n  {\n    piVar6 = __errno_location();\n    *piVar6 = 0x16;\n    return (FTS *)0x0;\n  }\n  sp = (FTS *)calloc(0x58,1);\n  if (sp == (FTS *)0x0) {\n    return (FTS *)0x0;\n  }\n  sp->fts_cwd_fd = -100;\n  sp->fts_compar = (_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar;\n  uVar11 = options & 0xfffffdffU | 4;\n  if ((options & 2U) == 0) {\n    uVar11 = options;\n  }\n  sp->fts_options = uVar11;\n  pcVar10 = *argv;\n  if (pcVar10 == (char *)0x0) {\n    sp_1 = (FTS *)0x1000;\n  }\n  else {\n    uVar11 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);\n    sp_1 = (FTS *)(uVar11 + 1);\n    if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }\n  }\n  _Var1 = fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1);\n  if (!_Var1) goto LAB_00025198;\n  if (*argv == (char *)0x0) {\n    local_2c = (FTSENT *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    p_Var5 = (FTSENT *)0x0;\nLAB_000250dc:\n    pFVar4 = fts_alloc(sp,"",0);\n    sp->fts_cur = pFVar4;\n    if (pFVar4 != (FTSENT *)0x0) {\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }\nLAB_00025170:\n    fts_lfree(p_Var5);\n    free(local_2c);\n  }\n  else {\n    local_2c = fts_alloc(sp,"",0);\n    if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free(sp->fts_path);\nLAB_00025198:\n  free(sp);\n  return (FTS *)0x0;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "FTS *sp;" type_identifier (pointer_declarator "*sp" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "FTSENT *pFVar4;" type_identifier (pointer_declarator "*pFVar4" * identifier) ;) (declaration "size_t namelen;" primitive_type identifier ;) (declaration "_ftsent *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "FTS *sp_1;" type_identifier (pointer_declarator "*sp_1" * identifier) ;) (declaration "char **ppcVar8;" primitive_type (pointer_declarator "**ppcVar8" * (pointer_declarator "*ppcVar8" * identifier)) ;) (declaration "_ftsent *p_Var9;" type_identifier (pointer_declarator "*p_Var9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "FTSENT *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "FTSENT *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (if_statement "if ((((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0))\n  {\n    piVar6 = __errno_location();\n    *piVar6 = 0x16;\n    return (FTS *)0x0;\n  }" if (parenthesized_expression "((((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0))" ( (binary_expression "(((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)) || ((options & 0x12U) == 0)" (parenthesized_expression "(((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204))" ( (binary_expression "((options & 0xffffe000U) != 0) || ((options & 0x204U) == 0x204)" (parenthesized_expression "((options & 0xffffe000U) != 0)" ( (binary_expression "(options & 0xffffe000U) != 0" (parenthesized_expression "(options & 0xffffe000U)" ( (binary_expression "options & 0xffffe000U" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "((options & 0x204U) == 0x204)" ( (binary_expression "(options & 0x204U) == 0x204" (parenthesized_expression "(options & 0x204U)" ( (binary_expression "options & 0x204U" identifier & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "((options & 0x12U) == 0)" ( (binary_expression "(options & 0x12U) == 0" (parenthesized_expression "(options & 0x12U)" ( (binary_expression "options & 0x12U" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    piVar6 = __errno_location();\n    *piVar6 = 0x16;\n    return (FTS *)0x0;\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar6 = 0x16;" (assignment_expression "*piVar6 = 0x16" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (return_statement "return (FTS *)0x0;" return (cast_expression "(FTS *)0x0" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "sp = (FTS *)calloc(0x58,1);" (assignment_expression "sp = (FTS *)calloc(0x58,1)" identifier = (cast_expression "(FTS *)calloc(0x58,1)" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(0x58,1)" identifier (argument_list "(0x58,1)" ( number_literal , number_literal ))))) ;) (if_statement "if (sp == (FTS *)0x0) {\n    return (FTS *)0x0;\n  }" if (parenthesized_expression "(sp == (FTS *)0x0)" ( (binary_expression "sp == (FTS *)0x0" identifier == (cast_expression "(FTS *)0x0" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (FTS *)0x0;\n  }" { (return_statement "return (FTS *)0x0;" return (cast_expression "(FTS *)0x0" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "sp->fts_cwd_fd = -100;" (assignment_expression "sp->fts_cwd_fd = -100" (field_expression "sp->fts_cwd_fd" identifier -> field_identifier) = number_literal) ;) (expression_statement "sp->fts_compar = (_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar;" (assignment_expression "sp->fts_compar = (_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar" (field_expression "sp->fts_compar" identifier -> field_identifier) = (cast_expression "(_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *)compar" ( (type_descriptor "_func_int__ftsent_ptr_ptr__ftsent_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar11 = options & 0xfffffdffU | 4;" (assignment_expression "uVar11 = options & 0xfffffdffU | 4" identifier = (binary_expression "options & 0xfffffdffU | 4" (binary_expression "options & 0xfffffdffU" identifier & number_literal) | number_literal)) ;) (if_statement "if ((options & 2U) == 0) {\n    uVar11 = options;\n  }" if (parenthesized_expression "((options & 2U) == 0)" ( (binary_expression "(options & 2U) == 0" (parenthesized_expression "(options & 2U)" ( (binary_expression "options & 2U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar11 = options;\n  }" { (expression_statement "uVar11 = options;" (assignment_expression "uVar11 = options" identifier = identifier) ;) })) (expression_statement "sp->fts_options = uVar11;" (assignment_expression "sp->fts_options = uVar11" (field_expression "sp->fts_options" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar10 = *argv;" (assignment_expression "pcVar10 = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n    sp_1 = (FTS *)0x1000;\n  }\n  else {\n    uVar11 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);\n    sp_1 = (FTS *)(uVar11 + 1);\n    if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }\n  }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sp_1 = (FTS *)0x1000;\n  }" { (expression_statement "sp_1 = (FTS *)0x1000;" (assignment_expression "sp_1 = (FTS *)0x1000" identifier = (cast_expression "(FTS *)0x1000" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    uVar11 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);\n    sp_1 = (FTS *)(uVar11 + 1);\n    if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }\n  }" else (compound_statement "{\n    uVar11 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);\n    sp_1 = (FTS *)(uVar11 + 1);\n    if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }\n  }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "ppcVar8 = argv;" (assignment_expression "ppcVar8 = argv" identifier = identifier) ;) (do_statement "do {\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    } while (pcVar10 != (char *)0x0);" do (compound_statement "{\n      sVar3 = strlen(pcVar10);\n      if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar10 = *ppcVar8;\n    }" { (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (uVar11 < sVar3) {\n        uVar11 = sVar3;\n      }" if (parenthesized_expression "(uVar11 < sVar3)" ( (binary_expression "uVar11 < sVar3" identifier < identifier) )) (compound_statement "{\n        uVar11 = sVar3;\n      }" { (expression_statement "uVar11 = sVar3;" (assignment_expression "uVar11 = sVar3" identifier = identifier) ;) })) (expression_statement "ppcVar8 = ppcVar8 + 1;" (assignment_expression "ppcVar8 = ppcVar8 + 1" identifier = (binary_expression "ppcVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = *ppcVar8;" (assignment_expression "pcVar10 = *ppcVar8" identifier = (pointer_expression "*ppcVar8" * identifier)) ;) }) while (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "sp_1 = (FTS *)(uVar11 + 1);" (assignment_expression "sp_1 = (FTS *)(uVar11 + 1)" identifier = (cast_expression "(FTS *)(uVar11 + 1)" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar11 + 1)" ( (binary_expression "uVar11 + 1" identifier + number_literal) )))) ;) (if_statement "if (sp_1 < (FTS *)0x1000) {\n      sp_1 = (FTS *)0x1000;\n    }" if (parenthesized_expression "(sp_1 < (FTS *)0x1000)" ( (binary_expression "sp_1 < (FTS *)0x1000" identifier < (cast_expression "(FTS *)0x1000" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sp_1 = (FTS *)0x1000;\n    }" { (expression_statement "sp_1 = (FTS *)0x1000;" (assignment_expression "sp_1 = (FTS *)0x1000" identifier = (cast_expression "(FTS *)0x1000" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))) (expression_statement "_Var1 = fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1);" (assignment_expression "_Var1 = fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1)" identifier = (call_expression "fts_palloc((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1)" identifier (argument_list "((FTS *)&sp->fts_path,(size_t)&sp->fts_pathlen,sp_1)" ( (cast_expression "(FTS *)&sp->fts_path" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&sp->fts_path" & (field_expression "sp->fts_path" identifier -> field_identifier))) , (cast_expression "(size_t)&sp->fts_pathlen" ( (type_descriptor "size_t" primitive_type) ) (pointer_expression "&sp->fts_pathlen" & (field_expression "sp->fts_pathlen" identifier -> field_identifier))) , identifier )))) ;) (if_statement "if (!_Var1) goto LAB_00025198;" if (parenthesized_expression "(!_Var1)" ( (unary_expression "!_Var1" ! identifier) )) (goto_statement "goto LAB_00025198;" goto statement_identifier ;)) (if_statement "if (*argv == (char *)0x0) {\n    local_2c = (FTSENT *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    p_Var5 = (FTSENT *)0x0;\nLAB_000250dc:\n    pFVar4 = fts_alloc(sp,"",0);\n    sp->fts_cur = pFVar4;\n    if (pFVar4 != (FTSENT *)0x0) {\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }\nLAB_00025170:\n    fts_lfree(p_Var5);\n    free(local_2c);\n  }\n  else {\n    local_2c = fts_alloc(sp,"",0);\n    if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }\n  }" if (parenthesized_expression "(*argv == (char *)0x0)" ( (binary_expression "*argv == (char *)0x0" (pointer_expression "*argv" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_2c = (FTSENT *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    p_Var5 = (FTSENT *)0x0;\nLAB_000250dc:\n    pFVar4 = fts_alloc(sp,"",0);\n    sp->fts_cur = pFVar4;\n    if (pFVar4 != (FTSENT *)0x0) {\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }\nLAB_00025170:\n    fts_lfree(p_Var5);\n    free(local_2c);\n  }" { (expression_statement "local_2c = (FTSENT *)0x0;" (assignment_expression "local_2c = (FTSENT *)0x0" identifier = (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }" if (parenthesized_expression "(compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" ( (binary_expression "compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" identifier != (cast_expression "(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" ( (type_descriptor "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);\n      goto LAB_00024fcd;\n    }" { (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00024fb8:\n      _Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);" statement_identifier : (expression_statement "_Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1);" (assignment_expression "_Var1 = (_Bool)((byte)((uint)sp->fts_options >> 10) & 1)" identifier = (call_expression "(_Bool)((byte)((uint)sp->fts_options >> 10) & 1)" (parenthesized_expression "(_Bool)" ( identifier )) (argument_list "((byte)((uint)sp->fts_options >> 10) & 1)" ( (binary_expression "(byte)((uint)sp->fts_options >> 10) & 1" (call_expression "(byte)((uint)sp->fts_options >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)sp->fts_options >> 10)" ( (binary_expression "(uint)sp->fts_options >> 10" (cast_expression "(uint)sp->fts_options" ( (type_descriptor "uint" type_identifier) ) (field_expression "sp->fts_options" identifier -> field_identifier)) >> number_literal) ))) & number_literal) )))) ;)) (goto_statement "goto LAB_00024fcd;" goto statement_identifier ;) })) (labeled_statement "LAB_00025266:\n    p_Var5 = (FTSENT *)0x0;" statement_identifier : (expression_statement "p_Var5 = (FTSENT *)0x0;" (assignment_expression "p_Var5 = (FTSENT *)0x0" identifier = (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (labeled_statement "LAB_000250dc:\n    pFVar4 = fts_alloc(sp,"",0);" statement_identifier : (expression_statement "pFVar4 = fts_alloc(sp,"",0);" (assignment_expression "pFVar4 = fts_alloc(sp,"",0)" identifier = (call_expression "fts_alloc(sp,"",0)" identifier (argument_list "(sp,"",0)" ( identifier , (string_literal """" " ") , number_literal )))) ;)) (expression_statement "sp->fts_cur = pFVar4;" (assignment_expression "sp->fts_cur = pFVar4" (field_expression "sp->fts_cur" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar4 != (FTSENT *)0x0) {\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }" if (parenthesized_expression "(pFVar4 != (FTSENT *)0x0)" ( (binary_expression "pFVar4 != (FTSENT *)0x0" identifier != (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pFVar4->fts_link = p_Var5;\n      pFVar4->fts_info = 9;\n      pFVar4->fts_level = 1;\n      _Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);\n      if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }\n    }" { (expression_statement "pFVar4->fts_link = p_Var5;" (assignment_expression "pFVar4->fts_link = p_Var5" (field_expression "pFVar4->fts_link" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar4->fts_info = 9;" (assignment_expression "pFVar4->fts_info = 9" (field_expression "pFVar4->fts_info" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar4->fts_level = 1;" (assignment_expression "pFVar4->fts_level = 1" (field_expression "pFVar4->fts_level" identifier -> field_identifier) = number_literal) ;) (expression_statement "_Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle);" (assignment_expression "_Var1 = setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle)" identifier = (call_expression "setup_dir((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle)" identifier (argument_list "((FTS *)sp->fts_options,(FTS *)&sp->fts_cycle)" ( (cast_expression "(FTS *)sp->fts_options" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sp->fts_options" identifier -> field_identifier)) , (cast_expression "(FTS *)&sp->fts_cycle" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&sp->fts_cycle" & (field_expression "sp->fts_cycle" identifier -> field_identifier))) )))) ;) (if_statement "if (_Var1) {\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }" if (parenthesized_expression "(_Var1)" ( identifier )) (compound_statement "{\n        if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }\n        i_ring_init(&sp->fts_fd_ring,-1);\n        return sp;\n      }" { (if_statement "if (((uint)sp->fts_options & 0x204) == 0) {\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }" if (parenthesized_expression "(((uint)sp->fts_options & 0x204) == 0)" ( (binary_expression "((uint)sp->fts_options & 0x204) == 0" (parenthesized_expression "((uint)sp->fts_options & 0x204)" ( (binary_expression "(uint)sp->fts_options & 0x204" (cast_expression "(uint)sp->fts_options" ( (type_descriptor "uint" type_identifier) ) (field_expression "sp->fts_options" identifier -> field_identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n          iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);\n          sp->fts_rfd = iVar7;\n          if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }\n        }" { (expression_statement "iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4);" (assignment_expression "iVar7 = diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4)" identifier = (call_expression "diropen((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4)" identifier (argument_list "((FTS *)sp->fts_cwd_fd,(char *)sp->fts_options,(FTS *)&DAT_0002dbc4)" ( (cast_expression "(FTS *)sp->fts_cwd_fd" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sp->fts_cwd_fd" identifier -> field_identifier)) , (cast_expression "(char *)sp->fts_options" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "sp->fts_options" identifier -> field_identifier)) , (cast_expression "(FTS *)&DAT_0002dbc4" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002dbc4" & identifier)) )))) ;) (expression_statement "sp->fts_rfd = iVar7;" (assignment_expression "sp->fts_rfd = iVar7" (field_expression "sp->fts_rfd" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar7 < 0) {\n            sp->fts_options = sp->fts_options | 4;\n          }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n            sp->fts_options = sp->fts_options | 4;\n          }" { (expression_statement "sp->fts_options = sp->fts_options | 4;" (assignment_expression "sp->fts_options = sp->fts_options | 4" (field_expression "sp->fts_options" identifier -> field_identifier) = (binary_expression "sp->fts_options | 4" (field_expression "sp->fts_options" identifier -> field_identifier) | number_literal)) ;) })) })) (expression_statement "i_ring_init(&sp->fts_fd_ring,-1);" (call_expression "i_ring_init(&sp->fts_fd_ring,-1)" identifier (argument_list "(&sp->fts_fd_ring,-1)" ( (pointer_expression "&sp->fts_fd_ring" & (field_expression "sp->fts_fd_ring" identifier -> field_identifier)) , number_literal ))) ;) (return_statement "return sp;" return identifier ;) })) })) (labeled_statement "LAB_00025170:\n    fts_lfree(p_Var5);" statement_identifier : (expression_statement "fts_lfree(p_Var5);" (call_expression "fts_lfree(p_Var5)" identifier (argument_list "(p_Var5)" ( identifier ))) ;)) (expression_statement "free(local_2c);" (call_expression "free(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) }) (else_clause "else {\n    local_2c = fts_alloc(sp,"",0);\n    if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }\n  }" else (compound_statement "{\n    local_2c = fts_alloc(sp,"",0);\n    if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }\n  }" { (expression_statement "local_2c = fts_alloc(sp,"",0);" (assignment_expression "local_2c = fts_alloc(sp,"",0)" identifier = (call_expression "fts_alloc(sp,"",0)" identifier (argument_list "(sp,"",0)" ( identifier , (string_literal """" " ") , number_literal )))) ;) (if_statement "if (local_2c != (FTSENT *)0x0) {\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }" if (parenthesized_expression "(local_2c != (FTSENT *)0x0)" ( (binary_expression "local_2c != (FTSENT *)0x0" identifier != (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_2c->fts_level = -1;\n      local_2c->fts_n_dirs_remaining = 0xffffffff;\n      pcVar10 = *argv;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = (FTSENT *)0x0;\n      uVar11 = 0;\n      p_Var9 = (_ftsent *)0x0;\n      do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }\n      goto LAB_000250dc;\n    }" { (expression_statement "local_2c->fts_level = -1;" (assignment_expression "local_2c->fts_level = -1" (field_expression "local_2c->fts_level" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_2c->fts_n_dirs_remaining = 0xffffffff;" (assignment_expression "local_2c->fts_n_dirs_remaining = 0xffffffff" (field_expression "local_2c->fts_n_dirs_remaining" identifier -> field_identifier) = number_literal) ;) (expression_statement "pcVar10 = *argv;" (assignment_expression "pcVar10 = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (if_statement "if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_00024fb8;" if (parenthesized_expression "(compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" ( (binary_expression "compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" identifier != (cast_expression "(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" ( (type_descriptor "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00024fb8;" goto statement_identifier ;)) (labeled_statement "LAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;" statement_identifier : (if_statement "if (pcVar10 == (char *)0x0) goto LAB_00025266;" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00025266;" goto statement_identifier ;))) (expression_statement "local_20 = (FTSENT *)0x0;" (assignment_expression "local_20 = (FTSENT *)0x0" identifier = (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "p_Var9 = (_ftsent *)0x0;" (assignment_expression "p_Var9 = (_ftsent *)0x0" identifier = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      } while (pcVar10 != (char *)0x0);" do (compound_statement "{\n        namelen = strlen(pcVar10);\n        if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }\n        pFVar4 = fts_alloc(sp,pcVar10,namelen);\n        p_Var5 = p_Var9;\n        if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;\n        pFVar4->fts_level = 0;\n        pFVar4->fts_parent = local_2c;\n        pFVar4->fts_accpath = (char *)(pFVar4 + 1);\n        p_Var5 = pFVar4;\n        if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }\n        local_20 = pFVar4;\n        uVar11 = uVar11 + 1;\n        pcVar10 = argv[uVar11];\n        p_Var9 = p_Var5;\n      }" { (expression_statement "namelen = strlen(pcVar10);" (assignment_expression "namelen = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')) {\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }" if (parenthesized_expression "(((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/'))" ( (binary_expression "((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[namelen - 1] == '/')" (parenthesized_expression "((2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0))" ( (binary_expression "(2 < namelen) && ((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)" (parenthesized_expression "(2 < namelen)" ( (binary_expression "2 < namelen" number_literal < identifier) )) && (parenthesized_expression "((((byte)((uint)options >> 0xc) ^ 1) & 1) != 0)" ( (binary_expression "(((byte)((uint)options >> 0xc) ^ 1) & 1) != 0" (parenthesized_expression "(((byte)((uint)options >> 0xc) ^ 1) & 1)" ( (binary_expression "((byte)((uint)options >> 0xc) ^ 1) & 1" (parenthesized_expression "((byte)((uint)options >> 0xc) ^ 1)" ( (binary_expression "(byte)((uint)options >> 0xc) ^ 1" (call_expression "(byte)((uint)options >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)options >> 0xc)" ( (binary_expression "(uint)options >> 0xc" (cast_expression "(uint)options" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) ^ number_literal) )) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(pcVar10[namelen - 1] == '/')" ( (binary_expression "pcVar10[namelen - 1] == '/'" (subscript_expression "pcVar10[namelen - 1]" identifier [ (binary_expression "namelen - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n          do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);\n        }" { (do_statement "do {\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          } while (namelen != 1);" do (compound_statement "{\n            if (pcVar10[namelen - 2] != '/') break;\n            namelen = namelen - 1;\n          }" { (if_statement "if (pcVar10[namelen - 2] != '/') break;" if (parenthesized_expression "(pcVar10[namelen - 2] != '/')" ( (binary_expression "pcVar10[namelen - 2] != '/'" (subscript_expression "pcVar10[namelen - 2]" identifier [ (binary_expression "namelen - 2" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "namelen = namelen - 1;" (assignment_expression "namelen = namelen - 1" identifier = (binary_expression "namelen - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(namelen != 1)" ( (binary_expression "namelen != 1" identifier != number_literal) )) ;) })) (expression_statement "pFVar4 = fts_alloc(sp,pcVar10,namelen);" (assignment_expression "pFVar4 = fts_alloc(sp,pcVar10,namelen)" identifier = (call_expression "fts_alloc(sp,pcVar10,namelen)" identifier (argument_list "(sp,pcVar10,namelen)" ( identifier , identifier , identifier )))) ;) (expression_statement "p_Var5 = p_Var9;" (assignment_expression "p_Var5 = p_Var9" identifier = identifier) ;) (if_statement "if (pFVar4 == (FTSENT *)0x0) goto LAB_00025170;" if (parenthesized_expression "(pFVar4 == (FTSENT *)0x0)" ( (binary_expression "pFVar4 == (FTSENT *)0x0" identifier == (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00025170;" goto statement_identifier ;)) (expression_statement "pFVar4->fts_level = 0;" (assignment_expression "pFVar4->fts_level = 0" (field_expression "pFVar4->fts_level" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar4->fts_parent = local_2c;" (assignment_expression "pFVar4->fts_parent = local_2c" (field_expression "pFVar4->fts_parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar4->fts_accpath = (char *)(pFVar4 + 1);" (assignment_expression "pFVar4->fts_accpath = (char *)(pFVar4 + 1)" (field_expression "pFVar4->fts_accpath" identifier -> field_identifier) = (cast_expression "(char *)(pFVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pFVar4 + 1)" ( (binary_expression "pFVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "p_Var5 = pFVar4;" (assignment_expression "p_Var5 = pFVar4" identifier = identifier) ;) (if_statement "if ((p_Var9 == (_ftsent *)0x0) || (_Var1 == false)) {\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }" if (parenthesized_expression "((p_Var9 == (_ftsent *)0x0) || (_Var1 == false))" ( (binary_expression "(p_Var9 == (_ftsent *)0x0) || (_Var1 == false)" (parenthesized_expression "(p_Var9 == (_ftsent *)0x0)" ( (binary_expression "p_Var9 == (_ftsent *)0x0" identifier == (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(_Var1 == false)" ( (binary_expression "_Var1 == false" identifier == false) ))) )) (compound_statement "{\n          uVar2 = fts_stat(sp,pFVar4,false);\n          pFVar4->fts_info = uVar2;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;\n          pFVar4->fts_link = (_ftsent *)0x0;\n          if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;\n        }" { (expression_statement "uVar2 = fts_stat(sp,pFVar4,false);" (assignment_expression "uVar2 = fts_stat(sp,pFVar4,false)" identifier = (call_expression "fts_stat(sp,pFVar4,false)" identifier (argument_list "(sp,pFVar4,false)" ( identifier , identifier , false )))) ;) (expression_statement "pFVar4->fts_info = uVar2;" (assignment_expression "pFVar4->fts_info = uVar2" (field_expression "pFVar4->fts_info" identifier -> field_identifier) = identifier) ;) (if_statement "if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_0002505c;" if (parenthesized_expression "(compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" ( (binary_expression "compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" identifier != (cast_expression "(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" ( (type_descriptor "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002505c;" goto statement_identifier ;)) (expression_statement "pFVar4->fts_link = (_ftsent *)0x0;" (assignment_expression "pFVar4->fts_link = (_ftsent *)0x0" (field_expression "pFVar4->fts_link" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (p_Var9 != (_ftsent *)0x0) goto LAB_00025217;" if (parenthesized_expression "(p_Var9 != (_ftsent *)0x0)" ( (binary_expression "p_Var9 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00025217;" goto statement_identifier ;)) }) (else_clause "else {\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }" else (compound_statement "{\n          *(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;\n          pFVar4->fts_info = 0xb;\n          *(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }\n        }" { (expression_statement "*(undefined4 *)&pFVar4->fts_statp[0].st_size = 2;" (assignment_expression "*(undefined4 *)&pFVar4->fts_statp[0].st_size = 2" (pointer_expression "*(undefined4 *)&pFVar4->fts_statp[0].st_size" * (cast_expression "(undefined4 *)&pFVar4->fts_statp[0].st_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pFVar4->fts_statp[0].st_size" & (field_expression "pFVar4->fts_statp[0].st_size" (subscript_expression "pFVar4->fts_statp[0]" (field_expression "pFVar4->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "pFVar4->fts_info = 0xb;" (assignment_expression "pFVar4->fts_info = 0xb" (field_expression "pFVar4->fts_info" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4)" * (cast_expression "(undefined4 *)((int)&pFVar4->fts_statp[0].st_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFVar4->fts_statp[0].st_size + 4)" ( (binary_expression "(int)&pFVar4->fts_statp[0].st_size + 4" (cast_expression "(int)&pFVar4->fts_statp[0].st_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFVar4->fts_statp[0].st_size" & (field_expression "pFVar4->fts_statp[0].st_size" (subscript_expression "pFVar4->fts_statp[0]" (field_expression "pFVar4->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))) + number_literal) )))) = number_literal) ;) (if_statement "if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }\n          else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }" if (parenthesized_expression "(compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" ( (binary_expression "compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" identifier == (cast_expression "(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" ( (type_descriptor "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            pFVar4->fts_link = (_ftsent *)0x0;\nLAB_00025217:\n            local_20->fts_link = pFVar4;\n            p_Var5 = p_Var9;\n          }" { (expression_statement "pFVar4->fts_link = (_ftsent *)0x0;" (assignment_expression "pFVar4->fts_link = (_ftsent *)0x0" (field_expression "pFVar4->fts_link" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00025217:\n            local_20->fts_link = pFVar4;" statement_identifier : (expression_statement "local_20->fts_link = pFVar4;" (assignment_expression "local_20->fts_link = pFVar4" (field_expression "local_20->fts_link" identifier -> field_identifier) = identifier) ;)) (expression_statement "p_Var5 = p_Var9;" (assignment_expression "p_Var5 = p_Var9" identifier = identifier) ;) }) (else_clause "else {\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }" else (compound_statement "{\nLAB_0002505c:\n            pFVar4->fts_link = p_Var9;\n            pFVar4 = local_20;\n          }" { (labeled_statement "LAB_0002505c:\n            pFVar4->fts_link = p_Var9;" statement_identifier : (expression_statement "pFVar4->fts_link = p_Var9;" (assignment_expression "pFVar4->fts_link = p_Var9" (field_expression "pFVar4->fts_link" identifier -> field_identifier) = identifier) ;)) (expression_statement "pFVar4 = local_20;" (assignment_expression "pFVar4 = local_20" identifier = identifier) ;) }))) }))) (expression_statement "local_20 = pFVar4;" (assignment_expression "local_20 = pFVar4" identifier = identifier) ;) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" identifier = (binary_expression "uVar11 + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = argv[uVar11];" (assignment_expression "pcVar10 = argv[uVar11]" identifier = (subscript_expression "argv[uVar11]" identifier [ identifier ])) ;) (expression_statement "p_Var9 = p_Var5;" (assignment_expression "p_Var9 = p_Var5" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)) {\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }" if (parenthesized_expression "((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11))" ( (binary_expression "(compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < uVar11)" (parenthesized_expression "(compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" ( (binary_expression "compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" identifier != (cast_expression "(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" ( (type_descriptor "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n        p_Var5 = fts_sort(sp,p_Var5,uVar11);\n      }" { (expression_statement "p_Var5 = fts_sort(sp,p_Var5,uVar11);" (assignment_expression "p_Var5 = fts_sort(sp,p_Var5,uVar11)" identifier = (call_expression "fts_sort(sp,p_Var5,uVar11)" identifier (argument_list "(sp,p_Var5,uVar11)" ( identifier , identifier , identifier )))) ;) })) (goto_statement "goto LAB_000250dc;" goto statement_identifier ;) })) }))) (expression_statement "free(sp->fts_path);" (call_expression "free(sp->fts_path)" identifier (argument_list "(sp->fts_path)" ( (field_expression "sp->fts_path" identifier -> field_identifier) ))) ;) (labeled_statement "LAB_00025198:\n  free(sp);" statement_identifier : (expression_statement "free(sp);" (call_expression "free(sp)" identifier (argument_list "(sp)" ( identifier ))) ;)) (return_statement "return (FTS *)0x0;" return (cast_expression "(FTS *)0x0" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}\n\n" (function_definition "int * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* fts_open(int *param_1,uint param_2,int param_3)" * (function_declarator "fts_open(int *param_1,uint param_2,int param_3)" identifier (parameter_list "(int *param_1,uint param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined2 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "void *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }" if (parenthesized_expression "((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0))" ( (binary_expression "(((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)" (parenthesized_expression "(((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204))" ( (binary_expression "((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)" (parenthesized_expression "((param_2 & 0xffffe000) != 0)" ( (binary_expression "(param_2 & 0xffffe000) != 0" (parenthesized_expression "(param_2 & 0xffffe000)" ( (binary_expression "param_2 & 0xffffe000" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "((param_2 & 0x204) == 0x204)" ( (binary_expression "(param_2 & 0x204) == 0x204" (parenthesized_expression "(param_2 & 0x204)" ( (binary_expression "param_2 & 0x204" identifier & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "((param_2 & 0x12) == 0)" ( (binary_expression "(param_2 & 0x12) == 0" (parenthesized_expression "(param_2 & 0x12)" ( (binary_expression "param_2 & 0x12" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar4 = 0x16;" (assignment_expression "*piVar4 = 0x16" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar4 = (int *)calloc(0x58,1);" (assignment_expression "piVar4 = (int *)calloc(0x58,1)" identifier = (cast_expression "(int *)calloc(0x58,1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(0x58,1)" identifier (argument_list "(0x58,1)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar4[7] = -100;" (assignment_expression "piVar4[7] = -100" (subscript_expression "piVar4[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[10] = param_3;" (assignment_expression "piVar4[10] = param_3" (subscript_expression "piVar4[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar11 = param_2 & 0xfffffdff | 4;" (assignment_expression "uVar11 = param_2 & 0xfffffdff | 4" identifier = (binary_expression "param_2 & 0xfffffdff | 4" (binary_expression "param_2 & 0xfffffdff" identifier & number_literal) | number_literal)) ;) (if_statement "if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }" if (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar11 = param_2;\n  }" { (expression_statement "uVar11 = param_2;" (assignment_expression "uVar11 = param_2" identifier = identifier) ;) })) (expression_statement "piVar4[0xb] = uVar11;" (assignment_expression "piVar4[0xb] = uVar11" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar9 = param_1;" (assignment_expression "piVar9 = param_1" identifier = identifier) ;) (do_statement "do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);" do (compound_statement "{\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    }" { (expression_statement "sVar5 = strlen(pcVar10);" (assignment_expression "sVar5 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }" if (parenthesized_expression "(uVar11 < sVar5)" ( (binary_expression "uVar11 < sVar5" identifier < identifier) )) (compound_statement "{\n        uVar11 = sVar5;\n      }" { (expression_statement "uVar11 = sVar5;" (assignment_expression "uVar11 = sVar5" identifier = identifier) ;) })) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = (char *)*piVar9;" (assignment_expression "pcVar10 = (char *)*piVar9" identifier = (cast_expression "(char *)*piVar9" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar9" * identifier))) ;) }) while (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "bVar1 = FUN_00023e60();" (assignment_expression "bVar1 = FUN_00023e60()" identifier = (call_expression "FUN_00023e60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (bVar1 == 0) goto LAB_00025198;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00025198;" goto statement_identifier ;)) (if_statement "if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }" { (expression_statement "local_2c = (void *)0x0;" (assignment_expression "local_2c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }" { (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;" statement_identifier : (expression_statement "bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;" (assignment_expression "bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1" identifier = (binary_expression "(byte)((uint)piVar4[0xb] >> 10) & 1" (call_expression "(byte)((uint)piVar4[0xb] >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)piVar4[0xb] >> 10)" ( (binary_expression "(uint)piVar4[0xb] >> 10" (cast_expression "(uint)piVar4[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar4[0xb]" identifier [ number_literal ])) >> number_literal) ))) & number_literal)) ;)) (goto_statement "goto LAB_00024fcd;" goto statement_identifier ;) })) (labeled_statement "LAB_00025266:\n    iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_000250dc:\n    iVar8 = FUN_00023a70();" statement_identifier : (expression_statement "iVar8 = FUN_00023a70();" (assignment_expression "iVar8 = FUN_00023a70()" identifier = (call_expression "FUN_00023a70()" identifier (argument_list "()" ( )))) ;)) (expression_statement "*piVar4 = iVar8;" (assignment_expression "*piVar4 = iVar8" (pointer_expression "*piVar4" * identifier) = identifier) ;) (if_statement "if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }" { (expression_statement "*(int *)(iVar8 + 8) = iVar7;" (assignment_expression "*(int *)(iVar8 + 8) = iVar7" (pointer_expression "*(int *)(iVar8 + 8)" * (cast_expression "(int *)(iVar8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar8 + 0x3c) = 9;" (assignment_expression "*(undefined2 *)(iVar8 + 0x3c) = 9" (pointer_expression "*(undefined2 *)(iVar8 + 0x3c)" * (cast_expression "(undefined2 *)(iVar8 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x3c)" ( (binary_expression "iVar8 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar8 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = 1" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" * (cast_expression "(undefined4 *)(iVar8 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x30)" ( (binary_expression "iVar8 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "cVar2 = FUN_00023ee0();" (assignment_expression "cVar2 = FUN_00023ee0()" identifier = (call_expression "FUN_00023ee0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }" { (if_statement "if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }" if (parenthesized_expression "((piVar4[0xb] & 0x204U) == 0)" ( (binary_expression "(piVar4[0xb] & 0x204U) == 0" (parenthesized_expression "(piVar4[0xb] & 0x204U)" ( (binary_expression "piVar4[0xb] & 0x204U" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }" { (expression_statement "iVar7 = FUN_00023f60();" (assignment_expression "iVar7 = FUN_00023f60()" identifier = (call_expression "FUN_00023f60()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar4[6] = iVar7;" (assignment_expression "piVar4[6] = iVar7" (subscript_expression "piVar4[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }" { (expression_statement "piVar4[0xb] = piVar4[0xb] | 4;" (assignment_expression "piVar4[0xb] = piVar4[0xb] | 4" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) = (binary_expression "piVar4[0xb] | 4" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) | number_literal)) ;) })) })) (expression_statement "FUN_00027fb0(piVar4 + 0xe,0xffffffff);" (call_expression "FUN_00027fb0(piVar4 + 0xe,0xffffffff)" identifier (argument_list "(piVar4 + 0xe,0xffffffff)" ( (binary_expression "piVar4 + 0xe" identifier + number_literal) , number_literal ))) ;) (return_statement "return piVar4;" return identifier ;) })) })) (labeled_statement "LAB_00025170:\n    FUN_00023b00();" statement_identifier : (expression_statement "FUN_00023b00();" (call_expression "FUN_00023b00()" identifier (argument_list "()" ( ))) ;)) (expression_statement "free(local_2c);" (call_expression "free(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) }) (else_clause "else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" else (compound_statement "{\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" { (expression_statement "local_2c = (void *)FUN_00023a70();" (assignment_expression "local_2c = (void *)FUN_00023a70()" identifier = (cast_expression "(void *)FUN_00023a70()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023a70()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }" if (parenthesized_expression "(local_2c != (void *)0x0)" ( (binary_expression "local_2c != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }" { (expression_statement "*(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_2c + 0x30) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_2c + 0x30)" * (cast_expression "(undefined4 *)((int)local_2c + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + 0x30)" ( (binary_expression "(int)local_2c + 0x30" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_2c + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_2c + 0x38)" * (cast_expression "(undefined4 *)((int)local_2c + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + 0x38)" ( (binary_expression "(int)local_2c + 0x38" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_3 != 0) goto LAB_00024fb8;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00024fb8;" goto statement_identifier ;)) (labeled_statement "LAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;" statement_identifier : (if_statement "if (pcVar10 == (char *)0x0) goto LAB_00025266;" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00025266;" goto statement_identifier ;))) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);" do (compound_statement "{\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      }" { (expression_statement "sVar5 = strlen(pcVar10);" (assignment_expression "sVar5 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (if_statement "if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }" if (parenthesized_expression "(((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/'))" ( (binary_expression "((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')" (parenthesized_expression "((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0))" ( (binary_expression "(2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)" (parenthesized_expression "(2 < sVar5)" ( (binary_expression "2 < sVar5" number_literal < identifier) )) && (parenthesized_expression "((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)" ( (binary_expression "(((byte)(param_2 >> 0xc) ^ 1) & 1) != 0" (parenthesized_expression "(((byte)(param_2 >> 0xc) ^ 1) & 1)" ( (binary_expression "((byte)(param_2 >> 0xc) ^ 1) & 1" (parenthesized_expression "((byte)(param_2 >> 0xc) ^ 1)" ( (binary_expression "(byte)(param_2 >> 0xc) ^ 1" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) ^ number_literal) )) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(pcVar10[sVar5 - 1] == '/')" ( (binary_expression "pcVar10[sVar5 - 1] == '/'" (subscript_expression "pcVar10[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }" { (do_statement "do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);" do (compound_statement "{\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          }" { (if_statement "if (pcVar10[sVar5 - 2] != '/') break;" if (parenthesized_expression "(pcVar10[sVar5 - 2] != '/')" ( (binary_expression "pcVar10[sVar5 - 2] != '/'" (subscript_expression "pcVar10[sVar5 - 2]" identifier [ (binary_expression "sVar5 - 2" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "sVar5 = sVar5 - 1;" (assignment_expression "sVar5 = sVar5 - 1" identifier = (binary_expression "sVar5 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(sVar5 != 1)" ( (binary_expression "sVar5 != 1" identifier != number_literal) )) ;) })) (expression_statement "iVar6 = FUN_00023a70();" (assignment_expression "iVar6 = FUN_00023a70()" identifier = (call_expression "FUN_00023a70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar6 == 0) goto LAB_00025170;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00025170;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar6 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x30)" * (cast_expression "(undefined4 *)(iVar6 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x30)" ( (binary_expression "iVar6 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)(iVar6 + 4) = local_2c;" (assignment_expression "*(void **)(iVar6 + 4) = local_2c" (pointer_expression "*(void **)(iVar6 + 4)" * (cast_expression "(void **)(iVar6 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar6 + 0x18) = iVar6 + 0xa4;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar6 + 0xa4" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar6 + 0xa4" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) (if_statement "if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" if (parenthesized_expression "((iVar8 == 0) || (bVar1 == 0))" ( (binary_expression "(iVar8 == 0) || (bVar1 == 0)" (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) || (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }" { (expression_statement "uVar3 = FUN_000237e0();" (assignment_expression "uVar3 = FUN_000237e0()" identifier = (call_expression "FUN_000237e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined2 *)(iVar6 + 0x3c) = uVar3;" (assignment_expression "*(undefined2 *)(iVar6 + 0x3c) = uVar3" (pointer_expression "*(undefined2 *)(iVar6 + 0x3c)" * (cast_expression "(undefined2 *)(iVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x3c)" ( (binary_expression "iVar6 + 0x3c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_3 != 0) goto LAB_0002505c;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0002505c;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar8 != 0) goto LAB_00025217;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00025217;" goto statement_identifier ;)) }) (else_clause "else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" else (compound_statement "{\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" { (expression_statement "*(undefined4 *)(iVar6 + 0x70) = 2;" (assignment_expression "*(undefined4 *)(iVar6 + 0x70) = 2" (pointer_expression "*(undefined4 *)(iVar6 + 0x70)" * (cast_expression "(undefined4 *)(iVar6 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x70)" ( (binary_expression "iVar6 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar6 + 0x3c) = 0xb;" (assignment_expression "*(undefined2 *)(iVar6 + 0x3c) = 0xb" (pointer_expression "*(undefined2 *)(iVar6 + 0x3c)" * (cast_expression "(undefined2 *)(iVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x3c)" ( (binary_expression "iVar6 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x74)" * (cast_expression "(undefined4 *)(iVar6 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x74)" ( (binary_expression "iVar6 + 0x74" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }" { (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;" statement_identifier : (expression_statement "*(int *)(local_20 + 8) = iVar6;" (assignment_expression "*(int *)(local_20 + 8) = iVar6" (pointer_expression "*(int *)(local_20 + 8)" * (cast_expression "(int *)(local_20 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 8)" ( (binary_expression "local_20 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) (else_clause "else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" else (compound_statement "{\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" { (labeled_statement "LAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;" statement_identifier : (expression_statement "*(int *)(iVar6 + 8) = iVar8;" (assignment_expression "*(int *)(iVar6 + 8) = iVar8" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "iVar6 = local_20;" (assignment_expression "iVar6 = local_20" identifier = identifier) ;) }))) }))) (expression_statement "local_20 = iVar6;" (assignment_expression "local_20 = iVar6" identifier = identifier) ;) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" identifier = (binary_expression "uVar11 + 1" identifier + number_literal)) ;) (expression_statement "pcVar10 = (char *)param_1[uVar11];" (assignment_expression "pcVar10 = (char *)param_1[uVar11]" identifier = (cast_expression "(char *)param_1[uVar11]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[uVar11]" identifier [ identifier ]))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }" if (parenthesized_expression "((param_3 != 0) && (1 < uVar11))" ( (binary_expression "(param_3 != 0) && (1 < uVar11)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n        iVar7 = FUN_00023980();\n      }" { (expression_statement "iVar7 = FUN_00023980();" (assignment_expression "iVar7 = FUN_00023980()" identifier = (call_expression "FUN_00023980()" identifier (argument_list "()" ( )))) ;) })) (goto_statement "goto LAB_000250dc;" goto statement_identifier ;) })) }))) (expression_statement "free((void *)piVar4[5]);" (call_expression "free((void *)piVar4[5])" identifier (argument_list "((void *)piVar4[5])" ( (cast_expression "(void *)piVar4[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[5]" identifier [ number_literal ])) ))) ;) (labeled_statement "LAB_00025198:\n  free(piVar4);" statement_identifier : (expression_statement "free(piVar4);" (call_expression "free(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))) ;)) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT) ))) & LIT)) ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT ))) ;) (return_statement return IDENT ;) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) ^ LIT) )) & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) == (char_literal ' character ')) ))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) != (char_literal ' character ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* fts_open(int *param_1,uint param_2,int param_3)" (* "*") (function_declarator "fts_open(int *param_1,uint param_2,int param_3)" (identifier "fts_open") (parameter_list "(int *param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  undefined2 uVar3;\n  int *piVar4;\n  size_t sVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  char *pcVar10;\n  uint uVar11;\n  void *local_2c;\n  int local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }\n  piVar4 = (int *)calloc(0x58,1);\n  if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  piVar4[7] = -100;\n  piVar4[10] = param_3;\n  uVar11 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }\n  piVar4[0xb] = uVar11;\n  pcVar10 = (char *)*param_1;\n  if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }\n  bVar1 = FUN_00023e60();\n  if (bVar1 == 0) goto LAB_00025198;\n  if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }\n  free((void *)piVar4[5]);\nLAB_00025198:\n  free(piVar4);\n  return (int *)0x0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined2 uVar3;" (type_identifier "undefined2") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "void *local_2c;" (primitive_type "void") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (if_statement "if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0))" (( "(") (binary_expression "(((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)" (parenthesized_expression "(((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204))" (( "(") (binary_expression "((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)" (parenthesized_expression "((param_2 & 0xffffe000) != 0)" (( "(") (binary_expression "(param_2 & 0xffffe000) != 0" (parenthesized_expression "(param_2 & 0xffffe000)" (( "(") (binary_expression "param_2 & 0xffffe000" (identifier "param_2") (& "&") (number_literal "0xffffe000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((param_2 & 0x204) == 0x204)" (( "(") (binary_expression "(param_2 & 0x204) == 0x204" (parenthesized_expression "(param_2 & 0x204)" (( "(") (binary_expression "param_2 & 0x204" (identifier "param_2") (& "&") (number_literal "0x204")) () ")")) (== "==") (number_literal "0x204")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((param_2 & 0x12) == 0)" (( "(") (binary_expression "(param_2 & 0x12) == 0" (parenthesized_expression "(param_2 & 0x12)" (( "(") (binary_expression "param_2 & 0x12" (identifier "param_2") (& "&") (number_literal "0x12")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    piVar4 = __errno_location();\n    *piVar4 = 0x16;\n    return (int *)0x0;\n  }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar4 = 0x16;" (assignment_expression "*piVar4 = 0x16" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0x16")) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)calloc(0x58,1);" (assignment_expression "piVar4 = (int *)calloc(0x58,1)" (identifier "piVar4") (= "=") (cast_expression "(int *)calloc(0x58,1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "calloc(0x58,1)" (identifier "calloc") (argument_list "(0x58,1)" (( "(") (number_literal "0x58") (, ",") (number_literal "1") () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return (int *)0x0;\n  }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "piVar4[7] = -100;" (assignment_expression "piVar4[7] = -100" (subscript_expression "piVar4[7]" (identifier "piVar4") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "-100")) (; ";")) (expression_statement "piVar4[10] = param_3;" (assignment_expression "piVar4[10] = param_3" (subscript_expression "piVar4[10]" (identifier "piVar4") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar11 = param_2 & 0xfffffdff | 4;" (assignment_expression "uVar11 = param_2 & 0xfffffdff | 4" (identifier "uVar11") (= "=") (binary_expression "param_2 & 0xfffffdff | 4" (binary_expression "param_2 & 0xfffffdff" (identifier "param_2") (& "&") (number_literal "0xfffffdff")) (| "|") (number_literal "4"))) (; ";")) (if_statement "if ((param_2 & 2) == 0) {\n    uVar11 = param_2;\n  }" (if "if") (parenthesized_expression "((param_2 & 2) == 0)" (( "(") (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar11 = param_2;\n  }" ({ "{") (expression_statement "uVar11 = param_2;" (assignment_expression "uVar11 = param_2" (identifier "uVar11") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "piVar4[0xb] = uVar11;" (assignment_expression "piVar4[0xb] = uVar11" (subscript_expression "piVar4[0xb]" (identifier "piVar4") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" (identifier "pcVar10") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (pcVar10 != (char *)0x0) {\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }" (if "if") (parenthesized_expression "(pcVar10 != (char *)0x0)" (( "(") (binary_expression "pcVar10 != (char *)0x0" (identifier "pcVar10") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar11 = 0;\n    piVar9 = param_1;\n    do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);\n  }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar9 = param_1;" (assignment_expression "piVar9 = param_1" (identifier "piVar9") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    } while (pcVar10 != (char *)0x0);" (do "do") (compound_statement "{\n      sVar5 = strlen(pcVar10);\n      if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }\n      piVar9 = piVar9 + 1;\n      pcVar10 = (char *)*piVar9;\n    }" ({ "{") (expression_statement "sVar5 = strlen(pcVar10);" (assignment_expression "sVar5 = strlen(pcVar10)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar10)" (identifier "strlen") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")")))) (; ";")) (if_statement "if (uVar11 < sVar5) {\n        uVar11 = sVar5;\n      }" (if "if") (parenthesized_expression "(uVar11 < sVar5)" (( "(") (binary_expression "uVar11 < sVar5" (identifier "uVar11") (< "<") (identifier "sVar5")) () ")")) (compound_statement "{\n        uVar11 = sVar5;\n      }" ({ "{") (expression_statement "uVar11 = sVar5;" (assignment_expression "uVar11 = sVar5" (identifier "uVar11") (= "=") (identifier "sVar5")) (; ";")) (} "}"))) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" (identifier "piVar9") (= "=") (binary_expression "piVar9 + 1" (identifier "piVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar10 = (char *)*piVar9;" (assignment_expression "pcVar10 = (char *)*piVar9" (identifier "pcVar10") (= "=") (cast_expression "(char *)*piVar9" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar9" (* "*") (identifier "piVar9")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar10 != (char *)0x0)" (( "(") (binary_expression "pcVar10 != (char *)0x0" (identifier "pcVar10") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "bVar1 = FUN_00023e60();" (assignment_expression "bVar1 = FUN_00023e60()" (identifier "bVar1") (= "=") (call_expression "FUN_00023e60()" (identifier "FUN_00023e60") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (bVar1 == 0) goto LAB_00025198;" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00025198;" (goto "goto") (statement_identifier "LAB_00025198") (; ";"))) (if_statement "if (*param_1 == 0) {\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }\n  else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_2c = (void *)0x0;\n    if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }\nLAB_00025266:\n    iVar7 = 0;\nLAB_000250dc:\n    iVar8 = FUN_00023a70();\n    *piVar4 = iVar8;\n    if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }\nLAB_00025170:\n    FUN_00023b00();\n    free(local_2c);\n  }" ({ "{") (expression_statement "local_2c = (void *)0x0;" (assignment_expression "local_2c = (void *)0x0" (identifier "local_2c") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (param_3 != 0) {\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar10 = (char *)0x0;\nLAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;\n      goto LAB_00024fcd;\n    }" ({ "{") (expression_statement "pcVar10 = (char *)0x0;" (assignment_expression "pcVar10 = (char *)0x0" (identifier "pcVar10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_00024fb8:\n      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;" (statement_identifier "LAB_00024fb8") (: ":") (expression_statement "bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;" (assignment_expression "bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1" (identifier "bVar1") (= "=") (binary_expression "(byte)((uint)piVar4[0xb] >> 10) & 1" (call_expression "(byte)((uint)piVar4[0xb] >> 10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((uint)piVar4[0xb] >> 10)" (( "(") (binary_expression "(uint)piVar4[0xb] >> 10" (cast_expression "(uint)piVar4[0xb]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar4[0xb]" (identifier "piVar4") ([ "[") (number_literal "0xb") (] "]"))) (>> ">>") (number_literal "10")) () ")"))) (& "&") (number_literal "1"))) (; ";"))) (goto_statement "goto LAB_00024fcd;" (goto "goto") (statement_identifier "LAB_00024fcd") (; ";")) (} "}"))) (labeled_statement "LAB_00025266:\n    iVar7 = 0;" (statement_identifier "LAB_00025266") (: ":") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_000250dc:\n    iVar8 = FUN_00023a70();" (statement_identifier "LAB_000250dc") (: ":") (expression_statement "iVar8 = FUN_00023a70();" (assignment_expression "iVar8 = FUN_00023a70()" (identifier "iVar8") (= "=") (call_expression "FUN_00023a70()" (identifier "FUN_00023a70") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "*piVar4 = iVar8;" (assignment_expression "*piVar4 = iVar8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "iVar8")) (; ";")) (if_statement "if (iVar8 != 0) {\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(iVar8 + 8) = iVar7;\n      *(undefined2 *)(iVar8 + 0x3c) = 9;\n      *(undefined4 *)(iVar8 + 0x30) = 1;\n      cVar2 = FUN_00023ee0();\n      if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }\n    }" ({ "{") (expression_statement "*(int *)(iVar8 + 8) = iVar7;" (assignment_expression "*(int *)(iVar8 + 8) = iVar7" (pointer_expression "*(int *)(iVar8 + 8)" (* "*") (cast_expression "(int *)(iVar8 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 8)" (( "(") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(undefined2 *)(iVar8 + 0x3c) = 9;" (assignment_expression "*(undefined2 *)(iVar8 + 0x3c) = 9" (pointer_expression "*(undefined2 *)(iVar8 + 0x3c)" (* "*") (cast_expression "(undefined2 *)(iVar8 + 0x3c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x3c)" (( "(") (binary_expression "iVar8 + 0x3c" (identifier "iVar8") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "9")) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = 1" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x30)" (( "(") (binary_expression "iVar8 + 0x30" (identifier "iVar8") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "cVar2 = FUN_00023ee0();" (assignment_expression "cVar2 = FUN_00023ee0()" (identifier "cVar2") (= "=") (call_expression "FUN_00023ee0()" (identifier "FUN_00023ee0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }\n        FUN_00027fb0(piVar4 + 0xe,0xffffffff);\n        return piVar4;\n      }" ({ "{") (if_statement "if ((piVar4[0xb] & 0x204U) == 0) {\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }" (if "if") (parenthesized_expression "((piVar4[0xb] & 0x204U) == 0)" (( "(") (binary_expression "(piVar4[0xb] & 0x204U) == 0" (parenthesized_expression "(piVar4[0xb] & 0x204U)" (( "(") (binary_expression "piVar4[0xb] & 0x204U" (subscript_expression "piVar4[0xb]" (identifier "piVar4") ([ "[") (number_literal "0xb") (] "]")) (& "&") (number_literal "0x204U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar7 = FUN_00023f60();\n          piVar4[6] = iVar7;\n          if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }\n        }" ({ "{") (expression_statement "iVar7 = FUN_00023f60();" (assignment_expression "iVar7 = FUN_00023f60()" (identifier "iVar7") (= "=") (call_expression "FUN_00023f60()" (identifier "FUN_00023f60") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar4[6] = iVar7;" (assignment_expression "piVar4[6] = iVar7" (subscript_expression "piVar4[6]" (identifier "piVar4") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 < 0) {\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }" (if "if") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            piVar4[0xb] = piVar4[0xb] | 4;\n          }" ({ "{") (expression_statement "piVar4[0xb] = piVar4[0xb] | 4;" (assignment_expression "piVar4[0xb] = piVar4[0xb] | 4" (subscript_expression "piVar4[0xb]" (identifier "piVar4") ([ "[") (number_literal "0xb") (] "]")) (= "=") (binary_expression "piVar4[0xb] | 4" (subscript_expression "piVar4[0xb]" (identifier "piVar4") ([ "[") (number_literal "0xb") (] "]")) (| "|") (number_literal "4"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00027fb0(piVar4 + 0xe,0xffffffff);" (call_expression "FUN_00027fb0(piVar4 + 0xe,0xffffffff)" (identifier "FUN_00027fb0") (argument_list "(piVar4 + 0xe,0xffffffff)" (( "(") (binary_expression "piVar4 + 0xe" (identifier "piVar4") (+ "+") (number_literal "0xe")) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return piVar4;" (return "return") (identifier "piVar4") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00025170:\n    FUN_00023b00();" (statement_identifier "LAB_00025170") (: ":") (expression_statement "FUN_00023b00();" (call_expression "FUN_00023b00()" (identifier "FUN_00023b00") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "free(local_2c);" (call_expression "free(local_2c)" (identifier "free") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" (else "else") (compound_statement "{\n    local_2c = (void *)FUN_00023a70();\n    if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }\n  }" ({ "{") (expression_statement "local_2c = (void *)FUN_00023a70();" (assignment_expression "local_2c = (void *)FUN_00023a70()" (identifier "local_2c") (= "=") (cast_expression "(void *)FUN_00023a70()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00023a70()" (identifier "FUN_00023a70") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (local_2c != (void *)0x0) {\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }" (if "if") (parenthesized_expression "(local_2c != (void *)0x0)" (( "(") (binary_expression "local_2c != (void *)0x0" (identifier "local_2c") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;\n      pcVar10 = (char *)*param_1;\n      if (param_3 != 0) goto LAB_00024fb8;\nLAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;\n      local_20 = 0;\n      uVar11 = 0;\n      iVar8 = 0;\n      do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);\n      if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }\n      goto LAB_000250dc;\n    }" ({ "{") (expression_statement "*(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_2c + 0x30) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_2c + 0x30)" (* "*") (cast_expression "(undefined4 *)((int)local_2c + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_2c + 0x30)" (( "(") (binary_expression "(int)local_2c + 0x30" (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c")) (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_2c + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_2c + 0x38)" (* "*") (cast_expression "(undefined4 *)((int)local_2c + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_2c + 0x38)" (( "(") (binary_expression "(int)local_2c + 0x38" (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c")) (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" (identifier "pcVar10") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (param_3 != 0) goto LAB_00024fb8;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00024fb8;" (goto "goto") (statement_identifier "LAB_00024fb8") (; ";"))) (labeled_statement "LAB_00024fcd:\n      if (pcVar10 == (char *)0x0) goto LAB_00025266;" (statement_identifier "LAB_00024fcd") (: ":") (if_statement "if (pcVar10 == (char *)0x0) goto LAB_00025266;" (if "if") (parenthesized_expression "(pcVar10 == (char *)0x0)" (( "(") (binary_expression "pcVar10 == (char *)0x0" (identifier "pcVar10") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00025266;" (goto "goto") (statement_identifier "LAB_00025266") (; ";")))) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      } while (pcVar10 != (char *)0x0);" (do "do") (compound_statement "{\n        sVar5 = strlen(pcVar10);\n        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }\n        iVar6 = FUN_00023a70();\n        if (iVar6 == 0) goto LAB_00025170;\n        *(undefined4 *)(iVar6 + 0x30) = 0;\n        *(void **)(iVar6 + 4) = local_2c;\n        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;\n        iVar7 = iVar6;\n        if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }\n        local_20 = iVar6;\n        uVar11 = uVar11 + 1;\n        pcVar10 = (char *)param_1[uVar11];\n        iVar8 = iVar7;\n      }" ({ "{") (expression_statement "sVar5 = strlen(pcVar10);" (assignment_expression "sVar5 = strlen(pcVar10)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar10)" (identifier "strlen") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")")))) (; ";")) (if_statement "if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')) {\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }" (if "if") (parenthesized_expression "(((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/'))" (( "(") (binary_expression "((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&\n           (pcVar10[sVar5 - 1] == '/')" (parenthesized_expression "((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0))" (( "(") (binary_expression "(2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)" (parenthesized_expression "(2 < sVar5)" (( "(") (binary_expression "2 < sVar5" (number_literal "2") (< "<") (identifier "sVar5")) () ")")) (&& "&&") (parenthesized_expression "((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)" (( "(") (binary_expression "(((byte)(param_2 >> 0xc) ^ 1) & 1) != 0" (parenthesized_expression "(((byte)(param_2 >> 0xc) ^ 1) & 1)" (( "(") (binary_expression "((byte)(param_2 >> 0xc) ^ 1) & 1" (parenthesized_expression "((byte)(param_2 >> 0xc) ^ 1)" (( "(") (binary_expression "(byte)(param_2 >> 0xc) ^ 1" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0xc)" (( "(") (binary_expression "param_2 >> 0xc" (identifier "param_2") (>> ">>") (number_literal "0xc")) () ")"))) (^ "^") (number_literal "1")) () ")")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar10[sVar5 - 1] == '/')" (( "(") (binary_expression "pcVar10[sVar5 - 1] == '/'" (subscript_expression "pcVar10[sVar5 - 1]" (identifier "pcVar10") ([ "[") (binary_expression "sVar5 - 1" (identifier "sVar5") (- "-") (number_literal "1")) (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n        }" ({ "{") (do_statement "do {\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);" (do "do") (compound_statement "{\n            if (pcVar10[sVar5 - 2] != '/') break;\n            sVar5 = sVar5 - 1;\n          }" ({ "{") (if_statement "if (pcVar10[sVar5 - 2] != '/') break;" (if "if") (parenthesized_expression "(pcVar10[sVar5 - 2] != '/')" (( "(") (binary_expression "pcVar10[sVar5 - 2] != '/'" (subscript_expression "pcVar10[sVar5 - 2]" (identifier "pcVar10") ([ "[") (binary_expression "sVar5 - 2" (identifier "sVar5") (- "-") (number_literal "2")) (] "]")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "sVar5 = sVar5 - 1;" (assignment_expression "sVar5 = sVar5 - 1" (identifier "sVar5") (= "=") (binary_expression "sVar5 - 1" (identifier "sVar5") (- "-") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(sVar5 != 1)" (( "(") (binary_expression "sVar5 != 1" (identifier "sVar5") (!= "!=") (number_literal "1")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_00023a70();" (assignment_expression "iVar6 = FUN_00023a70()" (identifier "iVar6") (= "=") (call_expression "FUN_00023a70()" (identifier "FUN_00023a70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) goto LAB_00025170;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00025170;" (goto "goto") (statement_identifier "LAB_00025170") (; ";"))) (expression_statement "*(undefined4 *)(iVar6 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x30)" (( "(") (binary_expression "iVar6 + 0x30" (identifier "iVar6") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(void **)(iVar6 + 4) = local_2c;" (assignment_expression "*(void **)(iVar6 + 4) = local_2c" (pointer_expression "*(void **)(iVar6 + 4)" (* "*") (cast_expression "(void **)(iVar6 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 4)" (( "(") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "*(int *)(iVar6 + 0x18) = iVar6 + 0xa4;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar6 + 0xa4" (pointer_expression "*(int *)(iVar6 + 0x18)" (* "*") (cast_expression "(int *)(iVar6 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x18)" (( "(") (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "iVar6 + 0xa4" (identifier "iVar6") (+ "+") (number_literal "0xa4"))) (; ";")) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if ((iVar8 == 0) || (bVar1 == 0)) {\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }\n        else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" (if "if") (parenthesized_expression "((iVar8 == 0) || (bVar1 == 0))" (( "(") (binary_expression "(iVar8 == 0) || (bVar1 == 0)" (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          uVar3 = FUN_000237e0();\n          *(undefined2 *)(iVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_0002505c;\n          *(undefined4 *)(iVar6 + 8) = 0;\n          if (iVar8 != 0) goto LAB_00025217;\n        }" ({ "{") (expression_statement "uVar3 = FUN_000237e0();" (assignment_expression "uVar3 = FUN_000237e0()" (identifier "uVar3") (= "=") (call_expression "FUN_000237e0()" (identifier "FUN_000237e0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined2 *)(iVar6 + 0x3c) = uVar3;" (assignment_expression "*(undefined2 *)(iVar6 + 0x3c) = uVar3" (pointer_expression "*(undefined2 *)(iVar6 + 0x3c)" (* "*") (cast_expression "(undefined2 *)(iVar6 + 0x3c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x3c)" (( "(") (binary_expression "iVar6 + 0x3c" (identifier "iVar6") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (param_3 != 0) goto LAB_0002505c;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0002505c;" (goto "goto") (statement_identifier "LAB_0002505c") (; ";"))) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar8 != 0) goto LAB_00025217;" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00025217;" (goto "goto") (statement_identifier "LAB_00025217") (; ";"))) (} "}")) (else_clause "else {\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" (else "else") (compound_statement "{\n          *(undefined4 *)(iVar6 + 0x70) = 2;\n          *(undefined2 *)(iVar6 + 0x3c) = 0xb;\n          *(undefined4 *)(iVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }\n        }" ({ "{") (expression_statement "*(undefined4 *)(iVar6 + 0x70) = 2;" (assignment_expression "*(undefined4 *)(iVar6 + 0x70) = 2" (pointer_expression "*(undefined4 *)(iVar6 + 0x70)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x70)" (( "(") (binary_expression "iVar6 + 0x70" (identifier "iVar6") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined2 *)(iVar6 + 0x3c) = 0xb;" (assignment_expression "*(undefined2 *)(iVar6 + 0x3c) = 0xb" (pointer_expression "*(undefined2 *)(iVar6 + 0x3c)" (* "*") (cast_expression "(undefined2 *)(iVar6 + 0x3c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x3c)" (( "(") (binary_expression "iVar6 + 0x3c" (identifier "iVar6") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0xb")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x74)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x74)" (( "(") (binary_expression "iVar6 + 0x74" (identifier "iVar6") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) {\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }\n          else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)(iVar6 + 8) = 0;\nLAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;\n            iVar7 = iVar8;\n          }" ({ "{") (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00025217:\n            *(int *)(local_20 + 8) = iVar6;" (statement_identifier "LAB_00025217") (: ":") (expression_statement "*(int *)(local_20 + 8) = iVar6;" (assignment_expression "*(int *)(local_20 + 8) = iVar6" (pointer_expression "*(int *)(local_20 + 8)" (* "*") (cast_expression "(int *)(local_20 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 8)" (( "(") (binary_expression "local_20 + 8" (identifier "local_20") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar6")) (; ";"))) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" (identifier "iVar7") (= "=") (identifier "iVar8")) (; ";")) (} "}")) (else_clause "else {\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" (else "else") (compound_statement "{\nLAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;\n            iVar6 = local_20;\n          }" ({ "{") (labeled_statement "LAB_0002505c:\n            *(int *)(iVar6 + 8) = iVar8;" (statement_identifier "LAB_0002505c") (: ":") (expression_statement "*(int *)(iVar6 + 8) = iVar8;" (assignment_expression "*(int *)(iVar6 + 8) = iVar8" (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar8")) (; ";"))) (expression_statement "iVar6 = local_20;" (assignment_expression "iVar6 = local_20" (identifier "iVar6") (= "=") (identifier "local_20")) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_20 = iVar6;" (assignment_expression "local_20 = iVar6" (identifier "local_20") (= "=") (identifier "iVar6")) (; ";")) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" (identifier "uVar11") (= "=") (binary_expression "uVar11 + 1" (identifier "uVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar10 = (char *)param_1[uVar11];" (assignment_expression "pcVar10 = (char *)param_1[uVar11]" (identifier "pcVar10") (= "=") (cast_expression "(char *)param_1[uVar11]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[uVar11]" (identifier "param_1") ([ "[") (identifier "uVar11") (] "]")))) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar10 != (char *)0x0)" (( "(") (binary_expression "pcVar10 != (char *)0x0" (identifier "pcVar10") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if ((param_3 != 0) && (1 < uVar11)) {\n        iVar7 = FUN_00023980();\n      }" (if "if") (parenthesized_expression "((param_3 != 0) && (1 < uVar11))" (( "(") (binary_expression "(param_3 != 0) && (1 < uVar11)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")"))) () ")")) (compound_statement "{\n        iVar7 = FUN_00023980();\n      }" ({ "{") (expression_statement "iVar7 = FUN_00023980();" (assignment_expression "iVar7 = FUN_00023980()" (identifier "iVar7") (= "=") (call_expression "FUN_00023980()" (identifier "FUN_00023980") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (goto_statement "goto LAB_000250dc;" (goto "goto") (statement_identifier "LAB_000250dc") (; ";")) (} "}"))) (} "}")))) (expression_statement "free((void *)piVar4[5]);" (call_expression "free((void *)piVar4[5])" (identifier "free") (argument_list "((void *)piVar4[5])" (( "(") (cast_expression "(void *)piVar4[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[5]" (identifier "piVar4") ([ "[") (number_literal "5") (] "]"))) () ")"))) (; ";")) (labeled_statement "LAB_00025198:\n  free(piVar4);" (statement_identifier "LAB_00025198") (: ":") (expression_statement "free(piVar4);" (call_expression "free(piVar4)" (identifier "free") (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))) (; ";"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

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

type_1 * function_1(char **argv,int var_1,type_2 *var_12)

{
  type_3 var_24;
  type_4 uVar2;
  type_1 *var_4;
  size_t var_8;
  type_5 *var_14;
  size_t var_22;
  type_6 *p_Var5;
  int *piVar6;
  int var_17;
  type_1 *var_10;
  char **var_9;
  type_6 *var_23;
  char *var_5;
  type_7 var_7;
  type_5 *var_21;
  type_5 *local_20;
  
  if ((((var_1 & 0xffffe000U) != 0) || ((var_1 & 0x204U) == 0x204)) || ((var_1 & 0x12U) == 0))
  {
    piVar6 = var_2();
    *piVar6 = 0x16;
    return (type_1 *)0x0;
  }
  var_4 = (type_1 *)var_3(0x58,1);
  if (var_4 == (type_1 *)0x0) {
    return (type_1 *)0x0;
  }
  var_4->fts_cwd_fd = -100;
  var_4->fts_compar = (type_8 *)var_12;
  var_7 = var_1 & 0xfffffdffU | 4;
  if ((var_1 & 2U) == 0) {
    var_7 = var_1;
  }
  var_4->fts_options = var_7;
  var_5 = *argv;
  if (var_5 == (char *)0x0) {
    var_10 = (type_1 *)0x1000;
  }
  else {
    var_7 = 0;
    var_9 = argv;
    do {
      var_8 = var_6(var_5);
      if (var_7 < var_8) {
        var_7 = var_8;
      }
      var_9 = var_9 + 1;
      var_5 = *var_9;
    } while (var_5 != (char *)0x0);
    var_10 = (type_1 *)(var_7 + 1);
    if (var_10 < (type_1 *)0x1000) {
      var_10 = (type_1 *)0x1000;
    }
  }
  var_24 = var_11((type_1 *)&var_4->fts_path,(size_t)&var_4->fts_pathlen,var_10);
  if (!var_24) goto LAB_00025198;
  if (*argv == (char *)0x0) {
    var_21 = (type_5 *)0x0;
    if (var_12 != (type_2 *)0x0) {
      var_5 = (char *)0x0;
LAB_00024fb8:
      var_24 = (type_3)((byte)((type_7)var_4->fts_options >> 10) & 1);
      goto LAB_00024fcd;
    }
LAB_00025266:
    p_Var5 = (type_5 *)0x0;
LAB_000250dc:
    var_14 = var_13(var_4,"",0);
    var_4->fts_cur = var_14;
    if (var_14 != (type_5 *)0x0) {
      var_14->fts_link = p_Var5;
      var_14->fts_info = 9;
      var_14->fts_level = 1;
      var_24 = var_15((type_1 *)var_4->fts_options,(type_1 *)&var_4->fts_cycle);
      if (var_24) {
        if (((type_7)var_4->fts_options & 0x204) == 0) {
          var_17 = var_16((type_1 *)var_4->fts_cwd_fd,(char *)var_4->fts_options,(type_1 *)&DAT_0002dbc4);
          var_4->fts_rfd = var_17;
          if (var_17 < 0) {
            var_4->fts_options = var_4->fts_options | 4;
          }
        }
        var_18(&var_4->fts_fd_ring,-1);
        return var_4;
      }
    }
LAB_00025170:
    var_19(p_Var5);
    var_20(var_21);
  }
  else {
    var_21 = var_13(var_4,"",0);
    if (var_21 != (type_5 *)0x0) {
      var_21->fts_level = -1;
      var_21->fts_n_dirs_remaining = 0xffffffff;
      var_5 = *argv;
      if (var_12 != (type_2 *)0x0) goto LAB_00024fb8;
LAB_00024fcd:
      if (var_5 == (char *)0x0) goto LAB_00025266;
      local_20 = (type_5 *)0x0;
      var_7 = 0;
      var_23 = (type_6 *)0x0;
      do {
        var_22 = var_6(var_5);
        if (((2 < var_22) && ((((byte)((type_7)var_1 >> 0xc) ^ 1) & 1) != 0)) &&
           (var_5[var_22 - 1] == '/')) {
          do {
            if (var_5[var_22 - 2] != '/') break;
            var_22 = var_22 - 1;
          } while (var_22 != 1);
        }
        var_14 = var_13(var_4,var_5,var_22);
        p_Var5 = var_23;
        if (var_14 == (type_5 *)0x0) goto LAB_00025170;
        var_14->fts_level = 0;
        var_14->fts_parent = var_21;
        var_14->fts_accpath = (char *)(var_14 + 1);
        p_Var5 = var_14;
        if ((var_23 == (type_6 *)0x0) || (var_24 == false)) {
          uVar2 = var_25(var_4,var_14,false);
          var_14->fts_info = uVar2;
          if (var_12 != (type_2 *)0x0) goto LAB_0002505c;
          var_14->fts_link = (type_6 *)0x0;
          if (var_23 != (type_6 *)0x0) goto LAB_00025217;
        }
        else {
          *(type_9 *)&var_14->fts_statp[0].st_size = 2;
          var_14->fts_info = 0xb;
          *(type_9 *)((int)&var_14->fts_statp[0].st_size + 4) = 0;
          if (var_12 == (type_2 *)0x0) {
            var_14->fts_link = (type_6 *)0x0;
LAB_00025217:
            local_20->fts_link = var_14;
            p_Var5 = var_23;
          }
          else {
LAB_0002505c:
            var_14->fts_link = var_23;
            var_14 = local_20;
          }
        }
        local_20 = var_14;
        var_7 = var_7 + 1;
        var_5 = argv[var_7];
        var_23 = p_Var5;
      } while (var_5 != (char *)0x0);
      if ((var_12 != (type_2 *)0x0) && (1 < var_7)) {
        p_Var5 = var_26(var_4,p_Var5,var_7);
      }
      goto LAB_000250dc;
    }
  }
  var_20(var_4->fts_path);
LAB_00025198:
  var_20(var_4);
  return (type_1 *)0x0;
}


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

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

int * MASKED(int *param_1,uint param_2,int param_3)

{
  byte bVar1;
  char cVar2;
  undefined2 uVar3;
  int *piVar4;
  size_t sVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int *piVar9;
  char *pcVar10;
  uint uVar11;
  void *local_2c;
  int local_20;
  
  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {
    piVar4 = __errno_location();
    *piVar4 = 0x16;
    return (int *)0x0;
  }
  piVar4 = (int *)calloc(0x58,1);
  if (piVar4 == (int *)0x0) {
    return (int *)0x0;
  }
  piVar4[7] = -100;
  piVar4[10] = param_3;
  uVar11 = param_2 & 0xfffffdff | 4;
  if ((param_2 & 2) == 0) {
    uVar11 = param_2;
  }
  piVar4[0xb] = uVar11;
  pcVar10 = (char *)*param_1;
  if (pcVar10 != (char *)0x0) {
    uVar11 = 0;
    piVar9 = param_1;
    do {
      sVar5 = strlen(pcVar10);
      if (uVar11 < sVar5) {
        uVar11 = sVar5;
      }
      piVar9 = piVar9 + 1;
      pcVar10 = (char *)*piVar9;
    } while (pcVar10 != (char *)0x0);
  }
  bVar1 = FUN_00023e60();
  if (bVar1 == 0) goto LAB_00025198;
  if (*param_1 == 0) {
    local_2c = (void *)0x0;
    if (param_3 != 0) {
      pcVar10 = (char *)0x0;
LAB_00024fb8:
      bVar1 = (byte)((uint)piVar4[0xb] >> 10) & 1;
      goto LAB_00024fcd;
    }
LAB_00025266:
    iVar7 = 0;
LAB_000250dc:
    iVar8 = FUN_00023a70();
    *piVar4 = iVar8;
    if (iVar8 != 0) {
      *(int *)(iVar8 + 8) = iVar7;
      *(undefined2 *)(iVar8 + 0x3c) = 9;
      *(undefined4 *)(iVar8 + 0x30) = 1;
      cVar2 = FUN_00023ee0();
      if (cVar2 != '\0') {
        if ((piVar4[0xb] & 0x204U) == 0) {
          iVar7 = FUN_00023f60();
          piVar4[6] = iVar7;
          if (iVar7 < 0) {
            piVar4[0xb] = piVar4[0xb] | 4;
          }
        }
        FUN_00027fb0(piVar4 + 0xe,0xffffffff);
        return piVar4;
      }
    }
LAB_00025170:
    FUN_00023b00();
    free(local_2c);
  }
  else {
    local_2c = (void *)FUN_00023a70();
    if (local_2c != (void *)0x0) {
      *(undefined4 *)((int)local_2c + 0x30) = 0xffffffff;
      *(undefined4 *)((int)local_2c + 0x38) = 0xffffffff;
      pcVar10 = (char *)*param_1;
      if (param_3 != 0) goto LAB_00024fb8;
LAB_00024fcd:
      if (pcVar10 == (char *)0x0) goto LAB_00025266;
      local_20 = 0;
      uVar11 = 0;
      iVar8 = 0;
      do {
        sVar5 = strlen(pcVar10);
        if (((2 < sVar5) && ((((byte)(param_2 >> 0xc) ^ 1) & 1) != 0)) &&
           (pcVar10[sVar5 - 1] == '/')) {
          do {
            if (pcVar10[sVar5 - 2] != '/') break;
            sVar5 = sVar5 - 1;
          } while (sVar5 != 1);
        }
        iVar6 = FUN_00023a70();
        if (iVar6 == 0) goto LAB_00025170;
        *(undefined4 *)(iVar6 + 0x30) = 0;
        *(void **)(iVar6 + 4) = local_2c;
        *(int *)(iVar6 + 0x18) = iVar6 + 0xa4;
        iVar7 = iVar6;
        if ((iVar8 == 0) || (bVar1 == 0)) {
          uVar3 = FUN_000237e0();
          *(undefined2 *)(iVar6 + 0x3c) = uVar3;
          if (param_3 != 0) goto LAB_0002505c;
          *(undefined4 *)(iVar6 + 8) = 0;
          if (iVar8 != 0) goto LAB_00025217;
        }
        else {
          *(undefined4 *)(iVar6 + 0x70) = 2;
          *(undefined2 *)(iVar6 + 0x3c) = 0xb;
          *(undefined4 *)(iVar6 + 0x74) = 0;
          if (param_3 == 0) {
            *(undefined4 *)(iVar6 + 8) = 0;
LAB_00025217:
            *(int *)(local_20 + 8) = iVar6;
            iVar7 = iVar8;
          }
          else {
LAB_0002505c:
            *(int *)(iVar6 + 8) = iVar8;
            iVar6 = local_20;
          }
        }
        local_20 = iVar6;
        uVar11 = uVar11 + 1;
        pcVar10 = (char *)param_1[uVar11];
        iVar8 = iVar7;
      } while (pcVar10 != (char *)0x0);
      if ((param_3 != 0) && (1 < uVar11)) {
        iVar7 = FUN_00023980();
      }
      goto LAB_000250dc;
    }
  }
  free((void *)piVar4[5]);
LAB_00025198:
  free(piVar4);
  return (int *)0x0;
}

