
/* 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)

{
  ushort uVar1;
  FTS *sp;
  size_t sVar2;
  char *pcVar3;
  FTSENT *p;
  size_t __size;
  _ftsent *p_Var4;
  Hash_table *pHVar5;
  DIR *__dirp;
  int *piVar6;
  cycle_check_state *state;
  int iVar7;
  uint flags;
  char **ppcVar8;
  char *__s;
  uint uVar9;
  uint local_38;
  _ftsent *local_30;
  _ftsent *local_28;
  byte local_22;
  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;
  uVar9 = options & 0xfffffdffU | 4;
  if ((options & 2U) == 0) {
    uVar9 = options;
  }
  sp->fts_options = uVar9;
  pcVar3 = *argv;
  if (pcVar3 == (char *)0x0) {
    uVar9 = 0x1000;
  }
  else {
    uVar9 = 0;
    ppcVar8 = argv;
    do {
      sVar2 = strlen(pcVar3);
      if (uVar9 < sVar2) {
        uVar9 = sVar2;
      }
      ppcVar8 = ppcVar8 + 1;
      pcVar3 = *ppcVar8;
    } while (pcVar3 != (char *)0x0);
    uVar9 = uVar9 + 1;
    if (uVar9 < 0x1000) {
      uVar9 = 0x1000;
    }
  }
  uVar9 = sp->fts_pathlen + 0x100 + uVar9;
  if (uVar9 < sp->fts_pathlen) {
    free(sp->fts_path);
    piVar6 = __errno_location();
    *piVar6 = 0x24;
    goto LAB_0001858e;
  }
  sp->fts_pathlen = uVar9;
  pcVar3 = (char *)realloc(sp->fts_path,uVar9);
  if (pcVar3 == (char *)0x0) {
    free(sp->fts_path);
    goto LAB_0001858e;
  }
  sp->fts_path = pcVar3;
  __s = *argv;
  if (__s == (char *)0x0) {
    local_28 = (_ftsent *)0x0;
    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {
LAB_000184a0:
      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;
      if (__s != (char *)0x0) goto LAB_000181fa;
    }
    local_30 = (_ftsent *)0x0;
LAB_00018370:
    p_Var4 = (_ftsent *)malloc(0xa8);
    if (p_Var4 == (_ftsent *)0x0) {
      sp->fts_cur = (_ftsent *)0x0;
    }
    else {
      *(undefined1 *)&p_Var4[1].fts_cycle = 0;
      p_Var4->fts_namelen = 0;
      pcVar3 = sp->fts_path;
      p_Var4->fts_fts = sp;
      p_Var4->fts_errno = 0;
      p_Var4->fts_path = pcVar3;
      p_Var4->fts_dirp = (DIR *)0x0;
      p_Var4->fts_number = 0;
      p_Var4->fts_pointer = (void *)0x0;
      sp->fts_cur = p_Var4;
      p_Var4->fts_link = local_30;
      p_Var4->fts_info = 9;
      p_Var4->fts_flags = 0;
      p_Var4->fts_instr = 3;
      p_Var4->fts_level = 1;
      if ((sp->fts_options & 0x102U) == 0) {
        state = (cycle_check_state *)malloc(0x1c);
        (sp->fts_cycle).state = state;
        if (state != (cycle_check_state *)0x0) {
          cycle_check_init(state);
          goto LAB_00018416;
        }
      }
      else {
        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,
                                 (Hash_data_freer)PTR_free_00024fcc);
        (sp->fts_cycle).ht = pHVar5;
        if (pHVar5 != (Hash_table *)0x0) {
LAB_00018416:
          uVar9 = sp->fts_options;
          if ((uVar9 & 0x204) == 0) {
            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;
            if ((uVar9 & 0x200) == 0) {
              iVar7 = open_safer(".",flags);
            }
            else {
              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);
            }
            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_00018524:
    if (local_30 != (_ftsent *)0x0) {
      __dirp = local_30->fts_dirp;
      p_Var4 = local_30->fts_link;
      if (__dirp == (DIR *)0x0) goto LAB_0001855c;
      do {
        closedir((DIR *)__dirp);
        free(local_30);
        local_30 = p_Var4;
        while( true ) {
          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;
          __dirp = local_30->fts_dirp;
          p_Var4 = local_30->fts_link;
          if (__dirp != (DIR *)0x0) break;
LAB_0001855c:
          free(local_30);
          local_30 = p_Var4;
        }
      } while( true );
    }
LAB_0001856c:
    free(local_28);
    pcVar3 = sp->fts_path;
  }
  else {
    local_28 = (_ftsent *)malloc(0xa8);
    if (local_28 != (_ftsent *)0x0) {
      *(undefined1 *)&local_28[1].fts_cycle = 0;
      local_28->fts_namelen = 0;
      local_28->fts_fts = sp;
      local_28->fts_path = pcVar3;
      local_28->fts_errno = 0;
      local_28->fts_dirp = (DIR *)0x0;
      local_28->fts_flags = 0;
      local_28->fts_instr = 3;
      local_28->fts_number = 0;
      local_28->fts_pointer = (void *)0x0;
      local_28->fts_level = -1;
      local_28->fts_n_dirs_remaining = 0xffffffff;
      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;
      local_22 = 1;
LAB_000181fa:
      local_20 = (FTSENT *)0x0;
      local_30 = (_ftsent *)0x0;
      local_38 = 0;
      do {
        sVar2 = strlen(__s);
        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {
          __size = sVar2 + 0xa8 & 0xfffffffc;
        }
        else if (__s[sVar2 - 1] == '/') {
          do {
            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;
            sVar2 = sVar2 - 1;
          } while (sVar2 != 1);
          __size = 0xa8;
        }
        else {
LAB_0001833c:
          __size = sVar2 + 0xa8 & 0xfffffffc;
        }
        p = (FTSENT *)malloc(__size);
        if (p == (FTSENT *)0x0) goto LAB_00018524;
        memcpy(p + 1,__s,sVar2);
        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;
        p->fts_namelen = sVar2;
        p->fts_fts = sp;
        pcVar3 = sp->fts_path;
        p->fts_errno = 0;
        p->fts_path = pcVar3;
        p->fts_dirp = (DIR *)0x0;
        p->fts_parent = local_28;
        p->fts_flags = 0;
        p->fts_instr = 3;
        p->fts_number = 0;
        p->fts_pointer = (void *)0x0;
        p->fts_level = 0;
        p->fts_accpath = (char *)(p + 1);
        p_Var4 = p;
        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {
          uVar1 = fts_stat(sp,p,false);
          p->fts_info = uVar1;
          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;
          p->fts_link = (_ftsent *)0x0;
          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;
        }
        else {
          *(undefined4 *)&p->fts_statp[0].st_size = 2;
          p->fts_info = 0xb;
          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;
          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {
            p->fts_link = (_ftsent *)0x0;
LAB_0001850f:
            local_20->fts_link = p;
            p_Var4 = local_30;
          }
          else {
LAB_000182f0:
            p->fts_link = local_30;
            p = local_20;
          }
        }
        local_20 = p;
        local_30 = p_Var4;
        local_38 = local_38 + 1;
        __s = argv[local_38];
      } while (__s != (char *)0x0);
      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {
        local_30 = fts_sort(sp,local_30,local_38);
      }
      goto LAB_00018370;
    }
  }
  free(pcVar3);
LAB_0001858e:
  free(sp);
  return (FTS *)0x0;
}



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

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

{
  undefined4 uVar1;
  void *pvVar2;
  undefined2 uVar3;
  undefined4 *__ptr;
  char *pcVar4;
  size_t sVar5;
  void *pvVar6;
  size_t __size;
  int iVar7;
  DIR *__dirp;
  int *piVar8;
  uint uVar9;
  uint uVar10;
  uint local_38;
  void *local_30;
  void *local_28;
  byte local_22;
  void *local_20;
  
  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {
    piVar8 = __errno_location();
    *piVar8 = 0x16;
    return (undefined4 *)0x0;
  }
  __ptr = (undefined4 *)calloc(0x58,1);
  if (__ptr == (undefined4 *)0x0) {
    return (undefined4 *)0x0;
  }
  __ptr[7] = 0xffffff9c;
  __ptr[10] = param_3;
  uVar10 = param_2 & 0xfffffdff | 4;
  if ((param_2 & 2) == 0) {
    uVar10 = param_2;
  }
  __ptr[0xb] = uVar10;
  pcVar4 = (char *)*param_1;
  if (pcVar4 == (char *)0x0) {
    uVar10 = 0x1000;
  }
  else {
    uVar10 = 0;
    piVar8 = param_1;
    do {
      sVar5 = strlen(pcVar4);
      if (uVar10 < sVar5) {
        uVar10 = sVar5;
      }
      piVar8 = piVar8 + 1;
      pcVar4 = (char *)*piVar8;
    } while (pcVar4 != (char *)0x0);
    uVar10 = uVar10 + 1;
    if (uVar10 < 0x1000) {
      uVar10 = 0x1000;
    }
  }
  uVar10 = __ptr[8] + 0x100 + uVar10;
  if (uVar10 < (uint)__ptr[8]) {
    free((void *)__ptr[5]);
    piVar8 = __errno_location();
    *piVar8 = 0x24;
    goto LAB_0001858e;
  }
  __ptr[8] = uVar10;
  pvVar6 = realloc((void *)__ptr[5],uVar10);
  if (pvVar6 == (void *)0x0) {
    free((void *)__ptr[5]);
    goto LAB_0001858e;
  }
  __ptr[5] = pvVar6;
  pcVar4 = (char *)*param_1;
  if (pcVar4 == (char *)0x0) {
    local_28 = (void *)0x0;
    if (param_3 != 0) {
LAB_000184a0:
      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;
      if (pcVar4 != (char *)0x0) goto LAB_000181fa;
    }
    local_30 = (void *)0x0;
LAB_00018370:
    pvVar6 = malloc(0xa8);
    if (pvVar6 == (void *)0x0) {
      *__ptr = 0;
    }
    else {
      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;
      *(undefined4 *)((int)pvVar6 + 0x34) = 0;
      uVar1 = __ptr[5];
      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;
      *(undefined4 *)((int)pvVar6 + 0x20) = 0;
      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;
      *(undefined4 *)((int)pvVar6 + 0xc) = 0;
      *(undefined4 *)((int)pvVar6 + 0x10) = 0;
      *(undefined4 *)((int)pvVar6 + 0x14) = 0;
      *__ptr = pvVar6;
      *(void **)((int)pvVar6 + 8) = local_30;
      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;
      *(undefined2 *)((int)pvVar6 + 0x40) = 3;
      *(undefined4 *)((int)pvVar6 + 0x30) = 1;
      if ((__ptr[0xb] & 0x102) == 0) {
        pvVar6 = malloc(0x1c);
        __ptr[0xd] = pvVar6;
        if (pvVar6 != (void *)0x0) {
          FUN_0001b070(pvVar6);
          goto LAB_00018416;
        }
      }
      else {
        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);
        __ptr[0xd] = iVar7;
        if (iVar7 != 0) {
LAB_00018416:
          uVar10 = __ptr[0xb];
          if ((uVar10 & 0x204) == 0) {
            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;
            if ((uVar10 & 0x200) == 0) {
              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);
            }
            else {
              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);
            }
            __ptr[6] = iVar7;
            if (iVar7 < 0) {
              __ptr[0xb] = __ptr[0xb] | 4;
            }
          }
          FUN_0001c510(__ptr + 0xe,0xffffffff);
          return __ptr;
        }
      }
    }
LAB_00018524:
    if (local_30 != (void *)0x0) {
      __dirp = *(DIR **)((int)local_30 + 0xc);
      pvVar6 = *(void **)((int)local_30 + 8);
      if (__dirp == (DIR *)0x0) goto LAB_0001855c;
      do {
        closedir(__dirp);
        free(local_30);
        local_30 = pvVar6;
        while( true ) {
          if (local_30 == (void *)0x0) goto LAB_0001856c;
          __dirp = *(DIR **)((int)local_30 + 0xc);
          pvVar6 = *(void **)((int)local_30 + 8);
          if (__dirp != (DIR *)0x0) break;
LAB_0001855c:
          free(local_30);
          local_30 = pvVar6;
        }
      } while( true );
    }
LAB_0001856c:
    free(local_28);
    pvVar6 = (void *)__ptr[5];
  }
  else {
    local_28 = malloc(0xa8);
    if (local_28 != (void *)0x0) {
      *(undefined1 *)((int)local_28 + 0xa4) = 0;
      *(undefined4 *)((int)local_28 + 0x34) = 0;
      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;
      *(void **)((int)local_28 + 0x1c) = pvVar6;
      *(undefined4 *)((int)local_28 + 0x20) = 0;
      *(undefined4 *)((int)local_28 + 0xc) = 0;
      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;
      *(undefined4 *)((int)local_28 + 0x10) = 0;
      *(undefined4 *)((int)local_28 + 0x14) = 0;
      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;
      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;
      if (param_3 != 0) goto LAB_000184a0;
      local_22 = 1;
LAB_000181fa:
      local_20 = (void *)0x0;
      local_30 = (void *)0x0;
      local_38 = 0;
      do {
        sVar5 = strlen(pcVar4);
        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {
          __size = sVar5 + 0xa8 & 0xfffffffc;
        }
        else if (pcVar4[sVar5 - 1] == '/') {
          do {
            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;
            sVar5 = sVar5 - 1;
          } while (sVar5 != 1);
          __size = 0xa8;
        }
        else {
LAB_0001833c:
          __size = sVar5 + 0xa8 & 0xfffffffc;
        }
        pvVar6 = malloc(__size);
        if (pvVar6 == (void *)0x0) goto LAB_00018524;
        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);
        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;
        *(size_t *)((int)pvVar6 + 0x34) = sVar5;
        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;
        uVar1 = __ptr[5];
        *(undefined4 *)((int)pvVar6 + 0x20) = 0;
        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;
        *(undefined4 *)((int)pvVar6 + 0xc) = 0;
        *(void **)((int)pvVar6 + 4) = local_28;
        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;
        *(undefined4 *)((int)pvVar6 + 0x10) = 0;
        *(undefined4 *)((int)pvVar6 + 0x14) = 0;
        *(undefined4 *)((int)pvVar6 + 0x30) = 0;
        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);
        pvVar2 = pvVar6;
        if ((local_30 == (void *)0x0) || (local_22 == 0)) {
          uVar3 = FUN_000168b0();
          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;
          if (param_3 != 0) goto LAB_000182f0;
          *(undefined4 *)((int)pvVar6 + 8) = 0;
          if (local_30 != (void *)0x0) goto LAB_0001850f;
        }
        else {
          *(undefined4 *)((int)pvVar6 + 0x70) = 2;
          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;
          *(undefined4 *)((int)pvVar6 + 0x74) = 0;
          if (param_3 == 0) {
            *(undefined4 *)((int)pvVar6 + 8) = 0;
LAB_0001850f:
            *(void **)((int)local_20 + 8) = pvVar6;
            pvVar2 = local_30;
          }
          else {
LAB_000182f0:
            *(void **)((int)pvVar6 + 8) = local_30;
            pvVar6 = local_20;
          }
        }
        local_20 = pvVar6;
        local_30 = pvVar2;
        local_38 = local_38 + 1;
        pcVar4 = (char *)param_1[local_38];
      } while (pcVar4 != (char *)0x0);
      if ((param_3 != 0) && (1 < local_38)) {
        local_30 = (void *)FUN_00016a50();
      }
      goto LAB_00018370;
    }
  }
  free(pvVar6);
LAB_0001858e:
  free(__ptr);
  return (undefined4 *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013430
ADD EBX,0xcf87
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x44]
TEST ESI,0xffffe000
JNZ 0x00018450
MOV EAX,ESI
AND EAX,0x204
CMP EAX,0x204
JZ 0x00018450
TEST ESI,0x12
JZ 0x00018450
SUB ESP,0x8
PUSH 0x1
PUSH 0x58
CALL 0x00012530
MOV dword ptr [ESP + 0x18],EAX
MOV EDX,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001843d
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [EDX + 0x1c],0xffffff9c
MOV dword ptr [EDX + 0x28],EAX
MOV EAX,ESI
AND AH,0xfd
OR EAX,0x4
TEST ESI,0x2
CMOVZ EAX,ESI
MOV dword ptr [EDX + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x00018608
MOV EBP,dword ptr [ESP + 0x40]
XOR EDI,EDI
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH EAX
CALL 0x00012300
ADD ESP,0x10
CMP EDI,EAX
CMOVC EDI,EAX
ADD EBP,0x4
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JNZ 0x00018108
ADD EDI,0x1
MOV EAX,0x1000
CMP EDI,0x1000
CMOVC EDI,EAX
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ECX + 0x20]
MOV ECX,dword ptr [ECX + 0x14]
LEA EAX,[EDX + EDI*0x1 + 0x100]
CMP EDX,EAX
JA 0x000185b8
MOV EDX,dword ptr [ESP + 0x8]
SUB ESP,0x8
MOV dword ptr [EDX + 0x20],EAX
PUSH EAX
PUSH ECX
CALL 0x00012240
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0001866d
MOV EBP,dword ptr [ESP + 0x8]
MOV dword ptr [EBP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x00018490
MOV dword ptr [ESP + 0x4],EDX
SUB ESP,0xc
PUSH 0xa8
CALL 0x00012260
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00018582
MOV byte ptr [EAX + 0xa4],0x0
MOV EDX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX + 0x34],0x0
MOV dword ptr [EAX + 0x2c],EBP
MOV dword ptr [EAX + 0x1c],EDI
MOV dword ptr [EAX + 0x20],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x3e],0x30000
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EAX + 0x30],0xffffffff
MOV dword ptr [EAX + 0x38],0xffffffff
MOV EAX,dword ptr [ESP + 0x48]
TEST EAX,EAX
JNZ 0x000184a0
MOV byte ptr [ESP + 0x1a],0x1
SHR ESI,0xc
XOR EBP,EBP
MOV dword ptr [ESP + 0x1c],0x0
XOR ESI,0x1
MOV dword ptr [ESP + 0xc],EBP
MOV EBP,EDX
MOV EAX,ESI
MOV dword ptr [ESP + 0x4],0x0
AND EAX,0x1
MOV byte ptr [ESP + 0x1b],AL
JMP 0x0001830f
ADD EAX,0xa8
AND EAX,0xfffffffc
SUB ESP,0xc
PUSH EAX
CALL 0x00012260
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00018520
SUB ESP,0x4
LEA ECX,[EAX + 0xa4]
PUSH EDI
PUSH EBP
PUSH ECX
MOV dword ptr [ESP + 0x20],ECX
CALL 0x000120b0
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x20]
MOV byte ptr [ESI + EDI*0x1 + 0xa4],0x0
MOV dword ptr [ESI + 0x34],EDI
MOV dword ptr [ESI + 0x2c],EAX
MOV EAX,dword ptr [EAX + 0x14]
MOV dword ptr [ESI + 0x20],0x0
MOV dword ptr [ESI + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESI + 0x3e],0x30000
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x30],0x0
MOV dword ptr [ESI + 0x18],ECX
TEST EAX,EAX
JZ 0x000184c8
CMP byte ptr [ESP + 0x1a],0x0
JZ 0x000184c8
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 0x00018508
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0xc],ESI
MOV dword ptr [ESI + 0x8],EAX
ADD dword ptr [ESP + 0x4],0x1
MOV EDX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x4]
MOV EBP,dword ptr [EDX + EAX*0x4]
TEST EBP,EBP
JZ 0x00018350
SUB ESP,0xc
PUSH EBP
CALL 0x00012300
ADD ESP,0x10
MOV EDI,EAX
CMP EAX,0x2
JBE 0x00018230
CMP byte ptr [ESP + 0x1b],0x0
JZ 0x00018230
CMP byte ptr [EBP + EAX*0x1 + -0x1],0x2f
JZ 0x00018470
LEA EAX,[EDI + 0xa8]
AND EAX,0xfffffffc
JMP 0x00018238
MOV ECX,dword ptr [ESP + 0x48]
MOV EBP,dword ptr [ESP + 0xc]
TEST ECX,ECX
JZ 0x00018370
MOV ECX,EAX
CMP EAX,0x1
JBE 0x00018370
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,EBP
CALL 0x00016a50
MOV EBP,EAX
SUB ESP,0xc
PUSH 0xa8
CALL 0x00012260
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00018684
MOV EDI,dword ptr [ESP + 0x8]
MOV byte ptr [EAX + 0xa4],0x0
MOV dword ptr [EAX + 0x34],0x0
MOV EDX,dword ptr [EDI + 0x14]
MOV dword ptr [EAX + 0x2c],EDI
MOV dword ptr [EAX + 0x20],0x0
MOV dword ptr [EAX + 0x1c],EDX
MOV EDX,0x3
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EDI],EAX
MOV dword ptr [EAX + 0x8],EBP
MOV dword ptr [EAX + 0x3c],0x9
MOV word ptr [EAX + 0x40],DX
MOV dword ptr [EAX + 0x30],0x1
TEST dword ptr [EDI + 0x2c],0x102
JZ 0x000185d8
SUB ESP,0xc
LEA EAX,[EBX + 0xffff17b0]
PUSH dword ptr [EBX + 0xffffffcc]
PUSH EAX
LEA EAX,[EBX + 0xffff17f0]
PUSH EAX
PUSH 0x0
PUSH 0x1f
CALL 0x0001b940
ADD ESP,0x20
MOV dword ptr [EDI + 0x34],EAX
TEST EAX,EAX
JZ 0x00018524
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x2c]
TEST EAX,0x204
JZ 0x00018618
SUB ESP,0x8
PUSH -0x1
MOV EAX,dword ptr [ESP + 0x14]
ADD EAX,0x38
PUSH EAX
CALL 0x0001c510
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00012350
MOV dword ptr [EAX],0x16
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [EBP + EDI*0x1 + -0x2],0x2f
JNZ 0x0001833c
SUB EDI,0x1
CMP EDI,0x1
JNZ 0x00018470
MOV EAX,0xa8
JMP 0x00018238
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x14],0x0
TEST EAX,EAX
JZ 0x000184bd
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x2c]
MOV dword ptr [ESP + 0x4],EAX
SHR EAX,0xa
AND EAX,0x1
MOV byte ptr [ESP + 0x1a],AL
TEST EDX,EDX
JNZ 0x000181fa
XOR EBP,EBP
JMP 0x00018370
MOV EAX,dword ptr [ESP + 0x8]
XOR ECX,ECX
MOV EDX,ESI
CALL 0x000168b0
MOV EBP,dword ptr [ESP + 0x48]
MOV word ptr [ESI + 0x3c],AX
TEST EBP,EBP
JNZ 0x000182f0
MOV EDI,dword ptr [ESP + 0xc]
MOV dword ptr [ESI + 0x8],0x0
TEST EDI,EDI
JNZ 0x0001850f
MOV dword ptr [ESP + 0x1c],ESI
MOV dword ptr [ESP + 0xc],ESI
JMP 0x000182fb
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 0x000182fb
MOV EBP,dword ptr [ESP + 0xc]
TEST EBP,EBP
JZ 0x0001856c
MOV EAX,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
TEST EAX,EAX
JZ 0x0001855c
LEA ESI,[ESI]
SUB ESP,0xc
PUSH EAX
CALL 0x000124f0
MOV dword ptr [ESP],EBP
CALL 0x00012560
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0001856c
MOV EBP,ESI
MOV EAX,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
TEST EAX,EAX
JNZ 0x00018538
SUB ESP,0xc
PUSH EBP
CALL 0x00012560
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x00018550
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x00012560
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV EDI,dword ptr [EAX + 0x14]
SUB ESP,0xc
PUSH EDI
CALL 0x00012560
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x00012560
ADD ESP,0x10
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ECX
CALL 0x00012560
CALL 0x00012350
ADD ESP,0x10
MOV dword ptr [EAX],0x24
JMP 0x0001858e
SUB ESP,0xc
PUSH 0x1c
CALL 0x00012260
MOV ECX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [ECX + 0x34],EAX
TEST EAX,EAX
JZ 0x00018524
SUB ESP,0xc
PUSH EAX
CALL 0x0001b070
ADD ESP,0x10
JMP 0x00018416
MOV EDI,0x1000
JMP 0x00018134
MOV EDX,EAX
MOV ECX,EAX
SHL EDX,0xd
SHL ECX,0x7
AND EDX,0x20000
AND ECX,0x40000
OR EDX,ECX
OR EDX,0x90900
TEST AH,0x2
JZ 0x00018693
SUB ESP,0x4
LEA EAX,[EBX + 0xffffa827]
PUSH EDX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x14]
PUSH dword ptr [EAX + 0x1c]
CALL 0x0001c6b0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ECX + 0x18],EAX
TEST EAX,EAX
JNS 0x00018428
OR dword ptr [ECX + 0x2c],0x4
JMP 0x00018428
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x14]
PUSH dword ptr [EAX + 0x14]
CALL 0x00012560
ADD ESP,0x10
JMP 0x0001858e
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],0x0
JMP 0x00018524
SUB ESP,0x8
LEA EAX,[EBX + 0xffffa827]
PUSH EDX
PUSH EAX
CALL 0x0001b190
ADD ESP,0x10
JMP 0x00018655
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}\n\n" comment (function_definition "undefined4 * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" type_identifier (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  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "undefined2 uVar3;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "DIR *__dirp;" type_identifier (pointer_declarator "*__dirp" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint local_38;" type_identifier identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "void *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "byte local_22;" type_identifier identifier ;) (declaration "void *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (if_statement "if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)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    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }" { (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar8 = 0x16;" (assignment_expression "*piVar8 = 0x16" (pointer_expression "*piVar8" * identifier) = number_literal) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "__ptr = (undefined4 *)calloc(0x58,1);" (assignment_expression "__ptr = (undefined4 *)calloc(0x58,1)" identifier = (cast_expression "(undefined4 *)calloc(0x58,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(0x58,1)" identifier (argument_list "(0x58,1)" ( number_literal , number_literal ))))) ;) (if_statement "if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(__ptr == (undefined4 *)0x0)" ( (binary_expression "__ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "__ptr[7] = 0xffffff9c;" (assignment_expression "__ptr[7] = 0xffffff9c" (subscript_expression "__ptr[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[10] = param_3;" (assignment_expression "__ptr[10] = param_3" (subscript_expression "__ptr[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar10 = param_2 & 0xfffffdff | 4;" (assignment_expression "uVar10 = 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    uVar10 = 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    uVar10 = param_2;\n  }" { (expression_statement "uVar10 = param_2;" (assignment_expression "uVar10 = param_2" identifier = identifier) ;) })) (expression_statement "__ptr[0xb] = uVar10;" (assignment_expression "__ptr[0xb] = uVar10" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar4 = (char *)*param_1;" (assignment_expression "pcVar4 = (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 (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar10 = 0x1000;\n  }" { (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" identifier = number_literal) ;) }) (else_clause "else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" else (compound_statement "{\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" { (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "piVar8 = param_1;" (assignment_expression "piVar8 = param_1" identifier = identifier) ;) (do_statement "do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);" do (compound_statement "{\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    }" { (expression_statement "sVar5 = strlen(pcVar4);" (assignment_expression "sVar5 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }" if (parenthesized_expression "(uVar10 < sVar5)" ( (binary_expression "uVar10 < sVar5" identifier < identifier) )) (compound_statement "{\n        uVar10 = sVar5;\n      }" { (expression_statement "uVar10 = sVar5;" (assignment_expression "uVar10 = sVar5" identifier = identifier) ;) })) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = (char *)*piVar8;" (assignment_expression "pcVar4 = (char *)*piVar8" identifier = (cast_expression "(char *)*piVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) ;) }) while (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (if_statement "if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }" if (parenthesized_expression "(uVar10 < 0x1000)" ( (binary_expression "uVar10 < 0x1000" identifier < number_literal) )) (compound_statement "{\n      uVar10 = 0x1000;\n    }" { (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" identifier = number_literal) ;) })) }))) (expression_statement "uVar10 = __ptr[8] + 0x100 + uVar10;" (assignment_expression "uVar10 = __ptr[8] + 0x100 + uVar10" identifier = (binary_expression "__ptr[8] + 0x100 + uVar10" (binary_expression "__ptr[8] + 0x100" (subscript_expression "__ptr[8]" identifier [ number_literal ]) + number_literal) + identifier)) ;) (if_statement "if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }" if (parenthesized_expression "(uVar10 < (uint)__ptr[8])" ( (binary_expression "uVar10 < (uint)__ptr[8]" identifier < (cast_expression "(uint)__ptr[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "__ptr[8]" identifier [ number_literal ]))) )) (compound_statement "{\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }" { (expression_statement "free((void *)__ptr[5]);" (call_expression "free((void *)__ptr[5])" identifier (argument_list "((void *)__ptr[5])" ( (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ])) ))) ;) (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar8 = 0x24;" (assignment_expression "*piVar8 = 0x24" (pointer_expression "*piVar8" * identifier) = number_literal) ;) (goto_statement "goto LAB_0001858e;" goto statement_identifier ;) })) (expression_statement "__ptr[8] = uVar10;" (assignment_expression "__ptr[8] = uVar10" (subscript_expression "__ptr[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pvVar6 = realloc((void *)__ptr[5],uVar10);" (assignment_expression "pvVar6 = realloc((void *)__ptr[5],uVar10)" identifier = (call_expression "realloc((void *)__ptr[5],uVar10)" identifier (argument_list "((void *)__ptr[5],uVar10)" ( (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }" { (expression_statement "free((void *)__ptr[5]);" (call_expression "free((void *)__ptr[5])" identifier (argument_list "((void *)__ptr[5])" ( (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ])) ))) ;) (goto_statement "goto LAB_0001858e;" goto statement_identifier ;) })) (expression_statement "__ptr[5] = pvVar6;" (assignment_expression "__ptr[5] = pvVar6" (subscript_expression "__ptr[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar4 = (char *)*param_1;" (assignment_expression "pcVar4 = (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 (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }" { (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }" { (labeled_statement "LAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;" statement_identifier : (expression_statement "local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;" (assignment_expression "local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1" identifier = (binary_expression "(byte)((uint)__ptr[0xb] >> 10) & 1" (call_expression "(byte)((uint)__ptr[0xb] >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)__ptr[0xb] >> 10)" ( (binary_expression "(uint)__ptr[0xb] >> 10" (cast_expression "(uint)__ptr[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "__ptr[0xb]" identifier [ number_literal ])) >> number_literal) ))) & number_literal)) ;)) (if_statement "if (pcVar4 != (char *)0x0) goto LAB_000181fa;" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000181fa;" goto statement_identifier ;)) })) (expression_statement "local_30 = (void *)0x0;" (assignment_expression "local_30 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00018370:\n    pvVar6 = malloc(0xa8);" statement_identifier : (expression_statement "pvVar6 = malloc(0xa8);" (assignment_expression "pvVar6 = malloc(0xa8)" identifier = (call_expression "malloc(0xa8)" identifier (argument_list "(0xa8)" ( number_literal )))) ;)) (if_statement "if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *__ptr = 0;\n    }" { (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" * identifier) = number_literal) ;) }) (else_clause "else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" else (compound_statement "{\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" { (expression_statement "*(undefined1 *)((int)pvVar6 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + 0xa4)" * (cast_expression "(undefined1 *)((int)pvVar6 + 0xa4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xa4)" ( (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x34)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x34)" ( (binary_expression "(int)pvVar6 + 0x34" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = __ptr[5];" (assignment_expression "uVar1 = __ptr[5]" identifier = (subscript_expression "__ptr[5]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)pvVar6 + 0x2c)" * (cast_expression "(undefined4 **)((int)pvVar6 + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x2c)" ( (binary_expression "(int)pvVar6 + 0x2c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x20)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x20)" ( (binary_expression "(int)pvVar6 + 0x20" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x1c)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x1c)" ( (binary_expression "(int)pvVar6 + 0x1c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0xc)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xc)" ( (binary_expression "(int)pvVar6 + 0xc" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x10)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x10)" ( (binary_expression "(int)pvVar6 + 0x10" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x14)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x14)" ( (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*__ptr = pvVar6;" (assignment_expression "*__ptr = pvVar6" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "*(void **)((int)pvVar6 + 8) = local_30;" (assignment_expression "*(void **)((int)pvVar6 + 8) = local_30" (pointer_expression "*(void **)((int)pvVar6 + 8)" * (cast_expression "(void **)((int)pvVar6 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x3c) = 9;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x3c) = 9" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x3c)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3c)" ( (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x40) = 3;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x40) = 3" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x40)" * (cast_expression "(undefined2 *)((int)pvVar6 + 0x40)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x40)" ( (binary_expression "(int)pvVar6 + 0x40" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x30) = 1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x30) = 1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x30)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x30)" ( (binary_expression "(int)pvVar6 + 0x30" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" if (parenthesized_expression "((__ptr[0xb] & 0x102) == 0)" ( (binary_expression "(__ptr[0xb] & 0x102) == 0" (parenthesized_expression "(__ptr[0xb] & 0x102)" ( (binary_expression "__ptr[0xb] & 0x102" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }" { (expression_statement "pvVar6 = malloc(0x1c);" (assignment_expression "pvVar6 = malloc(0x1c)" identifier = (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "__ptr[0xd] = pvVar6;" (assignment_expression "__ptr[0xd] = pvVar6" (subscript_expression "__ptr[0xd]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }" if (parenthesized_expression "(pvVar6 != (void *)0x0)" ( (binary_expression "pvVar6 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }" { (expression_statement "FUN_0001b070(pvVar6);" (call_expression "FUN_0001b070(pvVar6)" identifier (argument_list "(pvVar6)" ( identifier ))) ;) (goto_statement "goto LAB_00018416;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" else (compound_statement "{\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" { (expression_statement "iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);" (assignment_expression "iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" identifier = (call_expression "FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" identifier (argument_list "(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "__ptr[0xd] = iVar7;" (assignment_expression "__ptr[0xd] = iVar7" (subscript_expression "__ptr[0xd]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }" { (labeled_statement "LAB_00018416:\n          uVar10 = __ptr[0xb];" statement_identifier : (expression_statement "uVar10 = __ptr[0xb];" (assignment_expression "uVar10 = __ptr[0xb]" identifier = (subscript_expression "__ptr[0xb]" identifier [ number_literal ])) ;)) (if_statement "if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }" if (parenthesized_expression "((uVar10 & 0x204) == 0)" ( (binary_expression "(uVar10 & 0x204) == 0" (parenthesized_expression "(uVar10 & 0x204)" ( (binary_expression "uVar10 & 0x204" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }" { (expression_statement "uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;" (assignment_expression "uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900" identifier = (binary_expression "(uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900" (binary_expression "(uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7" (binary_expression "(uVar10 & 0x10) << 0xd" (parenthesized_expression "(uVar10 & 0x10)" ( (binary_expression "uVar10 & 0x10" identifier & number_literal) )) << number_literal) | (binary_expression "(uVar10 & 0x800) << 7" (parenthesized_expression "(uVar10 & 0x800)" ( (binary_expression "uVar10 & 0x800" identifier & number_literal) )) << number_literal)) | number_literal)) ;) (if_statement "if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" if (parenthesized_expression "((uVar10 & 0x200) == 0)" ( (binary_expression "(uVar10 & 0x200) == 0" (parenthesized_expression "(uVar10 & 0x200)" ( (binary_expression "uVar10 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }" { (expression_statement "iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);" (assignment_expression "iVar7 = FUN_0001b190(&DAT_0001f827,uVar9)" identifier = (call_expression "FUN_0001b190(&DAT_0001f827,uVar9)" identifier (argument_list "(&DAT_0001f827,uVar9)" ( (pointer_expression "&DAT_0001f827" & identifier) , identifier )))) ;) }) (else_clause "else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" else (compound_statement "{\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" { (expression_statement "iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);" (assignment_expression "iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9)" identifier = (call_expression "FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9)" identifier (argument_list "(__ptr[7],&DAT_0001f827,uVar9)" ( (subscript_expression "__ptr[7]" identifier [ number_literal ]) , (pointer_expression "&DAT_0001f827" & identifier) , identifier )))) ;) }))) (expression_statement "__ptr[6] = iVar7;" (assignment_expression "__ptr[6] = iVar7" (subscript_expression "__ptr[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }" { (expression_statement "__ptr[0xb] = __ptr[0xb] | 4;" (assignment_expression "__ptr[0xb] = __ptr[0xb] | 4" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) = (binary_expression "__ptr[0xb] | 4" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) | number_literal)) ;) })) })) (expression_statement "FUN_0001c510(__ptr + 0xe,0xffffffff);" (call_expression "FUN_0001c510(__ptr + 0xe,0xffffffff)" identifier (argument_list "(__ptr + 0xe,0xffffffff)" ( (binary_expression "__ptr + 0xe" identifier + number_literal) , number_literal ))) ;) (return_statement "return __ptr;" return identifier ;) })) }))) }))) (labeled_statement "LAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" statement_identifier : (if_statement "if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" { (expression_statement "__dirp = *(DIR **)((int)local_30 + 0xc);" (assignment_expression "__dirp = *(DIR **)((int)local_30 + 0xc)" identifier = (pointer_expression "*(DIR **)((int)local_30 + 0xc)" * (cast_expression "(DIR **)((int)local_30 + 0xc)" ( (type_descriptor "DIR **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 0xc)" ( (binary_expression "(int)local_30 + 0xc" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pvVar6 = *(void **)((int)local_30 + 8);" (assignment_expression "pvVar6 = *(void **)((int)local_30 + 8)" identifier = (pointer_expression "*(void **)((int)local_30 + 8)" * (cast_expression "(void **)((int)local_30 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 8)" ( (binary_expression "(int)local_30 + 8" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (__dirp == (DIR *)0x0) goto LAB_0001855c;" if (parenthesized_expression "(__dirp == (DIR *)0x0)" ( (binary_expression "__dirp == (DIR *)0x0" identifier == (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001855c;" goto statement_identifier ;)) (do_statement "do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );" do (compound_statement "{\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      }" { (expression_statement "closedir(__dirp);" (call_expression "closedir(__dirp)" identifier (argument_list "(__dirp)" ( identifier ))) ;) (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) (while_statement "while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }" { (if_statement "if (local_30 == (void *)0x0) goto LAB_0001856c;" if (parenthesized_expression "(local_30 == (void *)0x0)" ( (binary_expression "local_30 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001856c;" goto statement_identifier ;)) (expression_statement "__dirp = *(DIR **)((int)local_30 + 0xc);" (assignment_expression "__dirp = *(DIR **)((int)local_30 + 0xc)" identifier = (pointer_expression "*(DIR **)((int)local_30 + 0xc)" * (cast_expression "(DIR **)((int)local_30 + 0xc)" ( (type_descriptor "DIR **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 0xc)" ( (binary_expression "(int)local_30 + 0xc" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pvVar6 = *(void **)((int)local_30 + 8);" (assignment_expression "pvVar6 = *(void **)((int)local_30 + 8)" identifier = (pointer_expression "*(void **)((int)local_30 + 8)" * (cast_expression "(void **)((int)local_30 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 8)" ( (binary_expression "(int)local_30 + 8" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (__dirp != (DIR *)0x0) break;" if (parenthesized_expression "(__dirp != (DIR *)0x0)" ( (binary_expression "__dirp != (DIR *)0x0" identifier != (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_0001855c:\n          free(local_30);" statement_identifier : (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (labeled_statement "LAB_0001856c:\n    free(local_28);" statement_identifier : (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;)) (expression_statement "pvVar6 = (void *)__ptr[5];" (assignment_expression "pvVar6 = (void *)__ptr[5]" identifier = (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" else (compound_statement "{\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" { (expression_statement "local_28 = malloc(0xa8);" (assignment_expression "local_28 = malloc(0xa8)" identifier = (call_expression "malloc(0xa8)" identifier (argument_list "(0xa8)" ( number_literal )))) ;) (if_statement "if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }" if (parenthesized_expression "(local_28 != (void *)0x0)" ( (binary_expression "local_28 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }" { (expression_statement "*(undefined1 *)((int)local_28 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)local_28 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)local_28 + 0xa4)" * (cast_expression "(undefined1 *)((int)local_28 + 0xa4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0xa4)" ( (binary_expression "(int)local_28 + 0xa4" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x34)" * (cast_expression "(undefined4 *)((int)local_28 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x34)" ( (binary_expression "(int)local_28 + 0x34" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 **)((int)local_28 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)local_28 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)local_28 + 0x2c)" * (cast_expression "(undefined4 **)((int)local_28 + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_28 + 0x2c)" ( (binary_expression "(int)local_28 + 0x2c" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(void **)((int)local_28 + 0x1c) = pvVar6;" (assignment_expression "*(void **)((int)local_28 + 0x1c) = pvVar6" (pointer_expression "*(void **)((int)local_28 + 0x1c)" * (cast_expression "(void **)((int)local_28 + 0x1c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_28 + 0x1c)" ( (binary_expression "(int)local_28 + 0x1c" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x20)" * (cast_expression "(undefined4 *)((int)local_28 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x20)" ( (binary_expression "(int)local_28 + 0x20" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0xc)" * (cast_expression "(undefined4 *)((int)local_28 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0xc)" ( (binary_expression "(int)local_28 + 0xc" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x3e) = 0x30000;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x3e) = 0x30000" (pointer_expression "*(undefined4 *)((int)local_28 + 0x3e)" * (cast_expression "(undefined4 *)((int)local_28 + 0x3e)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x3e)" ( (binary_expression "(int)local_28 + 0x3e" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x10)" * (cast_expression "(undefined4 *)((int)local_28 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x10)" ( (binary_expression "(int)local_28 + 0x10" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x14)" * (cast_expression "(undefined4 *)((int)local_28 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x14)" ( (binary_expression "(int)local_28 + 0x14" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x30) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_28 + 0x30)" * (cast_expression "(undefined4 *)((int)local_28 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x30)" ( (binary_expression "(int)local_28 + 0x30" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_28 + 0x38)" * (cast_expression "(undefined4 *)((int)local_28 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x38)" ( (binary_expression "(int)local_28 + 0x38" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 != 0) goto LAB_000184a0;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000184a0;" goto statement_identifier ;)) (expression_statement "local_22 = 1;" (assignment_expression "local_22 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000181fa:\n      local_20 = (void *)0x0;" statement_identifier : (expression_statement "local_20 = (void *)0x0;" (assignment_expression "local_20 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_30 = (void *)0x0;" (assignment_expression "local_30 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);" do (compound_statement "{\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      }" { (expression_statement "sVar5 = strlen(pcVar4);" (assignment_expression "sVar5 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" if (parenthesized_expression "((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0))" ( (binary_expression "(sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)" (parenthesized_expression "(sVar5 < 3)" ( (binary_expression "sVar5 < 3" identifier < number_literal) )) || (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) ))) )) (compound_statement "{\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" { (expression_statement "__size = sVar5 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar5 + 0xa8 & 0xfffffffc" identifier = (binary_expression "sVar5 + 0xa8 & 0xfffffffc" (binary_expression "sVar5 + 0xa8" identifier + number_literal) & number_literal)) ;) }) (else_clause "else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" else (if_statement "if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" if (parenthesized_expression "(pcVar4[sVar5 - 1] == '/')" ( (binary_expression "pcVar4[sVar5 - 1] == '/'" (subscript_expression "pcVar4[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }" { (do_statement "do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);" do (compound_statement "{\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          }" { (if_statement "if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;" if (parenthesized_expression "(pcVar4[sVar5 - 2] != '/')" ( (binary_expression "pcVar4[sVar5 - 2] != '/'" (subscript_expression "pcVar4[sVar5 - 2]" identifier [ (binary_expression "sVar5 - 2" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001833c;" goto statement_identifier ;)) (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 "__size = 0xa8;" (assignment_expression "__size = 0xa8" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" else (compound_statement "{\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" { (labeled_statement "LAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;" statement_identifier : (expression_statement "__size = sVar5 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar5 + 0xa8 & 0xfffffffc" identifier = (binary_expression "sVar5 + 0xa8 & 0xfffffffc" (binary_expression "sVar5 + 0xa8" identifier + number_literal) & number_literal)) ;)) }))))) (expression_statement "pvVar6 = malloc(__size);" (assignment_expression "pvVar6 = malloc(__size)" identifier = (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) goto LAB_00018524;" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00018524;" goto statement_identifier ;)) (expression_statement "memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);" (call_expression "memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5)" identifier (argument_list "((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5)" ( (cast_expression "(void *)((int)pvVar6 + 0xa4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xa4)" ( (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4)" * (cast_expression "(undefined1 *)((int)pvVar6 + sVar5 + 0xa4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + sVar5 + 0xa4)" ( (binary_expression "(int)pvVar6 + sVar5 + 0xa4" (binary_expression "(int)pvVar6 + sVar5" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(size_t *)((int)pvVar6 + 0x34) = sVar5;" (assignment_expression "*(size_t *)((int)pvVar6 + 0x34) = sVar5" (pointer_expression "*(size_t *)((int)pvVar6 + 0x34)" * (cast_expression "(size_t *)((int)pvVar6 + 0x34)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x34)" ( (binary_expression "(int)pvVar6 + 0x34" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)pvVar6 + 0x2c)" * (cast_expression "(undefined4 **)((int)pvVar6 + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x2c)" ( (binary_expression "(int)pvVar6 + 0x2c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = __ptr[5];" (assignment_expression "uVar1 = __ptr[5]" identifier = (subscript_expression "__ptr[5]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x20)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x20)" ( (binary_expression "(int)pvVar6 + 0x20" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x1c)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x1c)" ( (binary_expression "(int)pvVar6 + 0x1c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0xc)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xc)" ( (binary_expression "(int)pvVar6 + 0xc" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)((int)pvVar6 + 4) = local_28;" (assignment_expression "*(void **)((int)pvVar6 + 4) = local_28" (pointer_expression "*(void **)((int)pvVar6 + 4)" * (cast_expression "(void **)((int)pvVar6 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x3e)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x3e)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3e)" ( (binary_expression "(int)pvVar6 + 0x3e" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x10)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x10)" ( (binary_expression "(int)pvVar6 + 0x10" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x14)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x14)" ( (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x30) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x30) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x30)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x30)" ( (binary_expression "(int)pvVar6 + 0x30" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);" (assignment_expression "*(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4)" (pointer_expression "*(void **)((int)pvVar6 + 0x18)" * (cast_expression "(void **)((int)pvVar6 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x18)" ( (binary_expression "(int)pvVar6 + 0x18" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(void *)((int)pvVar6 + 0xa4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xa4)" ( (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "pvVar2 = pvVar6;" (assignment_expression "pvVar2 = pvVar6" identifier = identifier) ;) (if_statement "if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" if (parenthesized_expression "((local_30 == (void *)0x0) || (local_22 == 0))" ( (binary_expression "(local_30 == (void *)0x0) || (local_22 == 0)" (parenthesized_expression "(local_30 == (void *)0x0)" ( (binary_expression "local_30 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(local_22 == 0)" ( (binary_expression "local_22 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }" { (expression_statement "uVar3 = FUN_000168b0();" (assignment_expression "uVar3 = FUN_000168b0()" identifier = (call_expression "FUN_000168b0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x3c) = uVar3" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x3c)" * (cast_expression "(undefined2 *)((int)pvVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3c)" ( (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (param_3 != 0) goto LAB_000182f0;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000182f0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" * (cast_expression "(undefined4 *)((int)pvVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != (void *)0x0) goto LAB_0001850f;" if (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001850f;" goto statement_identifier ;)) }) (else_clause "else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" else (compound_statement "{\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" { (expression_statement "*(undefined4 *)((int)pvVar6 + 0x70) = 2;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x70) = 2" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x70)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x70)" ( (binary_expression "(int)pvVar6 + 0x70" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x3c) = 0xb" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x3c)" * (cast_expression "(undefined2 *)((int)pvVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3c)" ( (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x74)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x74)" ( (binary_expression "(int)pvVar6 + 0x74" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }" { (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" * (cast_expression "(undefined4 *)((int)pvVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;" statement_identifier : (expression_statement "*(void **)((int)local_20 + 8) = pvVar6;" (assignment_expression "*(void **)((int)local_20 + 8) = pvVar6" (pointer_expression "*(void **)((int)local_20 + 8)" * (cast_expression "(void **)((int)local_20 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_20 + 8)" ( (binary_expression "(int)local_20 + 8" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;)) (expression_statement "pvVar2 = local_30;" (assignment_expression "pvVar2 = local_30" identifier = identifier) ;) }) (else_clause "else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" else (compound_statement "{\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" { (labeled_statement "LAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;" statement_identifier : (expression_statement "*(void **)((int)pvVar6 + 8) = local_30;" (assignment_expression "*(void **)((int)pvVar6 + 8) = local_30" (pointer_expression "*(void **)((int)pvVar6 + 8)" * (cast_expression "(void **)((int)pvVar6 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;)) (expression_statement "pvVar6 = local_20;" (assignment_expression "pvVar6 = local_20" identifier = identifier) ;) }))) }))) (expression_statement "local_20 = pvVar6;" (assignment_expression "local_20 = pvVar6" identifier = identifier) ;) (expression_statement "local_30 = pvVar2;" (assignment_expression "local_30 = pvVar2" identifier = identifier) ;) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" identifier = (binary_expression "local_38 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = (char *)param_1[local_38];" (assignment_expression "pcVar4 = (char *)param_1[local_38]" identifier = (cast_expression "(char *)param_1[local_38]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[local_38]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }" if (parenthesized_expression "((param_3 != 0) && (1 < local_38))" ( (binary_expression "(param_3 != 0) && (1 < local_38)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(1 < local_38)" ( (binary_expression "1 < local_38" number_literal < identifier) ))) )) (compound_statement "{\n        local_30 = (void *)FUN_00016a50();\n      }" { (expression_statement "local_30 = (void *)FUN_00016a50();" (assignment_expression "local_30 = (void *)FUN_00016a50()" identifier = (cast_expression "(void *)FUN_00016a50()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00016a50()" identifier (argument_list "()" ( ))))) ;) })) (goto_statement "goto LAB_00018370;" goto statement_identifier ;) })) }))) (expression_statement "free(pvVar6);" (call_expression "free(pvVar6)" identifier (argument_list "(pvVar6)" ( identifier ))) ;) (labeled_statement "LAB_0001858e:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (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  ushort uVar1;\n  FTS *sp;\n  size_t sVar2;\n  char *pcVar3;\n  FTSENT *p;\n  size_t __size;\n  _ftsent *p_Var4;\n  Hash_table *pHVar5;\n  DIR *__dirp;\n  int *piVar6;\n  cycle_check_state *state;\n  int iVar7;\n  uint flags;\n  char **ppcVar8;\n  char *__s;\n  uint uVar9;\n  uint local_38;\n  _ftsent *local_30;\n  _ftsent *local_28;\n  byte local_22;\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  uVar9 = options & 0xfffffdffU | 4;\n  if ((options & 2U) == 0) {\n    uVar9 = options;\n  }\n  sp->fts_options = uVar9;\n  pcVar3 = *argv;\n  if (pcVar3 == (char *)0x0) {\n    uVar9 = 0x1000;\n  }\n  else {\n    uVar9 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);\n    uVar9 = uVar9 + 1;\n    if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }\n  }\n  uVar9 = sp->fts_pathlen + 0x100 + uVar9;\n  if (uVar9 < sp->fts_pathlen) {\n    free(sp->fts_path);\n    piVar6 = __errno_location();\n    *piVar6 = 0x24;\n    goto LAB_0001858e;\n  }\n  sp->fts_pathlen = uVar9;\n  pcVar3 = (char *)realloc(sp->fts_path,uVar9);\n  if (pcVar3 == (char *)0x0) {\n    free(sp->fts_path);\n    goto LAB_0001858e;\n  }\n  sp->fts_path = pcVar3;\n  __s = *argv;\n  if (__s == (char *)0x0) {\n    local_28 = (_ftsent *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (_ftsent *)0x0;\nLAB_00018370:\n    p_Var4 = (_ftsent *)malloc(0xa8);\n    if (p_Var4 == (_ftsent *)0x0) {\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }\nLAB_00018524:\n    if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pcVar3 = sp->fts_path;\n  }\n  else {\n    local_28 = (_ftsent *)malloc(0xa8);\n    if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pcVar3);\nLAB_0001858e:\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  ushort uVar1;\n  FTS *sp;\n  size_t sVar2;\n  char *pcVar3;\n  FTSENT *p;\n  size_t __size;\n  _ftsent *p_Var4;\n  Hash_table *pHVar5;\n  DIR *__dirp;\n  int *piVar6;\n  cycle_check_state *state;\n  int iVar7;\n  uint flags;\n  char **ppcVar8;\n  char *__s;\n  uint uVar9;\n  uint local_38;\n  _ftsent *local_30;\n  _ftsent *local_28;\n  byte local_22;\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  uVar9 = options & 0xfffffdffU | 4;\n  if ((options & 2U) == 0) {\n    uVar9 = options;\n  }\n  sp->fts_options = uVar9;\n  pcVar3 = *argv;\n  if (pcVar3 == (char *)0x0) {\n    uVar9 = 0x1000;\n  }\n  else {\n    uVar9 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);\n    uVar9 = uVar9 + 1;\n    if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }\n  }\n  uVar9 = sp->fts_pathlen + 0x100 + uVar9;\n  if (uVar9 < sp->fts_pathlen) {\n    free(sp->fts_path);\n    piVar6 = __errno_location();\n    *piVar6 = 0x24;\n    goto LAB_0001858e;\n  }\n  sp->fts_pathlen = uVar9;\n  pcVar3 = (char *)realloc(sp->fts_path,uVar9);\n  if (pcVar3 == (char *)0x0) {\n    free(sp->fts_path);\n    goto LAB_0001858e;\n  }\n  sp->fts_path = pcVar3;\n  __s = *argv;\n  if (__s == (char *)0x0) {\n    local_28 = (_ftsent *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (_ftsent *)0x0;\nLAB_00018370:\n    p_Var4 = (_ftsent *)malloc(0xa8);\n    if (p_Var4 == (_ftsent *)0x0) {\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }\nLAB_00018524:\n    if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pcVar3 = sp->fts_path;\n  }\n  else {\n    local_28 = (_ftsent *)malloc(0xa8);\n    if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pcVar3);\nLAB_0001858e:\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  ushort uVar1;\n  FTS *sp;\n  size_t sVar2;\n  char *pcVar3;\n  FTSENT *p;\n  size_t __size;\n  _ftsent *p_Var4;\n  Hash_table *pHVar5;\n  DIR *__dirp;\n  int *piVar6;\n  cycle_check_state *state;\n  int iVar7;\n  uint flags;\n  char **ppcVar8;\n  char *__s;\n  uint uVar9;\n  uint local_38;\n  _ftsent *local_30;\n  _ftsent *local_28;\n  byte local_22;\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  uVar9 = options & 0xfffffdffU | 4;\n  if ((options & 2U) == 0) {\n    uVar9 = options;\n  }\n  sp->fts_options = uVar9;\n  pcVar3 = *argv;\n  if (pcVar3 == (char *)0x0) {\n    uVar9 = 0x1000;\n  }\n  else {\n    uVar9 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);\n    uVar9 = uVar9 + 1;\n    if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }\n  }\n  uVar9 = sp->fts_pathlen + 0x100 + uVar9;\n  if (uVar9 < sp->fts_pathlen) {\n    free(sp->fts_path);\n    piVar6 = __errno_location();\n    *piVar6 = 0x24;\n    goto LAB_0001858e;\n  }\n  sp->fts_pathlen = uVar9;\n  pcVar3 = (char *)realloc(sp->fts_path,uVar9);\n  if (pcVar3 == (char *)0x0) {\n    free(sp->fts_path);\n    goto LAB_0001858e;\n  }\n  sp->fts_path = pcVar3;\n  __s = *argv;\n  if (__s == (char *)0x0) {\n    local_28 = (_ftsent *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (_ftsent *)0x0;\nLAB_00018370:\n    p_Var4 = (_ftsent *)malloc(0xa8);\n    if (p_Var4 == (_ftsent *)0x0) {\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }\nLAB_00018524:\n    if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pcVar3 = sp->fts_path;\n  }\n  else {\n    local_28 = (_ftsent *)malloc(0xa8);\n    if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pcVar3);\nLAB_0001858e:\n  free(sp);\n  return (FTS *)0x0;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "FTS *sp;" type_identifier (pointer_declarator "*sp" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "FTSENT *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "_ftsent *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "Hash_table *pHVar5;" type_identifier (pointer_declarator "*pHVar5" * identifier) ;) (declaration "DIR *__dirp;" type_identifier (pointer_declarator "*__dirp" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "cycle_check_state *state;" type_identifier (pointer_declarator "*state" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint flags;" type_identifier identifier ;) (declaration "char **ppcVar8;" primitive_type (pointer_declarator "**ppcVar8" * (pointer_declarator "*ppcVar8" * identifier)) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint local_38;" type_identifier identifier ;) (declaration "_ftsent *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "_ftsent *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "byte local_22;" type_identifier 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 "uVar9 = options & 0xfffffdffU | 4;" (assignment_expression "uVar9 = 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    uVar9 = 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    uVar9 = options;\n  }" { (expression_statement "uVar9 = options;" (assignment_expression "uVar9 = options" identifier = identifier) ;) })) (expression_statement "sp->fts_options = uVar9;" (assignment_expression "sp->fts_options = uVar9" (field_expression "sp->fts_options" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar3 = *argv;" (assignment_expression "pcVar3 = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    uVar9 = 0x1000;\n  }\n  else {\n    uVar9 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);\n    uVar9 = uVar9 + 1;\n    if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar9 = 0x1000;\n  }" { (expression_statement "uVar9 = 0x1000;" (assignment_expression "uVar9 = 0x1000" identifier = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);\n    uVar9 = uVar9 + 1;\n    if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }\n  }" else (compound_statement "{\n    uVar9 = 0;\n    ppcVar8 = argv;\n    do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);\n    uVar9 = uVar9 + 1;\n    if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "ppcVar8 = argv;" (assignment_expression "ppcVar8 = argv" identifier = identifier) ;) (do_statement "do {\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    } while (pcVar3 != (char *)0x0);" do (compound_statement "{\n      sVar2 = strlen(pcVar3);\n      if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }\n      ppcVar8 = ppcVar8 + 1;\n      pcVar3 = *ppcVar8;\n    }" { (expression_statement "sVar2 = strlen(pcVar3);" (assignment_expression "sVar2 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (uVar9 < sVar2) {\n        uVar9 = sVar2;\n      }" if (parenthesized_expression "(uVar9 < sVar2)" ( (binary_expression "uVar9 < sVar2" identifier < identifier) )) (compound_statement "{\n        uVar9 = sVar2;\n      }" { (expression_statement "uVar9 = sVar2;" (assignment_expression "uVar9 = sVar2" identifier = identifier) ;) })) (expression_statement "ppcVar8 = ppcVar8 + 1;" (assignment_expression "ppcVar8 = ppcVar8 + 1" identifier = (binary_expression "ppcVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = *ppcVar8;" (assignment_expression "pcVar3 = *ppcVar8" identifier = (pointer_expression "*ppcVar8" * identifier)) ;) }) while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (if_statement "if (uVar9 < 0x1000) {\n      uVar9 = 0x1000;\n    }" if (parenthesized_expression "(uVar9 < 0x1000)" ( (binary_expression "uVar9 < 0x1000" identifier < number_literal) )) (compound_statement "{\n      uVar9 = 0x1000;\n    }" { (expression_statement "uVar9 = 0x1000;" (assignment_expression "uVar9 = 0x1000" identifier = number_literal) ;) })) }))) (expression_statement "uVar9 = sp->fts_pathlen + 0x100 + uVar9;" (assignment_expression "uVar9 = sp->fts_pathlen + 0x100 + uVar9" identifier = (binary_expression "sp->fts_pathlen + 0x100 + uVar9" (binary_expression "sp->fts_pathlen + 0x100" (field_expression "sp->fts_pathlen" identifier -> field_identifier) + number_literal) + identifier)) ;) (if_statement "if (uVar9 < sp->fts_pathlen) {\n    free(sp->fts_path);\n    piVar6 = __errno_location();\n    *piVar6 = 0x24;\n    goto LAB_0001858e;\n  }" if (parenthesized_expression "(uVar9 < sp->fts_pathlen)" ( (binary_expression "uVar9 < sp->fts_pathlen" identifier < (field_expression "sp->fts_pathlen" identifier -> field_identifier)) )) (compound_statement "{\n    free(sp->fts_path);\n    piVar6 = __errno_location();\n    *piVar6 = 0x24;\n    goto LAB_0001858e;\n  }" { (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) ))) ;) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar6 = 0x24;" (assignment_expression "*piVar6 = 0x24" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (goto_statement "goto LAB_0001858e;" goto statement_identifier ;) })) (expression_statement "sp->fts_pathlen = uVar9;" (assignment_expression "sp->fts_pathlen = uVar9" (field_expression "sp->fts_pathlen" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar3 = (char *)realloc(sp->fts_path,uVar9);" (assignment_expression "pcVar3 = (char *)realloc(sp->fts_path,uVar9)" identifier = (cast_expression "(char *)realloc(sp->fts_path,uVar9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(sp->fts_path,uVar9)" identifier (argument_list "(sp->fts_path,uVar9)" ( (field_expression "sp->fts_path" identifier -> field_identifier) , identifier ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    free(sp->fts_path);\n    goto LAB_0001858e;\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(sp->fts_path);\n    goto LAB_0001858e;\n  }" { (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) ))) ;) (goto_statement "goto LAB_0001858e;" goto statement_identifier ;) })) (expression_statement "sp->fts_path = pcVar3;" (assignment_expression "sp->fts_path = pcVar3" (field_expression "sp->fts_path" identifier -> field_identifier) = identifier) ;) (expression_statement "__s = *argv;" (assignment_expression "__s = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (if_statement "if (__s == (char *)0x0) {\n    local_28 = (_ftsent *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (_ftsent *)0x0;\nLAB_00018370:\n    p_Var4 = (_ftsent *)malloc(0xa8);\n    if (p_Var4 == (_ftsent *)0x0) {\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }\nLAB_00018524:\n    if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pcVar3 = sp->fts_path;\n  }\n  else {\n    local_28 = (_ftsent *)malloc(0xa8);\n    if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }\n  }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (_ftsent *)0x0;\n    if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (_ftsent *)0x0;\nLAB_00018370:\n    p_Var4 = (_ftsent *)malloc(0xa8);\n    if (p_Var4 == (_ftsent *)0x0) {\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }\nLAB_00018524:\n    if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pcVar3 = sp->fts_path;\n  }" { (expression_statement "local_28 = (_ftsent *)0x0;" (assignment_expression "local_28 = (_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) {\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\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 "{\nLAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;\n      if (__s != (char *)0x0) goto LAB_000181fa;\n    }" { (labeled_statement "LAB_000184a0:\n      local_22 = (byte)((uint)sp->fts_options >> 10) & 1;" statement_identifier : (expression_statement "local_22 = (byte)((uint)sp->fts_options >> 10) & 1;" (assignment_expression "local_22 = (byte)((uint)sp->fts_options >> 10) & 1" identifier = (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)) ;)) (if_statement "if (__s != (char *)0x0) goto LAB_000181fa;" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000181fa;" goto statement_identifier ;)) })) (expression_statement "local_30 = (_ftsent *)0x0;" (assignment_expression "local_30 = (_ftsent *)0x0" identifier = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00018370:\n    p_Var4 = (_ftsent *)malloc(0xa8);" statement_identifier : (expression_statement "p_Var4 = (_ftsent *)malloc(0xa8);" (assignment_expression "p_Var4 = (_ftsent *)malloc(0xa8)" identifier = (cast_expression "(_ftsent *)malloc(0xa8)" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xa8)" identifier (argument_list "(0xa8)" ( number_literal ))))) ;)) (if_statement "if (p_Var4 == (_ftsent *)0x0) {\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }" if (parenthesized_expression "(p_Var4 == (_ftsent *)0x0)" ( (binary_expression "p_Var4 == (_ftsent *)0x0" identifier == (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sp->fts_cur = (_ftsent *)0x0;\n    }" { (expression_statement "sp->fts_cur = (_ftsent *)0x0;" (assignment_expression "sp->fts_cur = (_ftsent *)0x0" (field_expression "sp->fts_cur" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }" else (compound_statement "{\n      *(undefined1 *)&p_Var4[1].fts_cycle = 0;\n      p_Var4->fts_namelen = 0;\n      pcVar3 = sp->fts_path;\n      p_Var4->fts_fts = sp;\n      p_Var4->fts_errno = 0;\n      p_Var4->fts_path = pcVar3;\n      p_Var4->fts_dirp = (DIR *)0x0;\n      p_Var4->fts_number = 0;\n      p_Var4->fts_pointer = (void *)0x0;\n      sp->fts_cur = p_Var4;\n      p_Var4->fts_link = local_30;\n      p_Var4->fts_info = 9;\n      p_Var4->fts_flags = 0;\n      p_Var4->fts_instr = 3;\n      p_Var4->fts_level = 1;\n      if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }\n    }" { (expression_statement "*(undefined1 *)&p_Var4[1].fts_cycle = 0;" (assignment_expression "*(undefined1 *)&p_Var4[1].fts_cycle = 0" (pointer_expression "*(undefined1 *)&p_Var4[1].fts_cycle" * (cast_expression "(undefined1 *)&p_Var4[1].fts_cycle" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var4[1].fts_cycle" & (field_expression "p_Var4[1].fts_cycle" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "p_Var4->fts_namelen = 0;" (assignment_expression "p_Var4->fts_namelen = 0" (field_expression "p_Var4->fts_namelen" identifier -> field_identifier) = number_literal) ;) (expression_statement "pcVar3 = sp->fts_path;" (assignment_expression "pcVar3 = sp->fts_path" identifier = (field_expression "sp->fts_path" identifier -> field_identifier)) ;) (expression_statement "p_Var4->fts_fts = sp;" (assignment_expression "p_Var4->fts_fts = sp" (field_expression "p_Var4->fts_fts" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4->fts_errno = 0;" (assignment_expression "p_Var4->fts_errno = 0" (field_expression "p_Var4->fts_errno" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var4->fts_path = pcVar3;" (assignment_expression "p_Var4->fts_path = pcVar3" (field_expression "p_Var4->fts_path" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4->fts_dirp = (DIR *)0x0;" (assignment_expression "p_Var4->fts_dirp = (DIR *)0x0" (field_expression "p_Var4->fts_dirp" identifier -> field_identifier) = (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p_Var4->fts_number = 0;" (assignment_expression "p_Var4->fts_number = 0" (field_expression "p_Var4->fts_number" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var4->fts_pointer = (void *)0x0;" (assignment_expression "p_Var4->fts_pointer = (void *)0x0" (field_expression "p_Var4->fts_pointer" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sp->fts_cur = p_Var4;" (assignment_expression "sp->fts_cur = p_Var4" (field_expression "sp->fts_cur" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4->fts_link = local_30;" (assignment_expression "p_Var4->fts_link = local_30" (field_expression "p_Var4->fts_link" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4->fts_info = 9;" (assignment_expression "p_Var4->fts_info = 9" (field_expression "p_Var4->fts_info" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var4->fts_flags = 0;" (assignment_expression "p_Var4->fts_flags = 0" (field_expression "p_Var4->fts_flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var4->fts_instr = 3;" (assignment_expression "p_Var4->fts_instr = 3" (field_expression "p_Var4->fts_instr" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var4->fts_level = 1;" (assignment_expression "p_Var4->fts_level = 1" (field_expression "p_Var4->fts_level" identifier -> field_identifier) = number_literal) ;) (if_statement "if ((sp->fts_options & 0x102U) == 0) {\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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 "((sp->fts_options & 0x102U) == 0)" ( (binary_expression "(sp->fts_options & 0x102U) == 0" (parenthesized_expression "(sp->fts_options & 0x102U)" ( (binary_expression "sp->fts_options & 0x102U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        state = (cycle_check_state *)malloc(0x1c);\n        (sp->fts_cycle).state = state;\n        if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }\n      }" { (expression_statement "state = (cycle_check_state *)malloc(0x1c);" (assignment_expression "state = (cycle_check_state *)malloc(0x1c)" identifier = (cast_expression "(cycle_check_state *)malloc(0x1c)" ( (type_descriptor "cycle_check_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "(sp->fts_cycle).state = state;" (assignment_expression "(sp->fts_cycle).state = state" (field_expression "(sp->fts_cycle).state" (parenthesized_expression "(sp->fts_cycle)" ( (field_expression "sp->fts_cycle" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (state != (cycle_check_state *)0x0) {\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }" if (parenthesized_expression "(state != (cycle_check_state *)0x0)" ( (binary_expression "state != (cycle_check_state *)0x0" identifier != (cast_expression "(cycle_check_state *)0x0" ( (type_descriptor "cycle_check_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          cycle_check_init(state);\n          goto LAB_00018416;\n        }" { (expression_statement "cycle_check_init(state);" (call_expression "cycle_check_init(state)" identifier (argument_list "(state)" ( identifier ))) ;) (goto_statement "goto LAB_00018416;" goto statement_identifier ;) })) }) (else_clause "else {\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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      }" else (compound_statement "{\n        pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);\n        (sp->fts_cycle).ht = pHVar5;\n        if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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 "pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc);" (assignment_expression "pHVar5 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc)" identifier = (call_expression "hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc)" identifier (argument_list "(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                                 (Hash_data_freer)PTR_free_00024fcc)" ( number_literal , (cast_expression "(Hash_tuning *)0x0" ( (type_descriptor "Hash_tuning *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (cast_expression "(Hash_data_freer)PTR_free_00024fcc" ( (type_descriptor "Hash_data_freer" type_identifier) ) identifier) )))) ;) (expression_statement "(sp->fts_cycle).ht = pHVar5;" (assignment_expression "(sp->fts_cycle).ht = pHVar5" (field_expression "(sp->fts_cycle).ht" (parenthesized_expression "(sp->fts_cycle)" ( (field_expression "sp->fts_cycle" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (pHVar5 != (Hash_table *)0x0) {\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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 "(pHVar5 != (Hash_table *)0x0)" ( (binary_expression "pHVar5 != (Hash_table *)0x0" identifier != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00018416:\n          uVar9 = sp->fts_options;\n          if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\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        }" { (labeled_statement "LAB_00018416:\n          uVar9 = sp->fts_options;" statement_identifier : (expression_statement "uVar9 = sp->fts_options;" (assignment_expression "uVar9 = sp->fts_options" identifier = (field_expression "sp->fts_options" identifier -> field_identifier)) ;)) (if_statement "if ((uVar9 & 0x204) == 0) {\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\n            sp->fts_rfd = iVar7;\n            if (iVar7 < 0) {\n              sp->fts_options = sp->fts_options | 4;\n            }\n          }" if (parenthesized_expression "((uVar9 & 0x204) == 0)" ( (binary_expression "(uVar9 & 0x204) == 0" (parenthesized_expression "(uVar9 & 0x204)" ( (binary_expression "uVar9 & 0x204" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;\n            if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }\n            sp->fts_rfd = iVar7;\n            if (iVar7 < 0) {\n              sp->fts_options = sp->fts_options | 4;\n            }\n          }" { (expression_statement "flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900;" (assignment_expression "flags = (uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900" identifier = (binary_expression "(uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7 | 0x90900" (binary_expression "(uVar9 & 0x10) << 0xd | (uVar9 & 0x800) << 7" (binary_expression "(uVar9 & 0x10) << 0xd" (parenthesized_expression "(uVar9 & 0x10)" ( (binary_expression "uVar9 & 0x10" identifier & number_literal) )) << number_literal) | (binary_expression "(uVar9 & 0x800) << 7" (parenthesized_expression "(uVar9 & 0x800)" ( (binary_expression "uVar9 & 0x800" identifier & number_literal) )) << number_literal)) | number_literal)) ;) (if_statement "if ((uVar9 & 0x200) == 0) {\n              iVar7 = open_safer(".",flags);\n            }\n            else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }" if (parenthesized_expression "((uVar9 & 0x200) == 0)" ( (binary_expression "(uVar9 & 0x200) == 0" (parenthesized_expression "(uVar9 & 0x200)" ( (binary_expression "uVar9 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n              iVar7 = open_safer(".",flags);\n            }" { (expression_statement "iVar7 = open_safer(".",flags);" (assignment_expression "iVar7 = open_safer(".",flags)" identifier = (call_expression "open_safer(".",flags)" identifier (argument_list "(".",flags)" ( (string_literal ""."" " string_content ") , identifier )))) ;) }) (else_clause "else {\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }" else (compound_statement "{\n              iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);\n            }" { (expression_statement "iVar7 = openat_safer(sp->fts_cwd_fd,".",flags);" (assignment_expression "iVar7 = openat_safer(sp->fts_cwd_fd,".",flags)" identifier = (call_expression "openat_safer(sp->fts_cwd_fd,".",flags)" identifier (argument_list "(sp->fts_cwd_fd,".",flags)" ( (field_expression "sp->fts_cwd_fd" identifier -> field_identifier) , (string_literal ""."" " string_content ") , 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_00018524:\n    if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }" statement_identifier : (if_statement "if (local_30 != (_ftsent *)0x0) {\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(local_30 != (_ftsent *)0x0)" ( (binary_expression "local_30 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      __dirp = local_30->fts_dirp;\n      p_Var4 = local_30->fts_link;\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );\n    }" { (expression_statement "__dirp = local_30->fts_dirp;" (assignment_expression "__dirp = local_30->fts_dirp" identifier = (field_expression "local_30->fts_dirp" identifier -> field_identifier)) ;) (expression_statement "p_Var4 = local_30->fts_link;" (assignment_expression "p_Var4 = local_30->fts_link" identifier = (field_expression "local_30->fts_link" identifier -> field_identifier)) ;) (if_statement "if (__dirp == (DIR *)0x0) goto LAB_0001855c;" if (parenthesized_expression "(__dirp == (DIR *)0x0)" ( (binary_expression "__dirp == (DIR *)0x0" identifier == (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001855c;" goto statement_identifier ;)) (do_statement "do {\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      } while( true );" do (compound_statement "{\n        closedir((DIR *)__dirp);\n        free(local_30);\n        local_30 = p_Var4;\n        while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }\n      }" { (expression_statement "closedir((DIR *)__dirp);" (call_expression "closedir((DIR *)__dirp)" identifier (argument_list "((DIR *)__dirp)" ( (cast_expression "(DIR *)__dirp" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "local_30 = p_Var4;" (assignment_expression "local_30 = p_Var4" identifier = identifier) ;) (while_statement "while( true ) {\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;\n          __dirp = local_30->fts_dirp;\n          p_Var4 = local_30->fts_link;\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = p_Var4;\n        }" { (if_statement "if (local_30 == (_ftsent *)0x0) goto LAB_0001856c;" if (parenthesized_expression "(local_30 == (_ftsent *)0x0)" ( (binary_expression "local_30 == (_ftsent *)0x0" identifier == (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001856c;" goto statement_identifier ;)) (expression_statement "__dirp = local_30->fts_dirp;" (assignment_expression "__dirp = local_30->fts_dirp" identifier = (field_expression "local_30->fts_dirp" identifier -> field_identifier)) ;) (expression_statement "p_Var4 = local_30->fts_link;" (assignment_expression "p_Var4 = local_30->fts_link" identifier = (field_expression "local_30->fts_link" identifier -> field_identifier)) ;) (if_statement "if (__dirp != (DIR *)0x0) break;" if (parenthesized_expression "(__dirp != (DIR *)0x0)" ( (binary_expression "__dirp != (DIR *)0x0" identifier != (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_0001855c:\n          free(local_30);" statement_identifier : (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "local_30 = p_Var4;" (assignment_expression "local_30 = p_Var4" identifier = identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (labeled_statement "LAB_0001856c:\n    free(local_28);" statement_identifier : (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;)) (expression_statement "pcVar3 = sp->fts_path;" (assignment_expression "pcVar3 = sp->fts_path" identifier = (field_expression "sp->fts_path" identifier -> field_identifier)) ;) }) (else_clause "else {\n    local_28 = (_ftsent *)malloc(0xa8);\n    if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }\n  }" else (compound_statement "{\n    local_28 = (_ftsent *)malloc(0xa8);\n    if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }\n  }" { (expression_statement "local_28 = (_ftsent *)malloc(0xa8);" (assignment_expression "local_28 = (_ftsent *)malloc(0xa8)" identifier = (cast_expression "(_ftsent *)malloc(0xa8)" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xa8)" identifier (argument_list "(0xa8)" ( number_literal ))))) ;) (if_statement "if (local_28 != (_ftsent *)0x0) {\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }" if (parenthesized_expression "(local_28 != (_ftsent *)0x0)" ( (binary_expression "local_28 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined1 *)&local_28[1].fts_cycle = 0;\n      local_28->fts_namelen = 0;\n      local_28->fts_fts = sp;\n      local_28->fts_path = pcVar3;\n      local_28->fts_errno = 0;\n      local_28->fts_dirp = (DIR *)0x0;\n      local_28->fts_flags = 0;\n      local_28->fts_instr = 3;\n      local_28->fts_number = 0;\n      local_28->fts_pointer = (void *)0x0;\n      local_28->fts_level = -1;\n      local_28->fts_n_dirs_remaining = 0xffffffff;\n      if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (FTSENT *)0x0;\n      local_30 = (_ftsent *)0x0;\n      local_38 = 0;\n      do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);\n      if ((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }\n      goto LAB_00018370;\n    }" { (expression_statement "*(undefined1 *)&local_28[1].fts_cycle = 0;" (assignment_expression "*(undefined1 *)&local_28[1].fts_cycle = 0" (pointer_expression "*(undefined1 *)&local_28[1].fts_cycle" * (cast_expression "(undefined1 *)&local_28[1].fts_cycle" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_28[1].fts_cycle" & (field_expression "local_28[1].fts_cycle" (subscript_expression "local_28[1]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "local_28->fts_namelen = 0;" (assignment_expression "local_28->fts_namelen = 0" (field_expression "local_28->fts_namelen" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_28->fts_fts = sp;" (assignment_expression "local_28->fts_fts = sp" (field_expression "local_28->fts_fts" identifier -> field_identifier) = identifier) ;) (expression_statement "local_28->fts_path = pcVar3;" (assignment_expression "local_28->fts_path = pcVar3" (field_expression "local_28->fts_path" identifier -> field_identifier) = identifier) ;) (expression_statement "local_28->fts_errno = 0;" (assignment_expression "local_28->fts_errno = 0" (field_expression "local_28->fts_errno" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_28->fts_dirp = (DIR *)0x0;" (assignment_expression "local_28->fts_dirp = (DIR *)0x0" (field_expression "local_28->fts_dirp" identifier -> field_identifier) = (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28->fts_flags = 0;" (assignment_expression "local_28->fts_flags = 0" (field_expression "local_28->fts_flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_28->fts_instr = 3;" (assignment_expression "local_28->fts_instr = 3" (field_expression "local_28->fts_instr" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_28->fts_number = 0;" (assignment_expression "local_28->fts_number = 0" (field_expression "local_28->fts_number" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_28->fts_pointer = (void *)0x0;" (assignment_expression "local_28->fts_pointer = (void *)0x0" (field_expression "local_28->fts_pointer" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28->fts_level = -1;" (assignment_expression "local_28->fts_level = -1" (field_expression "local_28->fts_level" identifier -> field_identifier) = number_literal) ;) (expression_statement "local_28->fts_n_dirs_remaining = 0xffffffff;" (assignment_expression "local_28->fts_n_dirs_remaining = 0xffffffff" (field_expression "local_28->fts_n_dirs_remaining" identifier -> field_identifier) = number_literal) ;) (if_statement "if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000184a0;" 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_000184a0;" goto statement_identifier ;)) (expression_statement "local_22 = 1;" (assignment_expression "local_22 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000181fa:\n      local_20 = (FTSENT *)0x0;" 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 "local_30 = (_ftsent *)0x0;" (assignment_expression "local_30 = (_ftsent *)0x0" identifier = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      } while (__s != (char *)0x0);" do (compound_statement "{\n        sVar2 = strlen(__s);\n        if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        p = (FTSENT *)malloc(__size);\n        if (p == (FTSENT *)0x0) goto LAB_00018524;\n        memcpy(p + 1,__s,sVar2);\n        *(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;\n        p->fts_namelen = sVar2;\n        p->fts_fts = sp;\n        pcVar3 = sp->fts_path;\n        p->fts_errno = 0;\n        p->fts_path = pcVar3;\n        p->fts_dirp = (DIR *)0x0;\n        p->fts_parent = local_28;\n        p->fts_flags = 0;\n        p->fts_instr = 3;\n        p->fts_number = 0;\n        p->fts_pointer = (void *)0x0;\n        p->fts_level = 0;\n        p->fts_accpath = (char *)(p + 1);\n        p_Var4 = p;\n        if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }\n        local_20 = p;\n        local_30 = p_Var4;\n        local_38 = local_38 + 1;\n        __s = argv[local_38];\n      }" { (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if ((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }\n        else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }" if (parenthesized_expression "((sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0))" ( (binary_expression "(sVar2 < 3) || ((((byte)((uint)options >> 0xc) ^ 1) & 1) == 0)" (parenthesized_expression "(sVar2 < 3)" ( (binary_expression "sVar2 < 3" identifier < number_literal) )) || (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) ))) )) (compound_statement "{\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }" { (expression_statement "__size = sVar2 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar2 + 0xa8 & 0xfffffffc" identifier = (binary_expression "sVar2 + 0xa8 & 0xfffffffc" (binary_expression "sVar2 + 0xa8" identifier + number_literal) & number_literal)) ;) }) (else_clause "else if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }" else (if_statement "if (__s[sVar2 - 1] == '/') {\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }" if (parenthesized_expression "(__s[sVar2 - 1] == '/')" ( (binary_expression "__s[sVar2 - 1] == '/'" (subscript_expression "__s[sVar2 - 1]" identifier [ (binary_expression "sVar2 - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n          do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);\n          __size = 0xa8;\n        }" { (do_statement "do {\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          } while (sVar2 != 1);" do (compound_statement "{\n            if (__s[sVar2 - 2] != '/') goto LAB_0001833c;\n            sVar2 = sVar2 - 1;\n          }" { (if_statement "if (__s[sVar2 - 2] != '/') goto LAB_0001833c;" if (parenthesized_expression "(__s[sVar2 - 2] != '/')" ( (binary_expression "__s[sVar2 - 2] != '/'" (subscript_expression "__s[sVar2 - 2]" identifier [ (binary_expression "sVar2 - 2" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001833c;" goto statement_identifier ;)) (expression_statement "sVar2 = sVar2 - 1;" (assignment_expression "sVar2 = sVar2 - 1" identifier = (binary_expression "sVar2 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(sVar2 != 1)" ( (binary_expression "sVar2 != 1" identifier != number_literal) )) ;) (expression_statement "__size = 0xa8;" (assignment_expression "__size = 0xa8" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }" else (compound_statement "{\nLAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;\n        }" { (labeled_statement "LAB_0001833c:\n          __size = sVar2 + 0xa8 & 0xfffffffc;" statement_identifier : (expression_statement "__size = sVar2 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar2 + 0xa8 & 0xfffffffc" identifier = (binary_expression "sVar2 + 0xa8 & 0xfffffffc" (binary_expression "sVar2 + 0xa8" identifier + number_literal) & number_literal)) ;)) }))))) (expression_statement "p = (FTSENT *)malloc(__size);" (assignment_expression "p = (FTSENT *)malloc(__size)" identifier = (cast_expression "(FTSENT *)malloc(__size)" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier ))))) ;) (if_statement "if (p == (FTSENT *)0x0) goto LAB_00018524;" if (parenthesized_expression "(p == (FTSENT *)0x0)" ( (binary_expression "p == (FTSENT *)0x0" identifier == (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00018524;" goto statement_identifier ;)) (expression_statement "memcpy(p + 1,__s,sVar2);" (call_expression "memcpy(p + 1,__s,sVar2)" identifier (argument_list "(p + 1,__s,sVar2)" ( (binary_expression "p + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0;" (assignment_expression "*(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44)) = 0" (pointer_expression "*(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44))" * (cast_expression "(undefined1 *)((int)p[1].fts_statp + (sVar2 - 0x44))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p[1].fts_statp + (sVar2 - 0x44))" ( (binary_expression "(int)p[1].fts_statp + (sVar2 - 0x44)" (cast_expression "(int)p[1].fts_statp" ( (type_descriptor "int" primitive_type) ) (field_expression "p[1].fts_statp" (subscript_expression "p[1]" identifier [ number_literal ]) . field_identifier)) + (parenthesized_expression "(sVar2 - 0x44)" ( (binary_expression "sVar2 - 0x44" identifier - number_literal) ))) )))) = number_literal) ;) (expression_statement "p->fts_namelen = sVar2;" (assignment_expression "p->fts_namelen = sVar2" (field_expression "p->fts_namelen" identifier -> field_identifier) = identifier) ;) (expression_statement "p->fts_fts = sp;" (assignment_expression "p->fts_fts = sp" (field_expression "p->fts_fts" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar3 = sp->fts_path;" (assignment_expression "pcVar3 = sp->fts_path" identifier = (field_expression "sp->fts_path" identifier -> field_identifier)) ;) (expression_statement "p->fts_errno = 0;" (assignment_expression "p->fts_errno = 0" (field_expression "p->fts_errno" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->fts_path = pcVar3;" (assignment_expression "p->fts_path = pcVar3" (field_expression "p->fts_path" identifier -> field_identifier) = identifier) ;) (expression_statement "p->fts_dirp = (DIR *)0x0;" (assignment_expression "p->fts_dirp = (DIR *)0x0" (field_expression "p->fts_dirp" identifier -> field_identifier) = (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->fts_parent = local_28;" (assignment_expression "p->fts_parent = local_28" (field_expression "p->fts_parent" identifier -> field_identifier) = identifier) ;) (expression_statement "p->fts_flags = 0;" (assignment_expression "p->fts_flags = 0" (field_expression "p->fts_flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->fts_instr = 3;" (assignment_expression "p->fts_instr = 3" (field_expression "p->fts_instr" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->fts_number = 0;" (assignment_expression "p->fts_number = 0" (field_expression "p->fts_number" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->fts_pointer = (void *)0x0;" (assignment_expression "p->fts_pointer = (void *)0x0" (field_expression "p->fts_pointer" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->fts_level = 0;" (assignment_expression "p->fts_level = 0" (field_expression "p->fts_level" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->fts_accpath = (char *)(p + 1);" (assignment_expression "p->fts_accpath = (char *)(p + 1)" (field_expression "p->fts_accpath" identifier -> field_identifier) = (cast_expression "(char *)(p + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p + 1)" ( (binary_expression "p + 1" identifier + number_literal) )))) ;) (expression_statement "p_Var4 = p;" (assignment_expression "p_Var4 = p" identifier = identifier) ;) (if_statement "if ((local_30 == (_ftsent *)0x0) || (local_22 == 0)) {\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }" if (parenthesized_expression "((local_30 == (_ftsent *)0x0) || (local_22 == 0))" ( (binary_expression "(local_30 == (_ftsent *)0x0) || (local_22 == 0)" (parenthesized_expression "(local_30 == (_ftsent *)0x0)" ( (binary_expression "local_30 == (_ftsent *)0x0" identifier == (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(local_22 == 0)" ( (binary_expression "local_22 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          uVar1 = fts_stat(sp,p,false);\n          p->fts_info = uVar1;\n          if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;\n          p->fts_link = (_ftsent *)0x0;\n          if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;\n        }" { (expression_statement "uVar1 = fts_stat(sp,p,false);" (assignment_expression "uVar1 = fts_stat(sp,p,false)" identifier = (call_expression "fts_stat(sp,p,false)" identifier (argument_list "(sp,p,false)" ( identifier , identifier , false )))) ;) (expression_statement "p->fts_info = uVar1;" (assignment_expression "p->fts_info = uVar1" (field_expression "p->fts_info" identifier -> field_identifier) = identifier) ;) (if_statement "if (compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) goto LAB_000182f0;" 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_000182f0;" goto statement_identifier ;)) (expression_statement "p->fts_link = (_ftsent *)0x0;" (assignment_expression "p->fts_link = (_ftsent *)0x0" (field_expression "p->fts_link" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (local_30 != (_ftsent *)0x0) goto LAB_0001850f;" if (parenthesized_expression "(local_30 != (_ftsent *)0x0)" ( (binary_expression "local_30 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001850f;" goto statement_identifier ;)) }) (else_clause "else {\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }" else (compound_statement "{\n          *(undefined4 *)&p->fts_statp[0].st_size = 2;\n          p->fts_info = 0xb;\n          *(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;\n          if (compar == (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) {\n            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }\n        }" { (expression_statement "*(undefined4 *)&p->fts_statp[0].st_size = 2;" (assignment_expression "*(undefined4 *)&p->fts_statp[0].st_size = 2" (pointer_expression "*(undefined4 *)&p->fts_statp[0].st_size" * (cast_expression "(undefined4 *)&p->fts_statp[0].st_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->fts_statp[0].st_size" & (field_expression "p->fts_statp[0].st_size" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "p->fts_info = 0xb;" (assignment_expression "p->fts_info = 0xb" (field_expression "p->fts_info" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->fts_statp[0].st_size + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->fts_statp[0].st_size + 4)" * (cast_expression "(undefined4 *)((int)&p->fts_statp[0].st_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->fts_statp[0].st_size + 4)" ( (binary_expression "(int)&p->fts_statp[0].st_size + 4" (cast_expression "(int)&p->fts_statp[0].st_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->fts_statp[0].st_size" & (field_expression "p->fts_statp[0].st_size" (subscript_expression "p->fts_statp[0]" (field_expression "p->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            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }\n          else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = 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            p->fts_link = (_ftsent *)0x0;\nLAB_0001850f:\n            local_20->fts_link = p;\n            p_Var4 = local_30;\n          }" { (expression_statement "p->fts_link = (_ftsent *)0x0;" (assignment_expression "p->fts_link = (_ftsent *)0x0" (field_expression "p->fts_link" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0001850f:\n            local_20->fts_link = p;" statement_identifier : (expression_statement "local_20->fts_link = p;" (assignment_expression "local_20->fts_link = p" (field_expression "local_20->fts_link" identifier -> field_identifier) = identifier) ;)) (expression_statement "p_Var4 = local_30;" (assignment_expression "p_Var4 = local_30" identifier = identifier) ;) }) (else_clause "else {\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }" else (compound_statement "{\nLAB_000182f0:\n            p->fts_link = local_30;\n            p = local_20;\n          }" { (labeled_statement "LAB_000182f0:\n            p->fts_link = local_30;" statement_identifier : (expression_statement "p->fts_link = local_30;" (assignment_expression "p->fts_link = local_30" (field_expression "p->fts_link" identifier -> field_identifier) = identifier) ;)) (expression_statement "p = local_20;" (assignment_expression "p = local_20" identifier = identifier) ;) }))) }))) (expression_statement "local_20 = p;" (assignment_expression "local_20 = p" identifier = identifier) ;) (expression_statement "local_30 = p_Var4;" (assignment_expression "local_30 = p_Var4" identifier = identifier) ;) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" identifier = (binary_expression "local_38 + 1" identifier + number_literal)) ;) (expression_statement "__s = argv[local_38];" (assignment_expression "__s = argv[local_38]" identifier = (subscript_expression "argv[local_38]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (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 < local_38)) {\n        local_30 = fts_sort(sp,local_30,local_38);\n      }" if (parenthesized_expression "((compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38))" ( (binary_expression "(compar != (_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0) && (1 < local_38)" (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 < local_38)" ( (binary_expression "1 < local_38" number_literal < identifier) ))) )) (compound_statement "{\n        local_30 = fts_sort(sp,local_30,local_38);\n      }" { (expression_statement "local_30 = fts_sort(sp,local_30,local_38);" (assignment_expression "local_30 = fts_sort(sp,local_30,local_38)" identifier = (call_expression "fts_sort(sp,local_30,local_38)" identifier (argument_list "(sp,local_30,local_38)" ( identifier , identifier , identifier )))) ;) })) (goto_statement "goto LAB_00018370;" goto statement_identifier ;) })) }))) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (labeled_statement "LAB_0001858e:\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 "undefined4 * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" type_identifier (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  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "undefined2 uVar3;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "DIR *__dirp;" type_identifier (pointer_declarator "*__dirp" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint local_38;" type_identifier identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "void *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "byte local_22;" type_identifier identifier ;) (declaration "void *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (if_statement "if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)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    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }" { (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar8 = 0x16;" (assignment_expression "*piVar8 = 0x16" (pointer_expression "*piVar8" * identifier) = number_literal) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "__ptr = (undefined4 *)calloc(0x58,1);" (assignment_expression "__ptr = (undefined4 *)calloc(0x58,1)" identifier = (cast_expression "(undefined4 *)calloc(0x58,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(0x58,1)" identifier (argument_list "(0x58,1)" ( number_literal , number_literal ))))) ;) (if_statement "if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(__ptr == (undefined4 *)0x0)" ( (binary_expression "__ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "__ptr[7] = 0xffffff9c;" (assignment_expression "__ptr[7] = 0xffffff9c" (subscript_expression "__ptr[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[10] = param_3;" (assignment_expression "__ptr[10] = param_3" (subscript_expression "__ptr[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar10 = param_2 & 0xfffffdff | 4;" (assignment_expression "uVar10 = 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    uVar10 = 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    uVar10 = param_2;\n  }" { (expression_statement "uVar10 = param_2;" (assignment_expression "uVar10 = param_2" identifier = identifier) ;) })) (expression_statement "__ptr[0xb] = uVar10;" (assignment_expression "__ptr[0xb] = uVar10" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar4 = (char *)*param_1;" (assignment_expression "pcVar4 = (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 (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar10 = 0x1000;\n  }" { (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" identifier = number_literal) ;) }) (else_clause "else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" else (compound_statement "{\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" { (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "piVar8 = param_1;" (assignment_expression "piVar8 = param_1" identifier = identifier) ;) (do_statement "do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);" do (compound_statement "{\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    }" { (expression_statement "sVar5 = strlen(pcVar4);" (assignment_expression "sVar5 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }" if (parenthesized_expression "(uVar10 < sVar5)" ( (binary_expression "uVar10 < sVar5" identifier < identifier) )) (compound_statement "{\n        uVar10 = sVar5;\n      }" { (expression_statement "uVar10 = sVar5;" (assignment_expression "uVar10 = sVar5" identifier = identifier) ;) })) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = (char *)*piVar8;" (assignment_expression "pcVar4 = (char *)*piVar8" identifier = (cast_expression "(char *)*piVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) ;) }) while (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (if_statement "if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }" if (parenthesized_expression "(uVar10 < 0x1000)" ( (binary_expression "uVar10 < 0x1000" identifier < number_literal) )) (compound_statement "{\n      uVar10 = 0x1000;\n    }" { (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" identifier = number_literal) ;) })) }))) (expression_statement "uVar10 = __ptr[8] + 0x100 + uVar10;" (assignment_expression "uVar10 = __ptr[8] + 0x100 + uVar10" identifier = (binary_expression "__ptr[8] + 0x100 + uVar10" (binary_expression "__ptr[8] + 0x100" (subscript_expression "__ptr[8]" identifier [ number_literal ]) + number_literal) + identifier)) ;) (if_statement "if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }" if (parenthesized_expression "(uVar10 < (uint)__ptr[8])" ( (binary_expression "uVar10 < (uint)__ptr[8]" identifier < (cast_expression "(uint)__ptr[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "__ptr[8]" identifier [ number_literal ]))) )) (compound_statement "{\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }" { (expression_statement "free((void *)__ptr[5]);" (call_expression "free((void *)__ptr[5])" identifier (argument_list "((void *)__ptr[5])" ( (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ])) ))) ;) (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar8 = 0x24;" (assignment_expression "*piVar8 = 0x24" (pointer_expression "*piVar8" * identifier) = number_literal) ;) (goto_statement "goto LAB_0001858e;" goto statement_identifier ;) })) (expression_statement "__ptr[8] = uVar10;" (assignment_expression "__ptr[8] = uVar10" (subscript_expression "__ptr[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pvVar6 = realloc((void *)__ptr[5],uVar10);" (assignment_expression "pvVar6 = realloc((void *)__ptr[5],uVar10)" identifier = (call_expression "realloc((void *)__ptr[5],uVar10)" identifier (argument_list "((void *)__ptr[5],uVar10)" ( (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }" { (expression_statement "free((void *)__ptr[5]);" (call_expression "free((void *)__ptr[5])" identifier (argument_list "((void *)__ptr[5])" ( (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ])) ))) ;) (goto_statement "goto LAB_0001858e;" goto statement_identifier ;) })) (expression_statement "__ptr[5] = pvVar6;" (assignment_expression "__ptr[5] = pvVar6" (subscript_expression "__ptr[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar4 = (char *)*param_1;" (assignment_expression "pcVar4 = (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 (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }" { (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }" { (labeled_statement "LAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;" statement_identifier : (expression_statement "local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;" (assignment_expression "local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1" identifier = (binary_expression "(byte)((uint)__ptr[0xb] >> 10) & 1" (call_expression "(byte)((uint)__ptr[0xb] >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)__ptr[0xb] >> 10)" ( (binary_expression "(uint)__ptr[0xb] >> 10" (cast_expression "(uint)__ptr[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "__ptr[0xb]" identifier [ number_literal ])) >> number_literal) ))) & number_literal)) ;)) (if_statement "if (pcVar4 != (char *)0x0) goto LAB_000181fa;" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000181fa;" goto statement_identifier ;)) })) (expression_statement "local_30 = (void *)0x0;" (assignment_expression "local_30 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00018370:\n    pvVar6 = malloc(0xa8);" statement_identifier : (expression_statement "pvVar6 = malloc(0xa8);" (assignment_expression "pvVar6 = malloc(0xa8)" identifier = (call_expression "malloc(0xa8)" identifier (argument_list "(0xa8)" ( number_literal )))) ;)) (if_statement "if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *__ptr = 0;\n    }" { (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" * identifier) = number_literal) ;) }) (else_clause "else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" else (compound_statement "{\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" { (expression_statement "*(undefined1 *)((int)pvVar6 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + 0xa4)" * (cast_expression "(undefined1 *)((int)pvVar6 + 0xa4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xa4)" ( (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x34)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x34)" ( (binary_expression "(int)pvVar6 + 0x34" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = __ptr[5];" (assignment_expression "uVar1 = __ptr[5]" identifier = (subscript_expression "__ptr[5]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)pvVar6 + 0x2c)" * (cast_expression "(undefined4 **)((int)pvVar6 + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x2c)" ( (binary_expression "(int)pvVar6 + 0x2c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x20)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x20)" ( (binary_expression "(int)pvVar6 + 0x20" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x1c)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x1c)" ( (binary_expression "(int)pvVar6 + 0x1c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0xc)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xc)" ( (binary_expression "(int)pvVar6 + 0xc" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x10)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x10)" ( (binary_expression "(int)pvVar6 + 0x10" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x14)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x14)" ( (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*__ptr = pvVar6;" (assignment_expression "*__ptr = pvVar6" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "*(void **)((int)pvVar6 + 8) = local_30;" (assignment_expression "*(void **)((int)pvVar6 + 8) = local_30" (pointer_expression "*(void **)((int)pvVar6 + 8)" * (cast_expression "(void **)((int)pvVar6 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x3c) = 9;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x3c) = 9" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x3c)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3c)" ( (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x40) = 3;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x40) = 3" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x40)" * (cast_expression "(undefined2 *)((int)pvVar6 + 0x40)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x40)" ( (binary_expression "(int)pvVar6 + 0x40" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x30) = 1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x30) = 1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x30)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x30)" ( (binary_expression "(int)pvVar6 + 0x30" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" if (parenthesized_expression "((__ptr[0xb] & 0x102) == 0)" ( (binary_expression "(__ptr[0xb] & 0x102) == 0" (parenthesized_expression "(__ptr[0xb] & 0x102)" ( (binary_expression "__ptr[0xb] & 0x102" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }" { (expression_statement "pvVar6 = malloc(0x1c);" (assignment_expression "pvVar6 = malloc(0x1c)" identifier = (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "__ptr[0xd] = pvVar6;" (assignment_expression "__ptr[0xd] = pvVar6" (subscript_expression "__ptr[0xd]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }" if (parenthesized_expression "(pvVar6 != (void *)0x0)" ( (binary_expression "pvVar6 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }" { (expression_statement "FUN_0001b070(pvVar6);" (call_expression "FUN_0001b070(pvVar6)" identifier (argument_list "(pvVar6)" ( identifier ))) ;) (goto_statement "goto LAB_00018416;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" else (compound_statement "{\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" { (expression_statement "iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);" (assignment_expression "iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" identifier = (call_expression "FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" identifier (argument_list "(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "__ptr[0xd] = iVar7;" (assignment_expression "__ptr[0xd] = iVar7" (subscript_expression "__ptr[0xd]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }" { (labeled_statement "LAB_00018416:\n          uVar10 = __ptr[0xb];" statement_identifier : (expression_statement "uVar10 = __ptr[0xb];" (assignment_expression "uVar10 = __ptr[0xb]" identifier = (subscript_expression "__ptr[0xb]" identifier [ number_literal ])) ;)) (if_statement "if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }" if (parenthesized_expression "((uVar10 & 0x204) == 0)" ( (binary_expression "(uVar10 & 0x204) == 0" (parenthesized_expression "(uVar10 & 0x204)" ( (binary_expression "uVar10 & 0x204" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }" { (expression_statement "uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;" (assignment_expression "uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900" identifier = (binary_expression "(uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900" (binary_expression "(uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7" (binary_expression "(uVar10 & 0x10) << 0xd" (parenthesized_expression "(uVar10 & 0x10)" ( (binary_expression "uVar10 & 0x10" identifier & number_literal) )) << number_literal) | (binary_expression "(uVar10 & 0x800) << 7" (parenthesized_expression "(uVar10 & 0x800)" ( (binary_expression "uVar10 & 0x800" identifier & number_literal) )) << number_literal)) | number_literal)) ;) (if_statement "if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" if (parenthesized_expression "((uVar10 & 0x200) == 0)" ( (binary_expression "(uVar10 & 0x200) == 0" (parenthesized_expression "(uVar10 & 0x200)" ( (binary_expression "uVar10 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }" { (expression_statement "iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);" (assignment_expression "iVar7 = FUN_0001b190(&DAT_0001f827,uVar9)" identifier = (call_expression "FUN_0001b190(&DAT_0001f827,uVar9)" identifier (argument_list "(&DAT_0001f827,uVar9)" ( (pointer_expression "&DAT_0001f827" & identifier) , identifier )))) ;) }) (else_clause "else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" else (compound_statement "{\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" { (expression_statement "iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);" (assignment_expression "iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9)" identifier = (call_expression "FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9)" identifier (argument_list "(__ptr[7],&DAT_0001f827,uVar9)" ( (subscript_expression "__ptr[7]" identifier [ number_literal ]) , (pointer_expression "&DAT_0001f827" & identifier) , identifier )))) ;) }))) (expression_statement "__ptr[6] = iVar7;" (assignment_expression "__ptr[6] = iVar7" (subscript_expression "__ptr[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }" { (expression_statement "__ptr[0xb] = __ptr[0xb] | 4;" (assignment_expression "__ptr[0xb] = __ptr[0xb] | 4" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) = (binary_expression "__ptr[0xb] | 4" (subscript_expression "__ptr[0xb]" identifier [ number_literal ]) | number_literal)) ;) })) })) (expression_statement "FUN_0001c510(__ptr + 0xe,0xffffffff);" (call_expression "FUN_0001c510(__ptr + 0xe,0xffffffff)" identifier (argument_list "(__ptr + 0xe,0xffffffff)" ( (binary_expression "__ptr + 0xe" identifier + number_literal) , number_literal ))) ;) (return_statement "return __ptr;" return identifier ;) })) }))) }))) (labeled_statement "LAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" statement_identifier : (if_statement "if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" { (expression_statement "__dirp = *(DIR **)((int)local_30 + 0xc);" (assignment_expression "__dirp = *(DIR **)((int)local_30 + 0xc)" identifier = (pointer_expression "*(DIR **)((int)local_30 + 0xc)" * (cast_expression "(DIR **)((int)local_30 + 0xc)" ( (type_descriptor "DIR **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 0xc)" ( (binary_expression "(int)local_30 + 0xc" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pvVar6 = *(void **)((int)local_30 + 8);" (assignment_expression "pvVar6 = *(void **)((int)local_30 + 8)" identifier = (pointer_expression "*(void **)((int)local_30 + 8)" * (cast_expression "(void **)((int)local_30 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 8)" ( (binary_expression "(int)local_30 + 8" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (__dirp == (DIR *)0x0) goto LAB_0001855c;" if (parenthesized_expression "(__dirp == (DIR *)0x0)" ( (binary_expression "__dirp == (DIR *)0x0" identifier == (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001855c;" goto statement_identifier ;)) (do_statement "do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );" do (compound_statement "{\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      }" { (expression_statement "closedir(__dirp);" (call_expression "closedir(__dirp)" identifier (argument_list "(__dirp)" ( identifier ))) ;) (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) (while_statement "while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }" { (if_statement "if (local_30 == (void *)0x0) goto LAB_0001856c;" if (parenthesized_expression "(local_30 == (void *)0x0)" ( (binary_expression "local_30 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001856c;" goto statement_identifier ;)) (expression_statement "__dirp = *(DIR **)((int)local_30 + 0xc);" (assignment_expression "__dirp = *(DIR **)((int)local_30 + 0xc)" identifier = (pointer_expression "*(DIR **)((int)local_30 + 0xc)" * (cast_expression "(DIR **)((int)local_30 + 0xc)" ( (type_descriptor "DIR **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 0xc)" ( (binary_expression "(int)local_30 + 0xc" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pvVar6 = *(void **)((int)local_30 + 8);" (assignment_expression "pvVar6 = *(void **)((int)local_30 + 8)" identifier = (pointer_expression "*(void **)((int)local_30 + 8)" * (cast_expression "(void **)((int)local_30 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_30 + 8)" ( (binary_expression "(int)local_30 + 8" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (__dirp != (DIR *)0x0) break;" if (parenthesized_expression "(__dirp != (DIR *)0x0)" ( (binary_expression "__dirp != (DIR *)0x0" identifier != (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_0001855c:\n          free(local_30);" statement_identifier : (expression_statement "free(local_30);" (call_expression "free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (labeled_statement "LAB_0001856c:\n    free(local_28);" statement_identifier : (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;)) (expression_statement "pvVar6 = (void *)__ptr[5];" (assignment_expression "pvVar6 = (void *)__ptr[5]" identifier = (cast_expression "(void *)__ptr[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[5]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" else (compound_statement "{\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" { (expression_statement "local_28 = malloc(0xa8);" (assignment_expression "local_28 = malloc(0xa8)" identifier = (call_expression "malloc(0xa8)" identifier (argument_list "(0xa8)" ( number_literal )))) ;) (if_statement "if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }" if (parenthesized_expression "(local_28 != (void *)0x0)" ( (binary_expression "local_28 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }" { (expression_statement "*(undefined1 *)((int)local_28 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)local_28 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)local_28 + 0xa4)" * (cast_expression "(undefined1 *)((int)local_28 + 0xa4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0xa4)" ( (binary_expression "(int)local_28 + 0xa4" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x34)" * (cast_expression "(undefined4 *)((int)local_28 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x34)" ( (binary_expression "(int)local_28 + 0x34" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 **)((int)local_28 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)local_28 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)local_28 + 0x2c)" * (cast_expression "(undefined4 **)((int)local_28 + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_28 + 0x2c)" ( (binary_expression "(int)local_28 + 0x2c" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(void **)((int)local_28 + 0x1c) = pvVar6;" (assignment_expression "*(void **)((int)local_28 + 0x1c) = pvVar6" (pointer_expression "*(void **)((int)local_28 + 0x1c)" * (cast_expression "(void **)((int)local_28 + 0x1c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_28 + 0x1c)" ( (binary_expression "(int)local_28 + 0x1c" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x20)" * (cast_expression "(undefined4 *)((int)local_28 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x20)" ( (binary_expression "(int)local_28 + 0x20" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0xc)" * (cast_expression "(undefined4 *)((int)local_28 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0xc)" ( (binary_expression "(int)local_28 + 0xc" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x3e) = 0x30000;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x3e) = 0x30000" (pointer_expression "*(undefined4 *)((int)local_28 + 0x3e)" * (cast_expression "(undefined4 *)((int)local_28 + 0x3e)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x3e)" ( (binary_expression "(int)local_28 + 0x3e" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x10)" * (cast_expression "(undefined4 *)((int)local_28 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x10)" ( (binary_expression "(int)local_28 + 0x10" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x14)" * (cast_expression "(undefined4 *)((int)local_28 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x14)" ( (binary_expression "(int)local_28 + 0x14" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x30) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_28 + 0x30)" * (cast_expression "(undefined4 *)((int)local_28 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x30)" ( (binary_expression "(int)local_28 + 0x30" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_28 + 0x38)" * (cast_expression "(undefined4 *)((int)local_28 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 0x38)" ( (binary_expression "(int)local_28 + 0x38" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 != 0) goto LAB_000184a0;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000184a0;" goto statement_identifier ;)) (expression_statement "local_22 = 1;" (assignment_expression "local_22 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000181fa:\n      local_20 = (void *)0x0;" statement_identifier : (expression_statement "local_20 = (void *)0x0;" (assignment_expression "local_20 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_30 = (void *)0x0;" (assignment_expression "local_30 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);" do (compound_statement "{\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      }" { (expression_statement "sVar5 = strlen(pcVar4);" (assignment_expression "sVar5 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" if (parenthesized_expression "((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0))" ( (binary_expression "(sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)" (parenthesized_expression "(sVar5 < 3)" ( (binary_expression "sVar5 < 3" identifier < number_literal) )) || (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) ))) )) (compound_statement "{\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" { (expression_statement "__size = sVar5 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar5 + 0xa8 & 0xfffffffc" identifier = (binary_expression "sVar5 + 0xa8 & 0xfffffffc" (binary_expression "sVar5 + 0xa8" identifier + number_literal) & number_literal)) ;) }) (else_clause "else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" else (if_statement "if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" if (parenthesized_expression "(pcVar4[sVar5 - 1] == '/')" ( (binary_expression "pcVar4[sVar5 - 1] == '/'" (subscript_expression "pcVar4[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }" { (do_statement "do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);" do (compound_statement "{\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          }" { (if_statement "if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;" if (parenthesized_expression "(pcVar4[sVar5 - 2] != '/')" ( (binary_expression "pcVar4[sVar5 - 2] != '/'" (subscript_expression "pcVar4[sVar5 - 2]" identifier [ (binary_expression "sVar5 - 2" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001833c;" goto statement_identifier ;)) (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 "__size = 0xa8;" (assignment_expression "__size = 0xa8" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" else (compound_statement "{\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" { (labeled_statement "LAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;" statement_identifier : (expression_statement "__size = sVar5 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar5 + 0xa8 & 0xfffffffc" identifier = (binary_expression "sVar5 + 0xa8 & 0xfffffffc" (binary_expression "sVar5 + 0xa8" identifier + number_literal) & number_literal)) ;)) }))))) (expression_statement "pvVar6 = malloc(__size);" (assignment_expression "pvVar6 = malloc(__size)" identifier = (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) goto LAB_00018524;" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00018524;" goto statement_identifier ;)) (expression_statement "memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);" (call_expression "memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5)" identifier (argument_list "((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5)" ( (cast_expression "(void *)((int)pvVar6 + 0xa4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xa4)" ( (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4)" * (cast_expression "(undefined1 *)((int)pvVar6 + sVar5 + 0xa4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + sVar5 + 0xa4)" ( (binary_expression "(int)pvVar6 + sVar5 + 0xa4" (binary_expression "(int)pvVar6 + sVar5" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(size_t *)((int)pvVar6 + 0x34) = sVar5;" (assignment_expression "*(size_t *)((int)pvVar6 + 0x34) = sVar5" (pointer_expression "*(size_t *)((int)pvVar6 + 0x34)" * (cast_expression "(size_t *)((int)pvVar6 + 0x34)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x34)" ( (binary_expression "(int)pvVar6 + 0x34" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)pvVar6 + 0x2c)" * (cast_expression "(undefined4 **)((int)pvVar6 + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x2c)" ( (binary_expression "(int)pvVar6 + 0x2c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = __ptr[5];" (assignment_expression "uVar1 = __ptr[5]" identifier = (subscript_expression "__ptr[5]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x20)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x20)" ( (binary_expression "(int)pvVar6 + 0x20" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x1c)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x1c)" ( (binary_expression "(int)pvVar6 + 0x1c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0xc)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xc)" ( (binary_expression "(int)pvVar6 + 0xc" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)((int)pvVar6 + 4) = local_28;" (assignment_expression "*(void **)((int)pvVar6 + 4) = local_28" (pointer_expression "*(void **)((int)pvVar6 + 4)" * (cast_expression "(void **)((int)pvVar6 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x3e)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x3e)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3e)" ( (binary_expression "(int)pvVar6 + 0x3e" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x10)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x10)" ( (binary_expression "(int)pvVar6 + 0x10" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x14)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x14)" ( (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x30) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x30) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x30)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x30)" ( (binary_expression "(int)pvVar6 + 0x30" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);" (assignment_expression "*(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4)" (pointer_expression "*(void **)((int)pvVar6 + 0x18)" * (cast_expression "(void **)((int)pvVar6 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x18)" ( (binary_expression "(int)pvVar6 + 0x18" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(void *)((int)pvVar6 + 0xa4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0xa4)" ( (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "pvVar2 = pvVar6;" (assignment_expression "pvVar2 = pvVar6" identifier = identifier) ;) (if_statement "if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" if (parenthesized_expression "((local_30 == (void *)0x0) || (local_22 == 0))" ( (binary_expression "(local_30 == (void *)0x0) || (local_22 == 0)" (parenthesized_expression "(local_30 == (void *)0x0)" ( (binary_expression "local_30 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(local_22 == 0)" ( (binary_expression "local_22 == 0" identifier == number_literal) ))) )) (compound_statement "{\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }" { (expression_statement "uVar3 = FUN_000168b0();" (assignment_expression "uVar3 = FUN_000168b0()" identifier = (call_expression "FUN_000168b0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x3c) = uVar3" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x3c)" * (cast_expression "(undefined2 *)((int)pvVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3c)" ( (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (param_3 != 0) goto LAB_000182f0;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000182f0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" * (cast_expression "(undefined4 *)((int)pvVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != (void *)0x0) goto LAB_0001850f;" if (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001850f;" goto statement_identifier ;)) }) (else_clause "else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" else (compound_statement "{\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" { (expression_statement "*(undefined4 *)((int)pvVar6 + 0x70) = 2;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x70) = 2" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x70)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x70)" ( (binary_expression "(int)pvVar6 + 0x70" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x3c) = 0xb" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x3c)" * (cast_expression "(undefined2 *)((int)pvVar6 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x3c)" ( (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x74)" * (cast_expression "(undefined4 *)((int)pvVar6 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 0x74)" ( (binary_expression "(int)pvVar6 + 0x74" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }" { (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" * (cast_expression "(undefined4 *)((int)pvVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;" statement_identifier : (expression_statement "*(void **)((int)local_20 + 8) = pvVar6;" (assignment_expression "*(void **)((int)local_20 + 8) = pvVar6" (pointer_expression "*(void **)((int)local_20 + 8)" * (cast_expression "(void **)((int)local_20 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)local_20 + 8)" ( (binary_expression "(int)local_20 + 8" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;)) (expression_statement "pvVar2 = local_30;" (assignment_expression "pvVar2 = local_30" identifier = identifier) ;) }) (else_clause "else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" else (compound_statement "{\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" { (labeled_statement "LAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;" statement_identifier : (expression_statement "*(void **)((int)pvVar6 + 8) = local_30;" (assignment_expression "*(void **)((int)pvVar6 + 8) = local_30" (pointer_expression "*(void **)((int)pvVar6 + 8)" * (cast_expression "(void **)((int)pvVar6 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;)) (expression_statement "pvVar6 = local_20;" (assignment_expression "pvVar6 = local_20" identifier = identifier) ;) }))) }))) (expression_statement "local_20 = pvVar6;" (assignment_expression "local_20 = pvVar6" identifier = identifier) ;) (expression_statement "local_30 = pvVar2;" (assignment_expression "local_30 = pvVar2" identifier = identifier) ;) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" identifier = (binary_expression "local_38 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = (char *)param_1[local_38];" (assignment_expression "pcVar4 = (char *)param_1[local_38]" identifier = (cast_expression "(char *)param_1[local_38]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[local_38]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }" if (parenthesized_expression "((param_3 != 0) && (1 < local_38))" ( (binary_expression "(param_3 != 0) && (1 < local_38)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(1 < local_38)" ( (binary_expression "1 < local_38" number_literal < identifier) ))) )) (compound_statement "{\n        local_30 = (void *)FUN_00016a50();\n      }" { (expression_statement "local_30 = (void *)FUN_00016a50();" (assignment_expression "local_30 = (void *)FUN_00016a50()" identifier = (cast_expression "(void *)FUN_00016a50()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00016a50()" identifier (argument_list "()" ( ))))) ;) })) (goto_statement "goto LAB_00018370;" goto statement_identifier ;) })) }))) (expression_statement "free(pvVar6);" (call_expression "free(pvVar6)" identifier (argument_list "(pvVar6)" ( identifier ))) ;) (labeled_statement "LAB_0001858e:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (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 (pointer_declarator * 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 ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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) ;) (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) ;) }) (else_clause else (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 = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (goto_statement goto statement_identifier ;) })) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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)) ;)) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;)) (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 * IDENT) = LIT) ;) }) (else_clause else (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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) )))) = IDENT) ;) (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 (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 * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (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 ( LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , IDENT )))) ;) }))) (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 : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) while (parenthesized_expression ( BOOL )) ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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 (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 (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 IDENT < LIT) )) || (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) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) }) (else_clause else (if_statement if (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 ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;)) }))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + 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) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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 (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (cast_expression ( (type_descriptor TYPE) ) 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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = 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 ]))) ;) }) 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 "undefined4 * fts_open(int *param_1,uint param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (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  undefined4 uVar1;\n  void *pvVar2;\n  undefined2 uVar3;\n  undefined4 *__ptr;\n  char *pcVar4;\n  size_t sVar5;\n  void *pvVar6;\n  size_t __size;\n  int iVar7;\n  DIR *__dirp;\n  int *piVar8;\n  uint uVar9;\n  uint uVar10;\n  uint local_38;\n  void *local_30;\n  void *local_28;\n  byte local_22;\n  void *local_20;\n  \n  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }\n  __ptr = (undefined4 *)calloc(0x58,1);\n  if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  __ptr[7] = 0xffffff9c;\n  __ptr[10] = param_3;\n  uVar10 = param_2 & 0xfffffdff | 4;\n  if ((param_2 & 2) == 0) {\n    uVar10 = param_2;\n  }\n  __ptr[0xb] = uVar10;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }\n  uVar10 = __ptr[8] + 0x100 + uVar10;\n  if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }\n  __ptr[8] = uVar10;\n  pvVar6 = realloc((void *)__ptr[5],uVar10);\n  if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }\n  __ptr[5] = pvVar6;\n  pcVar4 = (char *)*param_1;\n  if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }\n  free(pvVar6);\nLAB_0001858e:\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "undefined2 uVar3;" (type_identifier "undefined2") (identifier "uVar3") (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "void *pvVar6;" (primitive_type "void") (pointer_declarator "*pvVar6" (* "*") (identifier "pvVar6")) (; ";")) (declaration "size_t __size;" (primitive_type "size_t") (identifier "__size") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "DIR *__dirp;" (type_identifier "DIR") (pointer_declarator "*__dirp" (* "*") (identifier "__dirp")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint local_38;" (type_identifier "uint") (identifier "local_38") (; ";")) (declaration "void *local_30;" (primitive_type "void") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "void *local_28;" (primitive_type "void") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "byte local_22;" (type_identifier "byte") (identifier "local_22") (; ";")) (declaration "void *local_20;" (primitive_type "void") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (if_statement "if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {\n    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)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    piVar8 = __errno_location();\n    *piVar8 = 0x16;\n    return (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" (identifier "piVar8") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar8 = 0x16;" (assignment_expression "*piVar8 = 0x16" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (number_literal "0x16")) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "__ptr = (undefined4 *)calloc(0x58,1);" (assignment_expression "__ptr = (undefined4 *)calloc(0x58,1)" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)calloc(0x58,1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "calloc(0x58,1)" (identifier "calloc") (argument_list "(0x58,1)" (( "(") (number_literal "0x58") (, ",") (number_literal "1") () ")"))))) (; ";")) (if_statement "if (__ptr == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "(__ptr == (undefined4 *)0x0)" (( "(") (binary_expression "__ptr == (undefined4 *)0x0" (identifier "__ptr") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "__ptr[7] = 0xffffff9c;" (assignment_expression "__ptr[7] = 0xffffff9c" (subscript_expression "__ptr[7]" (identifier "__ptr") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0xffffff9c")) (; ";")) (expression_statement "__ptr[10] = param_3;" (assignment_expression "__ptr[10] = param_3" (subscript_expression "__ptr[10]" (identifier "__ptr") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar10 = param_2 & 0xfffffdff | 4;" (assignment_expression "uVar10 = param_2 & 0xfffffdff | 4" (identifier "uVar10") (= "=") (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    uVar10 = 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    uVar10 = param_2;\n  }" ({ "{") (expression_statement "uVar10 = param_2;" (assignment_expression "uVar10 = param_2" (identifier "uVar10") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "__ptr[0xb] = uVar10;" (assignment_expression "__ptr[0xb] = uVar10" (subscript_expression "__ptr[0xb]" (identifier "__ptr") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "pcVar4 = (char *)*param_1;" (assignment_expression "pcVar4 = (char *)*param_1" (identifier "pcVar4") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (pcVar4 == (char *)0x0) {\n    uVar10 = 0x1000;\n  }\n  else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" (if "if") (parenthesized_expression "(pcVar4 == (char *)0x0)" (( "(") (binary_expression "pcVar4 == (char *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar10 = 0x1000;\n  }" ({ "{") (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" (identifier "uVar10") (= "=") (number_literal "0x1000")) (; ";")) (} "}")) (else_clause "else {\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" (else "else") (compound_statement "{\n    uVar10 = 0;\n    piVar8 = param_1;\n    do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);\n    uVar10 = uVar10 + 1;\n    if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }\n  }" ({ "{") (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar8 = param_1;" (assignment_expression "piVar8 = param_1" (identifier "piVar8") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    } while (pcVar4 != (char *)0x0);" (do "do") (compound_statement "{\n      sVar5 = strlen(pcVar4);\n      if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }\n      piVar8 = piVar8 + 1;\n      pcVar4 = (char *)*piVar8;\n    }" ({ "{") (expression_statement "sVar5 = strlen(pcVar4);" (assignment_expression "sVar5 = strlen(pcVar4)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar4)" (identifier "strlen") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (if_statement "if (uVar10 < sVar5) {\n        uVar10 = sVar5;\n      }" (if "if") (parenthesized_expression "(uVar10 < sVar5)" (( "(") (binary_expression "uVar10 < sVar5" (identifier "uVar10") (< "<") (identifier "sVar5")) () ")")) (compound_statement "{\n        uVar10 = sVar5;\n      }" ({ "{") (expression_statement "uVar10 = sVar5;" (assignment_expression "uVar10 = sVar5" (identifier "uVar10") (= "=") (identifier "sVar5")) (; ";")) (} "}"))) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" (identifier "piVar8") (= "=") (binary_expression "piVar8 + 1" (identifier "piVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar4 = (char *)*piVar8;" (assignment_expression "pcVar4 = (char *)*piVar8" (identifier "pcVar4") (= "=") (cast_expression "(char *)*piVar8" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar8" (* "*") (identifier "piVar8")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" (identifier "uVar10") (= "=") (binary_expression "uVar10 + 1" (identifier "uVar10") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar10 < 0x1000) {\n      uVar10 = 0x1000;\n    }" (if "if") (parenthesized_expression "(uVar10 < 0x1000)" (( "(") (binary_expression "uVar10 < 0x1000" (identifier "uVar10") (< "<") (number_literal "0x1000")) () ")")) (compound_statement "{\n      uVar10 = 0x1000;\n    }" ({ "{") (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" (identifier "uVar10") (= "=") (number_literal "0x1000")) (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar10 = __ptr[8] + 0x100 + uVar10;" (assignment_expression "uVar10 = __ptr[8] + 0x100 + uVar10" (identifier "uVar10") (= "=") (binary_expression "__ptr[8] + 0x100 + uVar10" (binary_expression "__ptr[8] + 0x100" (subscript_expression "__ptr[8]" (identifier "__ptr") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "0x100")) (+ "+") (identifier "uVar10"))) (; ";")) (if_statement "if (uVar10 < (uint)__ptr[8]) {\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }" (if "if") (parenthesized_expression "(uVar10 < (uint)__ptr[8])" (( "(") (binary_expression "uVar10 < (uint)__ptr[8]" (identifier "uVar10") (< "<") (cast_expression "(uint)__ptr[8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "__ptr[8]" (identifier "__ptr") ([ "[") (number_literal "8") (] "]")))) () ")")) (compound_statement "{\n    free((void *)__ptr[5]);\n    piVar8 = __errno_location();\n    *piVar8 = 0x24;\n    goto LAB_0001858e;\n  }" ({ "{") (expression_statement "free((void *)__ptr[5]);" (call_expression "free((void *)__ptr[5])" (identifier "free") (argument_list "((void *)__ptr[5])" (( "(") (cast_expression "(void *)__ptr[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]"))) () ")"))) (; ";")) (expression_statement "piVar8 = __errno_location();" (assignment_expression "piVar8 = __errno_location()" (identifier "piVar8") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar8 = 0x24;" (assignment_expression "*piVar8 = 0x24" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (number_literal "0x24")) (; ";")) (goto_statement "goto LAB_0001858e;" (goto "goto") (statement_identifier "LAB_0001858e") (; ";")) (} "}"))) (expression_statement "__ptr[8] = uVar10;" (assignment_expression "__ptr[8] = uVar10" (subscript_expression "__ptr[8]" (identifier "__ptr") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "pvVar6 = realloc((void *)__ptr[5],uVar10);" (assignment_expression "pvVar6 = realloc((void *)__ptr[5],uVar10)" (identifier "pvVar6") (= "=") (call_expression "realloc((void *)__ptr[5],uVar10)" (identifier "realloc") (argument_list "((void *)__ptr[5],uVar10)" (( "(") (cast_expression "(void *)__ptr[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]"))) (, ",") (identifier "uVar10") () ")")))) (; ";")) (if_statement "if (pvVar6 == (void *)0x0) {\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }" (if "if") (parenthesized_expression "(pvVar6 == (void *)0x0)" (( "(") (binary_expression "pvVar6 == (void *)0x0" (identifier "pvVar6") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free((void *)__ptr[5]);\n    goto LAB_0001858e;\n  }" ({ "{") (expression_statement "free((void *)__ptr[5]);" (call_expression "free((void *)__ptr[5])" (identifier "free") (argument_list "((void *)__ptr[5])" (( "(") (cast_expression "(void *)__ptr[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]"))) () ")"))) (; ";")) (goto_statement "goto LAB_0001858e;" (goto "goto") (statement_identifier "LAB_0001858e") (; ";")) (} "}"))) (expression_statement "__ptr[5] = pvVar6;" (assignment_expression "__ptr[5] = pvVar6" (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "pvVar6")) (; ";")) (expression_statement "pcVar4 = (char *)*param_1;" (assignment_expression "pcVar4 = (char *)*param_1" (identifier "pcVar4") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (pcVar4 == (char *)0x0) {\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }\n  else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" (if "if") (parenthesized_expression "(pcVar4 == (char *)0x0)" (( "(") (binary_expression "pcVar4 == (char *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_28 = (void *)0x0;\n    if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }\n    local_30 = (void *)0x0;\nLAB_00018370:\n    pvVar6 = malloc(0xa8);\n    if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }\nLAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }\nLAB_0001856c:\n    free(local_28);\n    pvVar6 = (void *)__ptr[5];\n  }" ({ "{") (expression_statement "local_28 = (void *)0x0;" (assignment_expression "local_28 = (void *)0x0" (identifier "local_28") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (param_3 != 0) {\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;\n      if (pcVar4 != (char *)0x0) goto LAB_000181fa;\n    }" ({ "{") (labeled_statement "LAB_000184a0:\n      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;" (statement_identifier "LAB_000184a0") (: ":") (expression_statement "local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;" (assignment_expression "local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1" (identifier "local_22") (= "=") (binary_expression "(byte)((uint)__ptr[0xb] >> 10) & 1" (call_expression "(byte)((uint)__ptr[0xb] >> 10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((uint)__ptr[0xb] >> 10)" (( "(") (binary_expression "(uint)__ptr[0xb] >> 10" (cast_expression "(uint)__ptr[0xb]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "__ptr[0xb]" (identifier "__ptr") ([ "[") (number_literal "0xb") (] "]"))) (>> ">>") (number_literal "10")) () ")"))) (& "&") (number_literal "1"))) (; ";"))) (if_statement "if (pcVar4 != (char *)0x0) goto LAB_000181fa;" (if "if") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000181fa;" (goto "goto") (statement_identifier "LAB_000181fa") (; ";"))) (} "}"))) (expression_statement "local_30 = (void *)0x0;" (assignment_expression "local_30 = (void *)0x0" (identifier "local_30") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_00018370:\n    pvVar6 = malloc(0xa8);" (statement_identifier "LAB_00018370") (: ":") (expression_statement "pvVar6 = malloc(0xa8);" (assignment_expression "pvVar6 = malloc(0xa8)" (identifier "pvVar6") (= "=") (call_expression "malloc(0xa8)" (identifier "malloc") (argument_list "(0xa8)" (( "(") (number_literal "0xa8") () ")")))) (; ";"))) (if_statement "if (pvVar6 == (void *)0x0) {\n      *__ptr = 0;\n    }\n    else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(pvVar6 == (void *)0x0)" (( "(") (binary_expression "pvVar6 == (void *)0x0" (identifier "pvVar6") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *__ptr = 0;\n    }" ({ "{") (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" (else "else") (compound_statement "{\n      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x34) = 0;\n      uVar1 = __ptr[5];\n      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n      *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n      *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n      *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n      *__ptr = pvVar6;\n      *(void **)((int)pvVar6 + 8) = local_30;\n      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;\n      *(undefined2 *)((int)pvVar6 + 0x40) = 3;\n      *(undefined4 *)((int)pvVar6 + 0x30) = 1;\n      if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }\n    }" ({ "{") (expression_statement "*(undefined1 *)((int)pvVar6 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + 0xa4)" (* "*") (cast_expression "(undefined1 *)((int)pvVar6 + 0xa4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0xa4)" (( "(") (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0xa4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x34)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x34)" (( "(") (binary_expression "(int)pvVar6 + 0x34" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = __ptr[5];" (assignment_expression "uVar1 = __ptr[5]" (identifier "uVar1") (= "=") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)pvVar6 + 0x2c)" (* "*") (cast_expression "(undefined4 **)((int)pvVar6 + 0x2c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar6 + 0x2c)" (( "(") (binary_expression "(int)pvVar6 + 0x2c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "__ptr")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x20)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x20)" (( "(") (binary_expression "(int)pvVar6 + 0x20" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x1c)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x1c)" (( "(") (binary_expression "(int)pvVar6 + 0x1c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0xc)" (( "(") (binary_expression "(int)pvVar6 + 0xc" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x10)" (( "(") (binary_expression "(int)pvVar6 + 0x10" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x14)" (( "(") (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*__ptr = pvVar6;" (assignment_expression "*__ptr = pvVar6" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (identifier "pvVar6")) (; ";")) (expression_statement "*(void **)((int)pvVar6 + 8) = local_30;" (assignment_expression "*(void **)((int)pvVar6 + 8) = local_30" (pointer_expression "*(void **)((int)pvVar6 + 8)" (* "*") (cast_expression "(void **)((int)pvVar6 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar6 + 8)" (( "(") (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_30")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x3c) = 9;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x3c) = 9" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x3c)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x3c)" (( "(") (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "9")) (; ";")) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x40) = 3;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x40) = 3" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x40)" (* "*") (cast_expression "(undefined2 *)((int)pvVar6 + 0x40)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x40)" (( "(") (binary_expression "(int)pvVar6 + 0x40" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x30) = 1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x30) = 1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x30)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x30)" (( "(") (binary_expression "(int)pvVar6 + 0x30" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if ((__ptr[0xb] & 0x102) == 0) {\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }\n      else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" (if "if") (parenthesized_expression "((__ptr[0xb] & 0x102) == 0)" (( "(") (binary_expression "(__ptr[0xb] & 0x102) == 0" (parenthesized_expression "(__ptr[0xb] & 0x102)" (( "(") (binary_expression "__ptr[0xb] & 0x102" (subscript_expression "__ptr[0xb]" (identifier "__ptr") ([ "[") (number_literal "0xb") (] "]")) (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        pvVar6 = malloc(0x1c);\n        __ptr[0xd] = pvVar6;\n        if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }\n      }" ({ "{") (expression_statement "pvVar6 = malloc(0x1c);" (assignment_expression "pvVar6 = malloc(0x1c)" (identifier "pvVar6") (= "=") (call_expression "malloc(0x1c)" (identifier "malloc") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")")))) (; ";")) (expression_statement "__ptr[0xd] = pvVar6;" (assignment_expression "__ptr[0xd] = pvVar6" (subscript_expression "__ptr[0xd]" (identifier "__ptr") ([ "[") (number_literal "0xd") (] "]")) (= "=") (identifier "pvVar6")) (; ";")) (if_statement "if (pvVar6 != (void *)0x0) {\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }" (if "if") (parenthesized_expression "(pvVar6 != (void *)0x0)" (( "(") (binary_expression "pvVar6 != (void *)0x0" (identifier "pvVar6") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          FUN_0001b070(pvVar6);\n          goto LAB_00018416;\n        }" ({ "{") (expression_statement "FUN_0001b070(pvVar6);" (call_expression "FUN_0001b070(pvVar6)" (identifier "FUN_0001b070") (argument_list "(pvVar6)" (( "(") (identifier "pvVar6") () ")"))) (; ";")) (goto_statement "goto LAB_00018416;" (goto "goto") (statement_identifier "LAB_00018416") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" (else "else") (compound_statement "{\n        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);\n        __ptr[0xd] = iVar7;\n        if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }\n      }" ({ "{") (expression_statement "iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);" (assignment_expression "iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" (identifier "iVar7") (= "=") (call_expression "FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" (identifier "FUN_0001b940") (argument_list "(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc)" (( "(") (number_literal "0x1f") (, ",") (number_literal "0") (, ",") (identifier "FUN_000167f0") (, ",") (identifier "FUN_000167b0") (, ",") (identifier "PTR_free_00024fcc") () ")")))) (; ";")) (expression_statement "__ptr[0xd] = iVar7;" (assignment_expression "__ptr[0xd] = iVar7" (subscript_expression "__ptr[0xd]" (identifier "__ptr") ([ "[") (number_literal "0xd") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 != 0) {\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00018416:\n          uVar10 = __ptr[0xb];\n          if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }\n          FUN_0001c510(__ptr + 0xe,0xffffffff);\n          return __ptr;\n        }" ({ "{") (labeled_statement "LAB_00018416:\n          uVar10 = __ptr[0xb];" (statement_identifier "LAB_00018416") (: ":") (expression_statement "uVar10 = __ptr[0xb];" (assignment_expression "uVar10 = __ptr[0xb]" (identifier "uVar10") (= "=") (subscript_expression "__ptr[0xb]" (identifier "__ptr") ([ "[") (number_literal "0xb") (] "]"))) (; ";"))) (if_statement "if ((uVar10 & 0x204) == 0) {\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }" (if "if") (parenthesized_expression "((uVar10 & 0x204) == 0)" (( "(") (binary_expression "(uVar10 & 0x204) == 0" (parenthesized_expression "(uVar10 & 0x204)" (( "(") (binary_expression "uVar10 & 0x204" (identifier "uVar10") (& "&") (number_literal "0x204")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;\n            if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }\n            __ptr[6] = iVar7;\n            if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }\n          }" ({ "{") (expression_statement "uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;" (assignment_expression "uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900" (identifier "uVar9") (= "=") (binary_expression "(uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900" (binary_expression "(uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7" (binary_expression "(uVar10 & 0x10) << 0xd" (parenthesized_expression "(uVar10 & 0x10)" (( "(") (binary_expression "uVar10 & 0x10" (identifier "uVar10") (& "&") (number_literal "0x10")) () ")")) (<< "<<") (number_literal "0xd")) (| "|") (binary_expression "(uVar10 & 0x800) << 7" (parenthesized_expression "(uVar10 & 0x800)" (( "(") (binary_expression "uVar10 & 0x800" (identifier "uVar10") (& "&") (number_literal "0x800")) () ")")) (<< "<<") (number_literal "7"))) (| "|") (number_literal "0x90900"))) (; ";")) (if_statement "if ((uVar10 & 0x200) == 0) {\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }\n            else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" (if "if") (parenthesized_expression "((uVar10 & 0x200) == 0)" (( "(") (binary_expression "(uVar10 & 0x200) == 0" (parenthesized_expression "(uVar10 & 0x200)" (( "(") (binary_expression "uVar10 & 0x200" (identifier "uVar10") (& "&") (number_literal "0x200")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);\n            }" ({ "{") (expression_statement "iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);" (assignment_expression "iVar7 = FUN_0001b190(&DAT_0001f827,uVar9)" (identifier "iVar7") (= "=") (call_expression "FUN_0001b190(&DAT_0001f827,uVar9)" (identifier "FUN_0001b190") (argument_list "(&DAT_0001f827,uVar9)" (( "(") (pointer_expression "&DAT_0001f827" (& "&") (identifier "DAT_0001f827")) (, ",") (identifier "uVar9") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" (else "else") (compound_statement "{\n              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);\n            }" ({ "{") (expression_statement "iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);" (assignment_expression "iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9)" (identifier "iVar7") (= "=") (call_expression "FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9)" (identifier "FUN_0001c6b0") (argument_list "(__ptr[7],&DAT_0001f827,uVar9)" (( "(") (subscript_expression "__ptr[7]" (identifier "__ptr") ([ "[") (number_literal "7") (] "]")) (, ",") (pointer_expression "&DAT_0001f827" (& "&") (identifier "DAT_0001f827")) (, ",") (identifier "uVar9") () ")")))) (; ";")) (} "}")))) (expression_statement "__ptr[6] = iVar7;" (assignment_expression "__ptr[6] = iVar7" (subscript_expression "__ptr[6]" (identifier "__ptr") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 < 0) {\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }" (if "if") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              __ptr[0xb] = __ptr[0xb] | 4;\n            }" ({ "{") (expression_statement "__ptr[0xb] = __ptr[0xb] | 4;" (assignment_expression "__ptr[0xb] = __ptr[0xb] | 4" (subscript_expression "__ptr[0xb]" (identifier "__ptr") ([ "[") (number_literal "0xb") (] "]")) (= "=") (binary_expression "__ptr[0xb] | 4" (subscript_expression "__ptr[0xb]" (identifier "__ptr") ([ "[") (number_literal "0xb") (] "]")) (| "|") (number_literal "4"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0001c510(__ptr + 0xe,0xffffffff);" (call_expression "FUN_0001c510(__ptr + 0xe,0xffffffff)" (identifier "FUN_0001c510") (argument_list "(__ptr + 0xe,0xffffffff)" (( "(") (binary_expression "__ptr + 0xe" (identifier "__ptr") (+ "+") (number_literal "0xe")) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return __ptr;" (return "return") (identifier "__ptr") (; ";")) (} "}"))) (} "}")))) (} "}")))) (labeled_statement "LAB_00018524:\n    if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" (statement_identifier "LAB_00018524") (: ":") (if_statement "if (local_30 != (void *)0x0) {\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" (if "if") (parenthesized_expression "(local_30 != (void *)0x0)" (( "(") (binary_expression "local_30 != (void *)0x0" (identifier "local_30") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      __dirp = *(DIR **)((int)local_30 + 0xc);\n      pvVar6 = *(void **)((int)local_30 + 8);\n      if (__dirp == (DIR *)0x0) goto LAB_0001855c;\n      do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );\n    }" ({ "{") (expression_statement "__dirp = *(DIR **)((int)local_30 + 0xc);" (assignment_expression "__dirp = *(DIR **)((int)local_30 + 0xc)" (identifier "__dirp") (= "=") (pointer_expression "*(DIR **)((int)local_30 + 0xc)" (* "*") (cast_expression "(DIR **)((int)local_30 + 0xc)" (( "(") (type_descriptor "DIR **" (type_identifier "DIR") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_30 + 0xc)" (( "(") (binary_expression "(int)local_30 + 0xc" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "pvVar6 = *(void **)((int)local_30 + 8);" (assignment_expression "pvVar6 = *(void **)((int)local_30 + 8)" (identifier "pvVar6") (= "=") (pointer_expression "*(void **)((int)local_30 + 8)" (* "*") (cast_expression "(void **)((int)local_30 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_30 + 8)" (( "(") (binary_expression "(int)local_30 + 8" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (__dirp == (DIR *)0x0) goto LAB_0001855c;" (if "if") (parenthesized_expression "(__dirp == (DIR *)0x0)" (( "(") (binary_expression "__dirp == (DIR *)0x0" (identifier "__dirp") (== "==") (cast_expression "(DIR *)0x0" (( "(") (type_descriptor "DIR *" (type_identifier "DIR") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001855c;" (goto "goto") (statement_identifier "LAB_0001855c") (; ";"))) (do_statement "do {\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      } while( true );" (do "do") (compound_statement "{\n        closedir(__dirp);\n        free(local_30);\n        local_30 = pvVar6;\n        while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }\n      }" ({ "{") (expression_statement "closedir(__dirp);" (call_expression "closedir(__dirp)" (identifier "closedir") (argument_list "(__dirp)" (( "(") (identifier "__dirp") () ")"))) (; ";")) (expression_statement "free(local_30);" (call_expression "free(local_30)" (identifier "free") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" (identifier "local_30") (= "=") (identifier "pvVar6")) (; ";")) (while_statement "while( true ) {\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          if (local_30 == (void *)0x0) goto LAB_0001856c;\n          __dirp = *(DIR **)((int)local_30 + 0xc);\n          pvVar6 = *(void **)((int)local_30 + 8);\n          if (__dirp != (DIR *)0x0) break;\nLAB_0001855c:\n          free(local_30);\n          local_30 = pvVar6;\n        }" ({ "{") (if_statement "if (local_30 == (void *)0x0) goto LAB_0001856c;" (if "if") (parenthesized_expression "(local_30 == (void *)0x0)" (( "(") (binary_expression "local_30 == (void *)0x0" (identifier "local_30") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001856c;" (goto "goto") (statement_identifier "LAB_0001856c") (; ";"))) (expression_statement "__dirp = *(DIR **)((int)local_30 + 0xc);" (assignment_expression "__dirp = *(DIR **)((int)local_30 + 0xc)" (identifier "__dirp") (= "=") (pointer_expression "*(DIR **)((int)local_30 + 0xc)" (* "*") (cast_expression "(DIR **)((int)local_30 + 0xc)" (( "(") (type_descriptor "DIR **" (type_identifier "DIR") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_30 + 0xc)" (( "(") (binary_expression "(int)local_30 + 0xc" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "pvVar6 = *(void **)((int)local_30 + 8);" (assignment_expression "pvVar6 = *(void **)((int)local_30 + 8)" (identifier "pvVar6") (= "=") (pointer_expression "*(void **)((int)local_30 + 8)" (* "*") (cast_expression "(void **)((int)local_30 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_30 + 8)" (( "(") (binary_expression "(int)local_30 + 8" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (__dirp != (DIR *)0x0) break;" (if "if") (parenthesized_expression "(__dirp != (DIR *)0x0)" (( "(") (binary_expression "__dirp != (DIR *)0x0" (identifier "__dirp") (!= "!=") (cast_expression "(DIR *)0x0" (( "(") (type_descriptor "DIR *" (type_identifier "DIR") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_0001855c:\n          free(local_30);" (statement_identifier "LAB_0001855c") (: ":") (expression_statement "free(local_30);" (call_expression "free(local_30)" (identifier "free") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";"))) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" (identifier "local_30") (= "=") (identifier "pvVar6")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_0001856c:\n    free(local_28);" (statement_identifier "LAB_0001856c") (: ":") (expression_statement "free(local_28);" (call_expression "free(local_28)" (identifier "free") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";"))) (expression_statement "pvVar6 = (void *)__ptr[5];" (assignment_expression "pvVar6 = (void *)__ptr[5]" (identifier "pvVar6") (= "=") (cast_expression "(void *)__ptr[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" (else "else") (compound_statement "{\n    local_28 = malloc(0xa8);\n    if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }\n  }" ({ "{") (expression_statement "local_28 = malloc(0xa8);" (assignment_expression "local_28 = malloc(0xa8)" (identifier "local_28") (= "=") (call_expression "malloc(0xa8)" (identifier "malloc") (argument_list "(0xa8)" (( "(") (number_literal "0xa8") () ")")))) (; ";")) (if_statement "if (local_28 != (void *)0x0) {\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }" (if "if") (parenthesized_expression "(local_28 != (void *)0x0)" (( "(") (binary_expression "local_28 != (void *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(undefined1 *)((int)local_28 + 0xa4) = 0;\n      *(undefined4 *)((int)local_28 + 0x34) = 0;\n      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;\n      *(void **)((int)local_28 + 0x1c) = pvVar6;\n      *(undefined4 *)((int)local_28 + 0x20) = 0;\n      *(undefined4 *)((int)local_28 + 0xc) = 0;\n      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;\n      *(undefined4 *)((int)local_28 + 0x10) = 0;\n      *(undefined4 *)((int)local_28 + 0x14) = 0;\n      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;\n      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;\n      if (param_3 != 0) goto LAB_000184a0;\n      local_22 = 1;\nLAB_000181fa:\n      local_20 = (void *)0x0;\n      local_30 = (void *)0x0;\n      local_38 = 0;\n      do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);\n      if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }\n      goto LAB_00018370;\n    }" ({ "{") (expression_statement "*(undefined1 *)((int)local_28 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)local_28 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)local_28 + 0xa4)" (* "*") (cast_expression "(undefined1 *)((int)local_28 + 0xa4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0xa4)" (( "(") (binary_expression "(int)local_28 + 0xa4" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0xa4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x34)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x34)" (( "(") (binary_expression "(int)local_28 + 0x34" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 **)((int)local_28 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)local_28 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)local_28 + 0x2c)" (* "*") (cast_expression "(undefined4 **)((int)local_28 + 0x2c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_28 + 0x2c)" (( "(") (binary_expression "(int)local_28 + 0x2c" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "__ptr")) (; ";")) (expression_statement "*(void **)((int)local_28 + 0x1c) = pvVar6;" (assignment_expression "*(void **)((int)local_28 + 0x1c) = pvVar6" (pointer_expression "*(void **)((int)local_28 + 0x1c)" (* "*") (cast_expression "(void **)((int)local_28 + 0x1c)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_28 + 0x1c)" (( "(") (binary_expression "(int)local_28 + 0x1c" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "pvVar6")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x20)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x20)" (( "(") (binary_expression "(int)local_28 + 0x20" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0xc)" (( "(") (binary_expression "(int)local_28 + 0xc" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x3e) = 0x30000;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x3e) = 0x30000" (pointer_expression "*(undefined4 *)((int)local_28 + 0x3e)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x3e)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x3e)" (( "(") (binary_expression "(int)local_28 + 0x3e" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x3e")) () ")")))) (= "=") (number_literal "0x30000")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x10)" (( "(") (binary_expression "(int)local_28 + 0x10" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x14)" (( "(") (binary_expression "(int)local_28 + 0x14" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x30) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_28 + 0x30)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x30)" (( "(") (binary_expression "(int)local_28 + 0x30" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)local_28 + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)local_28 + 0x38)" (* "*") (cast_expression "(undefined4 *)((int)local_28 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 0x38)" (( "(") (binary_expression "(int)local_28 + 0x38" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (param_3 != 0) goto LAB_000184a0;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000184a0;" (goto "goto") (statement_identifier "LAB_000184a0") (; ";"))) (expression_statement "local_22 = 1;" (assignment_expression "local_22 = 1" (identifier "local_22") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_000181fa:\n      local_20 = (void *)0x0;" (statement_identifier "LAB_000181fa") (: ":") (expression_statement "local_20 = (void *)0x0;" (assignment_expression "local_20 = (void *)0x0" (identifier "local_20") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (expression_statement "local_30 = (void *)0x0;" (assignment_expression "local_30 = (void *)0x0" (identifier "local_30") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      } while (pcVar4 != (char *)0x0);" (do "do") (compound_statement "{\n        sVar5 = strlen(pcVar4);\n        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        pvVar6 = malloc(__size);\n        if (pvVar6 == (void *)0x0) goto LAB_00018524;\n        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);\n        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;\n        *(size_t *)((int)pvVar6 + 0x34) = sVar5;\n        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;\n        uVar1 = __ptr[5];\n        *(undefined4 *)((int)pvVar6 + 0x20) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;\n        *(undefined4 *)((int)pvVar6 + 0xc) = 0;\n        *(void **)((int)pvVar6 + 4) = local_28;\n        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;\n        *(undefined4 *)((int)pvVar6 + 0x10) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x14) = 0;\n        *(undefined4 *)((int)pvVar6 + 0x30) = 0;\n        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);\n        pvVar2 = pvVar6;\n        if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }\n        local_20 = pvVar6;\n        local_30 = pvVar2;\n        local_38 = local_38 + 1;\n        pcVar4 = (char *)param_1[local_38];\n      }" ({ "{") (expression_statement "sVar5 = strlen(pcVar4);" (assignment_expression "sVar5 = strlen(pcVar4)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar4)" (identifier "strlen") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (if_statement "if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }\n        else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" (if "if") (parenthesized_expression "((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0))" (( "(") (binary_expression "(sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)" (parenthesized_expression "(sVar5 < 3)" (( "(") (binary_expression "sVar5 < 3" (identifier "sVar5") (< "<") (number_literal "3")) () ")")) (|| "||") (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")) () ")"))) () ")")) (compound_statement "{\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" ({ "{") (expression_statement "__size = sVar5 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar5 + 0xa8 & 0xfffffffc" (identifier "__size") (= "=") (binary_expression "sVar5 + 0xa8 & 0xfffffffc" (binary_expression "sVar5 + 0xa8" (identifier "sVar5") (+ "+") (number_literal "0xa8")) (& "&") (number_literal "0xfffffffc"))) (; ";")) (} "}")) (else_clause "else if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" (else "else") (if_statement "if (pcVar4[sVar5 - 1] == '/') {\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }\n        else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" (if "if") (parenthesized_expression "(pcVar4[sVar5 - 1] == '/')" (( "(") (binary_expression "pcVar4[sVar5 - 1] == '/'" (subscript_expression "pcVar4[sVar5 - 1]" (identifier "pcVar4") ([ "[") (binary_expression "sVar5 - 1" (identifier "sVar5") (- "-") (number_literal "1")) (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n          do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);\n          __size = 0xa8;\n        }" ({ "{") (do_statement "do {\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          } while (sVar5 != 1);" (do "do") (compound_statement "{\n            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;\n            sVar5 = sVar5 - 1;\n          }" ({ "{") (if_statement "if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;" (if "if") (parenthesized_expression "(pcVar4[sVar5 - 2] != '/')" (( "(") (binary_expression "pcVar4[sVar5 - 2] != '/'" (subscript_expression "pcVar4[sVar5 - 2]" (identifier "pcVar4") ([ "[") (binary_expression "sVar5 - 2" (identifier "sVar5") (- "-") (number_literal "2")) (] "]")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (goto_statement "goto LAB_0001833c;" (goto "goto") (statement_identifier "LAB_0001833c") (; ";"))) (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 "__size = 0xa8;" (assignment_expression "__size = 0xa8" (identifier "__size") (= "=") (number_literal "0xa8")) (; ";")) (} "}")) (else_clause "else {\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" (else "else") (compound_statement "{\nLAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;\n        }" ({ "{") (labeled_statement "LAB_0001833c:\n          __size = sVar5 + 0xa8 & 0xfffffffc;" (statement_identifier "LAB_0001833c") (: ":") (expression_statement "__size = sVar5 + 0xa8 & 0xfffffffc;" (assignment_expression "__size = sVar5 + 0xa8 & 0xfffffffc" (identifier "__size") (= "=") (binary_expression "sVar5 + 0xa8 & 0xfffffffc" (binary_expression "sVar5 + 0xa8" (identifier "sVar5") (+ "+") (number_literal "0xa8")) (& "&") (number_literal "0xfffffffc"))) (; ";"))) (} "}")))))) (expression_statement "pvVar6 = malloc(__size);" (assignment_expression "pvVar6 = malloc(__size)" (identifier "pvVar6") (= "=") (call_expression "malloc(__size)" (identifier "malloc") (argument_list "(__size)" (( "(") (identifier "__size") () ")")))) (; ";")) (if_statement "if (pvVar6 == (void *)0x0) goto LAB_00018524;" (if "if") (parenthesized_expression "(pvVar6 == (void *)0x0)" (( "(") (binary_expression "pvVar6 == (void *)0x0" (identifier "pvVar6") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00018524;" (goto "goto") (statement_identifier "LAB_00018524") (; ";"))) (expression_statement "memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);" (call_expression "memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5)" (identifier "memcpy") (argument_list "((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5)" (( "(") (cast_expression "(void *)((int)pvVar6 + 0xa4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0xa4)" (( "(") (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0xa4")) () ")"))) (, ",") (identifier "pcVar4") (, ",") (identifier "sVar5") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + sVar5 + 0xa4)" (* "*") (cast_expression "(undefined1 *)((int)pvVar6 + sVar5 + 0xa4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + sVar5 + 0xa4)" (( "(") (binary_expression "(int)pvVar6 + sVar5 + 0xa4" (binary_expression "(int)pvVar6 + sVar5" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (identifier "sVar5")) (+ "+") (number_literal "0xa4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(size_t *)((int)pvVar6 + 0x34) = sVar5;" (assignment_expression "*(size_t *)((int)pvVar6 + 0x34) = sVar5" (pointer_expression "*(size_t *)((int)pvVar6 + 0x34)" (* "*") (cast_expression "(size_t *)((int)pvVar6 + 0x34)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x34)" (( "(") (binary_expression "(int)pvVar6 + 0x34" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "sVar5")) (; ";")) (expression_statement "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;" (assignment_expression "*(undefined4 **)((int)pvVar6 + 0x2c) = __ptr" (pointer_expression "*(undefined4 **)((int)pvVar6 + 0x2c)" (* "*") (cast_expression "(undefined4 **)((int)pvVar6 + 0x2c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar6 + 0x2c)" (( "(") (binary_expression "(int)pvVar6 + 0x2c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "__ptr")) (; ";")) (expression_statement "uVar1 = __ptr[5];" (assignment_expression "uVar1 = __ptr[5]" (identifier "uVar1") (= "=") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x20) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x20) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x20)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x20)" (( "(") (binary_expression "(int)pvVar6 + 0x20" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x1c)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x1c)" (( "(") (binary_expression "(int)pvVar6 + 0x1c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0xc)" (( "(") (binary_expression "(int)pvVar6 + 0xc" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(void **)((int)pvVar6 + 4) = local_28;" (assignment_expression "*(void **)((int)pvVar6 + 4) = local_28" (pointer_expression "*(void **)((int)pvVar6 + 4)" (* "*") (cast_expression "(void **)((int)pvVar6 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar6 + 4)" (( "(") (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x3e)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x3e)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x3e)" (( "(") (binary_expression "(int)pvVar6 + 0x3e" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x3e")) () ")")))) (= "=") (number_literal "0x30000")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x10)" (( "(") (binary_expression "(int)pvVar6 + 0x10" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x14)" (( "(") (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x30) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x30) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x30)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x30)" (( "(") (binary_expression "(int)pvVar6 + 0x30" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);" (assignment_expression "*(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4)" (pointer_expression "*(void **)((int)pvVar6 + 0x18)" (* "*") (cast_expression "(void **)((int)pvVar6 + 0x18)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar6 + 0x18)" (( "(") (binary_expression "(int)pvVar6 + 0x18" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (cast_expression "(void *)((int)pvVar6 + 0xa4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0xa4)" (( "(") (binary_expression "(int)pvVar6 + 0xa4" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0xa4")) () ")")))) (; ";")) (expression_statement "pvVar2 = pvVar6;" (assignment_expression "pvVar2 = pvVar6" (identifier "pvVar2") (= "=") (identifier "pvVar6")) (; ";")) (if_statement "if ((local_30 == (void *)0x0) || (local_22 == 0)) {\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }\n        else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" (if "if") (parenthesized_expression "((local_30 == (void *)0x0) || (local_22 == 0))" (( "(") (binary_expression "(local_30 == (void *)0x0) || (local_22 == 0)" (parenthesized_expression "(local_30 == (void *)0x0)" (( "(") (binary_expression "local_30 == (void *)0x0" (identifier "local_30") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(local_22 == 0)" (( "(") (binary_expression "local_22 == 0" (identifier "local_22") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          uVar3 = FUN_000168b0();\n          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;\n          if (param_3 != 0) goto LAB_000182f0;\n          *(undefined4 *)((int)pvVar6 + 8) = 0;\n          if (local_30 != (void *)0x0) goto LAB_0001850f;\n        }" ({ "{") (expression_statement "uVar3 = FUN_000168b0();" (assignment_expression "uVar3 = FUN_000168b0()" (identifier "uVar3") (= "=") (call_expression "FUN_000168b0()" (identifier "FUN_000168b0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x3c) = uVar3" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x3c)" (* "*") (cast_expression "(undefined2 *)((int)pvVar6 + 0x3c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x3c)" (( "(") (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (param_3 != 0) goto LAB_000182f0;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000182f0;" (goto "goto") (statement_identifier "LAB_000182f0") (; ";"))) (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 8)" (( "(") (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_30 != (void *)0x0) goto LAB_0001850f;" (if "if") (parenthesized_expression "(local_30 != (void *)0x0)" (( "(") (binary_expression "local_30 != (void *)0x0" (identifier "local_30") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001850f;" (goto "goto") (statement_identifier "LAB_0001850f") (; ";"))) (} "}")) (else_clause "else {\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" (else "else") (compound_statement "{\n          *(undefined4 *)((int)pvVar6 + 0x70) = 2;\n          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;\n          *(undefined4 *)((int)pvVar6 + 0x74) = 0;\n          if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }\n        }" ({ "{") (expression_statement "*(undefined4 *)((int)pvVar6 + 0x70) = 2;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x70) = 2" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x70)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x70)" (( "(") (binary_expression "(int)pvVar6 + 0x70" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;" (assignment_expression "*(undefined2 *)((int)pvVar6 + 0x3c) = 0xb" (pointer_expression "*(undefined2 *)((int)pvVar6 + 0x3c)" (* "*") (cast_expression "(undefined2 *)((int)pvVar6 + 0x3c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x3c)" (( "(") (binary_expression "(int)pvVar6 + 0x3c" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0xb")) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 0x74)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 0x74)" (( "(") (binary_expression "(int)pvVar6 + 0x74" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) {\n            *(undefined4 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }\n          else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = 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 *)((int)pvVar6 + 8) = 0;\nLAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;\n            pvVar2 = local_30;\n          }" ({ "{") (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" (* "*") (cast_expression "(undefined4 *)((int)pvVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 8)" (( "(") (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0001850f:\n            *(void **)((int)local_20 + 8) = pvVar6;" (statement_identifier "LAB_0001850f") (: ":") (expression_statement "*(void **)((int)local_20 + 8) = pvVar6;" (assignment_expression "*(void **)((int)local_20 + 8) = pvVar6" (pointer_expression "*(void **)((int)local_20 + 8)" (* "*") (cast_expression "(void **)((int)local_20 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)local_20 + 8)" (( "(") (binary_expression "(int)local_20 + 8" (cast_expression "(int)local_20" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_20")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "pvVar6")) (; ";"))) (expression_statement "pvVar2 = local_30;" (assignment_expression "pvVar2 = local_30" (identifier "pvVar2") (= "=") (identifier "local_30")) (; ";")) (} "}")) (else_clause "else {\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" (else "else") (compound_statement "{\nLAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;\n            pvVar6 = local_20;\n          }" ({ "{") (labeled_statement "LAB_000182f0:\n            *(void **)((int)pvVar6 + 8) = local_30;" (statement_identifier "LAB_000182f0") (: ":") (expression_statement "*(void **)((int)pvVar6 + 8) = local_30;" (assignment_expression "*(void **)((int)pvVar6 + 8) = local_30" (pointer_expression "*(void **)((int)pvVar6 + 8)" (* "*") (cast_expression "(void **)((int)pvVar6 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar6 + 8)" (( "(") (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_30")) (; ";"))) (expression_statement "pvVar6 = local_20;" (assignment_expression "pvVar6 = local_20" (identifier "pvVar6") (= "=") (identifier "local_20")) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_20 = pvVar6;" (assignment_expression "local_20 = pvVar6" (identifier "local_20") (= "=") (identifier "pvVar6")) (; ";")) (expression_statement "local_30 = pvVar2;" (assignment_expression "local_30 = pvVar2" (identifier "local_30") (= "=") (identifier "pvVar2")) (; ";")) (expression_statement "local_38 = local_38 + 1;" (assignment_expression "local_38 = local_38 + 1" (identifier "local_38") (= "=") (binary_expression "local_38 + 1" (identifier "local_38") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar4 = (char *)param_1[local_38];" (assignment_expression "pcVar4 = (char *)param_1[local_38]" (identifier "pcVar4") (= "=") (cast_expression "(char *)param_1[local_38]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[local_38]" (identifier "param_1") ([ "[") (identifier "local_38") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if ((param_3 != 0) && (1 < local_38)) {\n        local_30 = (void *)FUN_00016a50();\n      }" (if "if") (parenthesized_expression "((param_3 != 0) && (1 < local_38))" (( "(") (binary_expression "(param_3 != 0) && (1 < local_38)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < local_38)" (( "(") (binary_expression "1 < local_38" (number_literal "1") (< "<") (identifier "local_38")) () ")"))) () ")")) (compound_statement "{\n        local_30 = (void *)FUN_00016a50();\n      }" ({ "{") (expression_statement "local_30 = (void *)FUN_00016a50();" (assignment_expression "local_30 = (void *)FUN_00016a50()" (identifier "local_30") (= "=") (cast_expression "(void *)FUN_00016a50()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00016a50()" (identifier "FUN_00016a50") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}"))) (goto_statement "goto LAB_00018370;" (goto "goto") (statement_identifier "LAB_00018370") (; ";")) (} "}"))) (} "}")))) (expression_statement "free(pvVar6);" (call_expression "free(pvVar6)" (identifier "free") (argument_list "(pvVar6)" (( "(") (identifier "pvVar6") () ")"))) (; ";")) (labeled_statement "LAB_0001858e:\n  free(__ptr);" (statement_identifier "LAB_0001858e") (: ":") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";"))) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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_13)

{
  type_3 uVar1;
  type_1 *var_4;
  size_t var_8;
  char *var_5;
  type_4 *var_28;
  size_t __size;
  type_5 *var_15;
  type_6 *var_19;
  type_7 *var_25;
  int *piVar6;
  type_8 *var_16;
  int var_22;
  type_9 flags;
  char **var_9;
  char *var_12;
  type_9 var_7;
  type_9 var_32;
  type_5 *var_24;
  type_5 *var_27;
  type_10 var_30;
  type_4 *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_11 *)var_13;
  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_7 = 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_7 = var_7 + 1;
    if (var_7 < 0x1000) {
      var_7 = 0x1000;
    }
  }
  var_7 = var_4->fts_pathlen + 0x100 + var_7;
  if (var_7 < var_4->fts_pathlen) {
    var_10(var_4->fts_path);
    piVar6 = var_2();
    *piVar6 = 0x24;
    goto LAB_0001858e;
  }
  var_4->fts_pathlen = var_7;
  var_5 = (char *)var_11(var_4->fts_path,var_7);
  if (var_5 == (char *)0x0) {
    var_10(var_4->fts_path);
    goto LAB_0001858e;
  }
  var_4->fts_path = var_5;
  var_12 = *argv;
  if (var_12 == (char *)0x0) {
    var_27 = (type_5 *)0x0;
    if (var_13 != (type_2 *)0x0) {
LAB_000184a0:
      var_30 = (type_10)((type_9)var_4->fts_options >> 10) & 1;
      if (var_12 != (char *)0x0) goto LAB_000181fa;
    }
    var_24 = (type_5 *)0x0;
LAB_00018370:
    var_15 = (type_5 *)var_14(0xa8);
    if (var_15 == (type_5 *)0x0) {
      var_4->fts_cur = (type_5 *)0x0;
    }
    else {
      *(type_12 *)&var_15[1].fts_cycle = 0;
      var_15->fts_namelen = 0;
      var_5 = var_4->fts_path;
      var_15->fts_fts = var_4;
      var_15->fts_errno = 0;
      var_15->fts_path = var_5;
      var_15->fts_dirp = (type_7 *)0x0;
      var_15->fts_number = 0;
      var_15->fts_pointer = (void *)0x0;
      var_4->fts_cur = var_15;
      var_15->fts_link = var_24;
      var_15->fts_info = 9;
      var_15->fts_flags = 0;
      var_15->fts_instr = 3;
      var_15->fts_level = 1;
      if ((var_4->fts_options & 0x102U) == 0) {
        var_16 = (type_8 *)var_14(0x1c);
        (var_4->fts_cycle).var_16 = var_16;
        if (var_16 != (type_8 *)0x0) {
          var_17(var_16);
          goto LAB_00018416;
        }
      }
      else {
        var_19 = var_18(0x1f,(type_13 *)0x0,AD_hash,AD_compare,
                                 (type_14)PTR_free_00024fcc);
        (var_4->fts_cycle).ht = var_19;
        if (var_19 != (type_6 *)0x0) {
LAB_00018416:
          var_7 = var_4->fts_options;
          if ((var_7 & 0x204) == 0) {
            flags = (var_7 & 0x10) << 0xd | (var_7 & 0x800) << 7 | 0x90900;
            if ((var_7 & 0x200) == 0) {
              var_22 = var_20(".",flags);
            }
            else {
              var_22 = var_21(var_4->fts_cwd_fd,".",flags);
            }
            var_4->fts_rfd = var_22;
            if (var_22 < 0) {
              var_4->fts_options = var_4->fts_options | 4;
            }
          }
          var_23(&var_4->fts_fd_ring,-1);
          return var_4;
        }
      }
    }
LAB_00018524:
    if (var_24 != (type_5 *)0x0) {
      var_25 = var_24->fts_dirp;
      var_15 = var_24->fts_link;
      if (var_25 == (type_7 *)0x0) goto LAB_0001855c;
      do {
        var_26((type_7 *)var_25);
        var_10(var_24);
        var_24 = var_15;
        while( true ) {
          if (var_24 == (type_5 *)0x0) goto LAB_0001856c;
          var_25 = var_24->fts_dirp;
          var_15 = var_24->fts_link;
          if (var_25 != (type_7 *)0x0) break;
LAB_0001855c:
          var_10(var_24);
          var_24 = var_15;
        }
      } while( true );
    }
LAB_0001856c:
    var_10(var_27);
    var_5 = var_4->fts_path;
  }
  else {
    var_27 = (type_5 *)var_14(0xa8);
    if (var_27 != (type_5 *)0x0) {
      *(type_12 *)&var_27[1].fts_cycle = 0;
      var_27->fts_namelen = 0;
      var_27->fts_fts = var_4;
      var_27->fts_path = var_5;
      var_27->fts_errno = 0;
      var_27->fts_dirp = (type_7 *)0x0;
      var_27->fts_flags = 0;
      var_27->fts_instr = 3;
      var_27->fts_number = 0;
      var_27->fts_pointer = (void *)0x0;
      var_27->fts_level = -1;
      var_27->fts_n_dirs_remaining = 0xffffffff;
      if (var_13 != (type_2 *)0x0) goto LAB_000184a0;
      var_30 = 1;
LAB_000181fa:
      local_20 = (type_4 *)0x0;
      var_24 = (type_5 *)0x0;
      var_32 = 0;
      do {
        var_8 = var_6(var_12);
        if ((var_8 < 3) || ((((type_10)((type_9)var_1 >> 0xc) ^ 1) & 1) == 0)) {
          __size = var_8 + 0xa8 & 0xfffffffc;
        }
        else if (var_12[var_8 - 1] == '/') {
          do {
            if (var_12[var_8 - 2] != '/') goto LAB_0001833c;
            var_8 = var_8 - 1;
          } while (var_8 != 1);
          __size = 0xa8;
        }
        else {
LAB_0001833c:
          __size = var_8 + 0xa8 & 0xfffffffc;
        }
        var_28 = (type_4 *)var_14(__size);
        if (var_28 == (type_4 *)0x0) goto LAB_00018524;
        var_29(var_28 + 1,var_12,var_8);
        *(type_12 *)((int)var_28[1].fts_statp + (var_8 - 0x44)) = 0;
        var_28->fts_namelen = var_8;
        var_28->fts_fts = var_4;
        var_5 = var_4->fts_path;
        var_28->fts_errno = 0;
        var_28->fts_path = var_5;
        var_28->fts_dirp = (type_7 *)0x0;
        var_28->fts_parent = var_27;
        var_28->fts_flags = 0;
        var_28->fts_instr = 3;
        var_28->fts_number = 0;
        var_28->fts_pointer = (void *)0x0;
        var_28->fts_level = 0;
        var_28->fts_accpath = (char *)(var_28 + 1);
        var_15 = var_28;
        if ((var_24 == (type_5 *)0x0) || (var_30 == 0)) {
          uVar1 = var_31(var_4,var_28,false);
          var_28->fts_info = uVar1;
          if (var_13 != (type_2 *)0x0) goto LAB_000182f0;
          var_28->fts_link = (type_5 *)0x0;
          if (var_24 != (type_5 *)0x0) goto LAB_0001850f;
        }
        else {
          *(type_15 *)&var_28->fts_statp[0].st_size = 2;
          var_28->fts_info = 0xb;
          *(type_15 *)((int)&var_28->fts_statp[0].st_size + 4) = 0;
          if (var_13 == (type_2 *)0x0) {
            var_28->fts_link = (type_5 *)0x0;
LAB_0001850f:
            local_20->fts_link = var_28;
            var_15 = var_24;
          }
          else {
LAB_000182f0:
            var_28->fts_link = var_24;
            var_28 = local_20;
          }
        }
        local_20 = var_28;
        var_24 = var_15;
        var_32 = var_32 + 1;
        var_12 = argv[var_32];
      } while (var_12 != (char *)0x0);
      if ((var_13 != (type_2 *)0x0) && (1 < var_32)) {
        var_24 = var_33(var_4,var_24,var_32);
      }
      goto LAB_00018370;
    }
  }
  var_10(var_5);
LAB_0001858e:
  var_10(var_4);
  return (type_1 *)0x0;
}


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

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

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

{
  undefined4 uVar1;
  void *pvVar2;
  undefined2 uVar3;
  undefined4 *__ptr;
  char *pcVar4;
  size_t sVar5;
  void *pvVar6;
  size_t __size;
  int iVar7;
  DIR *__dirp;
  int *piVar8;
  uint uVar9;
  uint uVar10;
  uint local_38;
  void *local_30;
  void *local_28;
  byte local_22;
  void *local_20;
  
  if ((((param_2 & 0xffffe000) != 0) || ((param_2 & 0x204) == 0x204)) || ((param_2 & 0x12) == 0)) {
    piVar8 = __errno_location();
    *piVar8 = 0x16;
    return (undefined4 *)0x0;
  }
  __ptr = (undefined4 *)calloc(0x58,1);
  if (__ptr == (undefined4 *)0x0) {
    return (undefined4 *)0x0;
  }
  __ptr[7] = 0xffffff9c;
  __ptr[10] = param_3;
  uVar10 = param_2 & 0xfffffdff | 4;
  if ((param_2 & 2) == 0) {
    uVar10 = param_2;
  }
  __ptr[0xb] = uVar10;
  pcVar4 = (char *)*param_1;
  if (pcVar4 == (char *)0x0) {
    uVar10 = 0x1000;
  }
  else {
    uVar10 = 0;
    piVar8 = param_1;
    do {
      sVar5 = strlen(pcVar4);
      if (uVar10 < sVar5) {
        uVar10 = sVar5;
      }
      piVar8 = piVar8 + 1;
      pcVar4 = (char *)*piVar8;
    } while (pcVar4 != (char *)0x0);
    uVar10 = uVar10 + 1;
    if (uVar10 < 0x1000) {
      uVar10 = 0x1000;
    }
  }
  uVar10 = __ptr[8] + 0x100 + uVar10;
  if (uVar10 < (uint)__ptr[8]) {
    free((void *)__ptr[5]);
    piVar8 = __errno_location();
    *piVar8 = 0x24;
    goto LAB_0001858e;
  }
  __ptr[8] = uVar10;
  pvVar6 = realloc((void *)__ptr[5],uVar10);
  if (pvVar6 == (void *)0x0) {
    free((void *)__ptr[5]);
    goto LAB_0001858e;
  }
  __ptr[5] = pvVar6;
  pcVar4 = (char *)*param_1;
  if (pcVar4 == (char *)0x0) {
    local_28 = (void *)0x0;
    if (param_3 != 0) {
LAB_000184a0:
      local_22 = (byte)((uint)__ptr[0xb] >> 10) & 1;
      if (pcVar4 != (char *)0x0) goto LAB_000181fa;
    }
    local_30 = (void *)0x0;
LAB_00018370:
    pvVar6 = malloc(0xa8);
    if (pvVar6 == (void *)0x0) {
      *__ptr = 0;
    }
    else {
      *(undefined1 *)((int)pvVar6 + 0xa4) = 0;
      *(undefined4 *)((int)pvVar6 + 0x34) = 0;
      uVar1 = __ptr[5];
      *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;
      *(undefined4 *)((int)pvVar6 + 0x20) = 0;
      *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;
      *(undefined4 *)((int)pvVar6 + 0xc) = 0;
      *(undefined4 *)((int)pvVar6 + 0x10) = 0;
      *(undefined4 *)((int)pvVar6 + 0x14) = 0;
      *__ptr = pvVar6;
      *(void **)((int)pvVar6 + 8) = local_30;
      *(undefined4 *)((int)pvVar6 + 0x3c) = 9;
      *(undefined2 *)((int)pvVar6 + 0x40) = 3;
      *(undefined4 *)((int)pvVar6 + 0x30) = 1;
      if ((__ptr[0xb] & 0x102) == 0) {
        pvVar6 = malloc(0x1c);
        __ptr[0xd] = pvVar6;
        if (pvVar6 != (void *)0x0) {
          FUN_0001b070(pvVar6);
          goto LAB_00018416;
        }
      }
      else {
        iVar7 = FUN_0001b940(0x1f,0,FUN_000167f0,FUN_000167b0,PTR_free_00024fcc);
        __ptr[0xd] = iVar7;
        if (iVar7 != 0) {
LAB_00018416:
          uVar10 = __ptr[0xb];
          if ((uVar10 & 0x204) == 0) {
            uVar9 = (uVar10 & 0x10) << 0xd | (uVar10 & 0x800) << 7 | 0x90900;
            if ((uVar10 & 0x200) == 0) {
              iVar7 = FUN_0001b190(&DAT_0001f827,uVar9);
            }
            else {
              iVar7 = FUN_0001c6b0(__ptr[7],&DAT_0001f827,uVar9);
            }
            __ptr[6] = iVar7;
            if (iVar7 < 0) {
              __ptr[0xb] = __ptr[0xb] | 4;
            }
          }
          FUN_0001c510(__ptr + 0xe,0xffffffff);
          return __ptr;
        }
      }
    }
LAB_00018524:
    if (local_30 != (void *)0x0) {
      __dirp = *(DIR **)((int)local_30 + 0xc);
      pvVar6 = *(void **)((int)local_30 + 8);
      if (__dirp == (DIR *)0x0) goto LAB_0001855c;
      do {
        closedir(__dirp);
        free(local_30);
        local_30 = pvVar6;
        while( true ) {
          if (local_30 == (void *)0x0) goto LAB_0001856c;
          __dirp = *(DIR **)((int)local_30 + 0xc);
          pvVar6 = *(void **)((int)local_30 + 8);
          if (__dirp != (DIR *)0x0) break;
LAB_0001855c:
          free(local_30);
          local_30 = pvVar6;
        }
      } while( true );
    }
LAB_0001856c:
    free(local_28);
    pvVar6 = (void *)__ptr[5];
  }
  else {
    local_28 = malloc(0xa8);
    if (local_28 != (void *)0x0) {
      *(undefined1 *)((int)local_28 + 0xa4) = 0;
      *(undefined4 *)((int)local_28 + 0x34) = 0;
      *(undefined4 **)((int)local_28 + 0x2c) = __ptr;
      *(void **)((int)local_28 + 0x1c) = pvVar6;
      *(undefined4 *)((int)local_28 + 0x20) = 0;
      *(undefined4 *)((int)local_28 + 0xc) = 0;
      *(undefined4 *)((int)local_28 + 0x3e) = 0x30000;
      *(undefined4 *)((int)local_28 + 0x10) = 0;
      *(undefined4 *)((int)local_28 + 0x14) = 0;
      *(undefined4 *)((int)local_28 + 0x30) = 0xffffffff;
      *(undefined4 *)((int)local_28 + 0x38) = 0xffffffff;
      if (param_3 != 0) goto LAB_000184a0;
      local_22 = 1;
LAB_000181fa:
      local_20 = (void *)0x0;
      local_30 = (void *)0x0;
      local_38 = 0;
      do {
        sVar5 = strlen(pcVar4);
        if ((sVar5 < 3) || ((((byte)(param_2 >> 0xc) ^ 1) & 1) == 0)) {
          __size = sVar5 + 0xa8 & 0xfffffffc;
        }
        else if (pcVar4[sVar5 - 1] == '/') {
          do {
            if (pcVar4[sVar5 - 2] != '/') goto LAB_0001833c;
            sVar5 = sVar5 - 1;
          } while (sVar5 != 1);
          __size = 0xa8;
        }
        else {
LAB_0001833c:
          __size = sVar5 + 0xa8 & 0xfffffffc;
        }
        pvVar6 = malloc(__size);
        if (pvVar6 == (void *)0x0) goto LAB_00018524;
        memcpy((void *)((int)pvVar6 + 0xa4),pcVar4,sVar5);
        *(undefined1 *)((int)pvVar6 + sVar5 + 0xa4) = 0;
        *(size_t *)((int)pvVar6 + 0x34) = sVar5;
        *(undefined4 **)((int)pvVar6 + 0x2c) = __ptr;
        uVar1 = __ptr[5];
        *(undefined4 *)((int)pvVar6 + 0x20) = 0;
        *(undefined4 *)((int)pvVar6 + 0x1c) = uVar1;
        *(undefined4 *)((int)pvVar6 + 0xc) = 0;
        *(void **)((int)pvVar6 + 4) = local_28;
        *(undefined4 *)((int)pvVar6 + 0x3e) = 0x30000;
        *(undefined4 *)((int)pvVar6 + 0x10) = 0;
        *(undefined4 *)((int)pvVar6 + 0x14) = 0;
        *(undefined4 *)((int)pvVar6 + 0x30) = 0;
        *(void **)((int)pvVar6 + 0x18) = (void *)((int)pvVar6 + 0xa4);
        pvVar2 = pvVar6;
        if ((local_30 == (void *)0x0) || (local_22 == 0)) {
          uVar3 = FUN_000168b0();
          *(undefined2 *)((int)pvVar6 + 0x3c) = uVar3;
          if (param_3 != 0) goto LAB_000182f0;
          *(undefined4 *)((int)pvVar6 + 8) = 0;
          if (local_30 != (void *)0x0) goto LAB_0001850f;
        }
        else {
          *(undefined4 *)((int)pvVar6 + 0x70) = 2;
          *(undefined2 *)((int)pvVar6 + 0x3c) = 0xb;
          *(undefined4 *)((int)pvVar6 + 0x74) = 0;
          if (param_3 == 0) {
            *(undefined4 *)((int)pvVar6 + 8) = 0;
LAB_0001850f:
            *(void **)((int)local_20 + 8) = pvVar6;
            pvVar2 = local_30;
          }
          else {
LAB_000182f0:
            *(void **)((int)pvVar6 + 8) = local_30;
            pvVar6 = local_20;
          }
        }
        local_20 = pvVar6;
        local_30 = pvVar2;
        local_38 = local_38 + 1;
        pcVar4 = (char *)param_1[local_38];
      } while (pcVar4 != (char *)0x0);
      if ((param_3 != 0) && (1 < local_38)) {
        local_30 = (void *)FUN_00016a50();
      }
      goto LAB_00018370;
    }
  }
  free(pvVar6);
LAB_0001858e:
  free(__ptr);
  return (undefined4 *)0x0;
}

