
int fts_safe_changedir(FTS *sp,FTSENT *p,int fd,char *dir)

{
  undefined3 extraout_var;
  undefined3 extraout_var_00;
  uint uVar1;
  int iVar2;
  undefined4 *puVar3;
  char *pcVar4;
  __blksize_t _Var5;
  undefined4 *puVar6;
  _Bool _Var7;
  long lVar8;
  ulong uVar9;
  Hash_table *table;
  char *dir_00;
  stat *psVar10;
  char *pcVar11;
  undefined4 uVar12;
  uint uVar13;
  undefined *puVar14;
  stat sb;
  
  puVar14 = PTR___stack_chk_guard_000333c4;
  pcVar11 = (char *)sp->fts_options;
  uVar1 = *(uint *)PTR___stack_chk_guard_000333c4;
  dir_00 = PTR_fdopendir_00033108;
  psVar10 = (stat *)fd;
  pcVar4 = (char *)fd;
  if (dir == (char *)0x0) {
LAB_00018c60:
    if (((uint)pcVar11 & 4) == 0) {
      uVar13 = 0;
      dir_00 = pcVar11;
      if (fd < 0) {
LAB_00018da8:
        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);
        if ((int)pcVar4 < 0) {
          uVar13 = 0xffffffff;
          goto LAB_00018cfc;
        }
      }
LAB_00018c74:
      dir = (char *)&sb;
      dir_00 = pcVar4;
      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);
      if (iVar2 == 0) {
        if (((p->fts_statp[0].st_dev != sb.st_dev) ||
            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||
           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {
          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
          *puVar3 = 2;
          goto LAB_00018d4c;
        }
        if ((sp->fts_options & 0x200U) != 0) {
          dir = (char *)((uVar13 ^ 1) & 0xff);
          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));
          uVar13 = 0;
          dir_00 = pcVar4;
          goto LAB_00018cfc;
        }
        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);
      }
      else {
LAB_00018d4c:
        uVar13 = 0xffffffff;
      }
      if (fd < 0) {
        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
        uVar12 = *puVar3;
        (*(code *)PTR_close_000332c0)(pcVar4);
        *puVar3 = uVar12;
      }
      goto LAB_00018cfc;
    }
  }
  else {
    dir_00 = PTR_fdopendir_00033108 + 0x1d70;
    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);
    if (iVar2 != 0) goto LAB_00018c60;
    if (((uint)pcVar11 & 4) == 0) {
      if (fd < 0) {
        if (((uint)pcVar11 & 0x200) == 0) {
          uVar13 = 1;
          dir_00 = pcVar11;
        }
        else {
          _Var7 = i_ring_empty(&sp->fts_fd_ring);
          uVar13 = CONCAT31(extraout_var,_Var7);
          dir_00 = pcVar11;
          if (uVar13 == 0) {
            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);
            if (-1 < (int)pcVar4) {
              uVar13 = 1;
              fd = (int)pcVar4;
              goto LAB_00018c74;
            }
            uVar13 = 1;
            dir_00 = (char *)sp->fts_options;
          }
        }
        goto LAB_00018da8;
      }
      uVar13 = 1;
      goto LAB_00018c74;
    }
  }
  dir = (char *)psVar10;
  uVar13 = (uint)pcVar11 & 0x200;
  if (uVar13 != 0) {
    if (fd < 0) {
      uVar13 = 0;
    }
    else {
      uVar13 = 0;
      (*(code *)PTR_close_000332c0)(fd);
    }
  }
LAB_00018cfc:
  if (uVar1 == *(uint *)puVar14) {
    return uVar13;
  }
  puVar14 = PTR___stack_chk_fail_000333a8;
  (*(code *)PTR___stack_chk_fail_000333a8)();
  if ((uVar1 & 0x102) == 0) {
    _Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);
    if (CONCAT31(extraout_var_00,_Var7) == 0) {
      return 1;
    }
    ((stat *)dir)->st_dev = (ulong)dir;
    *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;
    return CONCAT31(extraout_var_00,_Var7);
  }
  puVar3 = (undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18);
  if (puVar3 != (undefined4 *)0x0) {
    lVar8 = ((stat *)dir)->st_pad4;
    _Var5 = ((stat *)dir)->st_blksize;
    table = *(Hash_table **)dir_00;
    puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;
    *puVar3 = 0;
    puVar3[3] = lVar8;
    puVar3[2] = _Var5;
    puVar3[4] = dir;
    puVar6 = (undefined4 *)hash_insert(table,puVar3);
    if (puVar3 == puVar6) {
      return 1;
    }
    (**(code **)(puVar14 + 0x1a57c))(puVar3);
    if (puVar6 != (undefined4 *)0x0) {
      uVar9 = puVar6[4];
      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;
      ((stat *)dir)->st_dev = uVar9;
      return 1;
    }
  }
  return 0;
}



uint FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)

{
  int iVar1;
  undefined4 *puVar2;
  int *piVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  int *piVar8;
  int *piVar9;
  undefined4 uVar10;
  uint uVar11;
  undefined *puVar12;
  int local_d0 [4];
  int local_c0;
  int local_bc;
  uint local_2c;
  
  puVar12 = PTR___stack_chk_guard_000333c4;
  piVar9 = *(int **)(param_1 + 0x30);
  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;
  piVar7 = (int *)PTR_fdopendir_00033108;
  piVar8 = param_3;
  piVar3 = param_3;
  if (param_4 == (int *)0x0) {
LAB_00018c60:
    if (((uint)piVar9 & 4) == 0) {
      uVar11 = 0;
      piVar7 = piVar9;
      if ((int)param_3 < 0) {
LAB_00018da8:
        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));
        if ((int)piVar3 < 0) {
          uVar11 = 0xffffffff;
          goto LAB_00018cfc;
        }
      }
LAB_00018c74:
      param_4 = local_d0;
      piVar7 = piVar3;
      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);
      if (iVar1 == 0) {
        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||
           (*(int *)(param_2 + 0x5c) != local_bc)) {
          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
          *puVar2 = 2;
          goto LAB_00018d4c;
        }
        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {
          param_4 = (int *)((uVar11 ^ 1) & 0xff);
          FUN_00018658(param_1);
          uVar11 = 0;
          piVar7 = piVar3;
          goto LAB_00018cfc;
        }
        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);
      }
      else {
LAB_00018d4c:
        uVar11 = 0xffffffff;
      }
      if ((int)param_3 < 0) {
        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
        uVar10 = *puVar2;
        (*(code *)PTR_close_000332c0)(piVar3);
        *puVar2 = uVar10;
      }
      goto LAB_00018cfc;
    }
  }
  else {
    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);
    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);
    if (iVar1 != 0) goto LAB_00018c60;
    if (((uint)piVar9 & 4) == 0) {
      if ((int)param_3 < 0) {
        if (((uint)piVar9 & 0x200) == 0) {
          uVar11 = 1;
          piVar7 = piVar9;
        }
        else {
          uVar11 = i_ring_empty(param_1 + 0x3c);
          piVar7 = piVar9;
          if (uVar11 == 0) {
            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);
            if (-1 < (int)piVar3) {
              uVar11 = 1;
              param_3 = piVar3;
              goto LAB_00018c74;
            }
            uVar11 = 1;
            piVar7 = *(int **)(param_1 + 0x30);
          }
        }
        goto LAB_00018da8;
      }
      uVar11 = 1;
      goto LAB_00018c74;
    }
  }
  param_4 = piVar8;
  uVar11 = (uint)piVar9 & 0x200;
  if (uVar11 != 0) {
    if ((int)param_3 < 0) {
      uVar11 = 0;
    }
    else {
      uVar11 = 0;
      (*(code *)PTR_close_000332c0)(param_3);
    }
  }
LAB_00018cfc:
  if (local_2c == *(uint *)puVar12) {
    return uVar11;
  }
  uVar11 = local_2c;
  puVar12 = PTR___stack_chk_fail_000333a8;
  (*(code *)PTR___stack_chk_fail_000333a8)();
  if ((uVar11 & 0x102) == 0) {
    uVar11 = cycle_check(*piVar7,param_4 + 0x12);
    if (uVar11 == 0) {
      return 1;
    }
    *param_4 = (int)param_4;
    *(undefined2 *)(param_4 + 0xf) = 2;
    return uVar11;
  }
  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);
  if (puVar2 != (undefined4 *)0x0) {
    iVar5 = param_4[0x17];
    iVar1 = param_4[0x16];
    iVar6 = *piVar7;
    puVar2[1] = param_4[0x12];
    *puVar2 = 0;
    puVar2[3] = iVar5;
    puVar2[2] = iVar1;
    puVar2[4] = param_4;
    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);
    if (puVar2 == puVar4) {
      return 1;
    }
    (**(code **)(puVar12 + 0x1a57c))(puVar2);
    if (puVar4 != (undefined4 *)0x0) {
      iVar1 = puVar4[4];
      *(undefined2 *)(param_4 + 0xf) = 2;
      *param_4 = iVar1;
      return 1;
    }
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,0x2504
addu gp,gp,t9
addiu sp,sp,-0xe8
sw s2,0xcc(sp)
sw s0,0xc4(sp)
lw s2,-0x7d0c(gp)
lw s0,0x30(a0)
sw gp,0x10(sp)
sw s6,0xdc(sp)
or s6,a1,zero
sw s5,0xd8(sp)
andi s5,s0,0x4
sw s4,0xd4(sp)
or s4,a0,zero
sw s3,0xd0(sp)
or s3,a2,zero
sw s1,0xc8(sp)
or s1,a3,zero
sw ra,0xe4(sp)
sw s7,0xe0(sp)
lw v0,0x0(s2)
sw v0,0xbc(sp)
beq a3,zero,0x00018c60
_lw a1,-0x7fc8(gp)
or a0,a3,zero
lw t9,-0x7ce0(gp)
jalr t9
_addiu a1,a1,0x1d70
bne v0,zero,0x00018c60
_lw gp,0x10(sp)
bne s5,zero,0x00018ce4
_nop
bltz s3,0x00018d84
_or s5,s3,zero
b 0x00018c74
_li s7,0x1
bne s5,zero,0x00018ce4
_nop
bltz s3,0x00018da8
_or s7,zero,zero
or s5,s3,zero
lw t9,-0x7d3c(gp)
addiu a2,sp,0x18
li a0,0x3
jalr t9
_or a1,s5,zero
lw gp,0x10(sp)
bne v0,zero,0x00018d4c
_or s0,v0,zero
lw v1,0x48(s6)
lw v0,0x18(sp)
bne v1,v0,0x00018d38
_lw t9,-0x7da0(gp)
lw v1,0x58(s6)
lw v0,0x28(sp)
bne v1,v0,0x00018d38
_lw v0,0x2c(sp)
lw v1,0x5c(s6)
bne v1,v0,0x00018d38
_nop
lw v0,0x30(s4)
andi v0,v0,0x200
bne v0,zero,0x00018e14
_lw t9,-0x7ddc(gp)
jalr t9
_or a0,s5,zero
lw gp,0x10(sp)
b 0x00018d50
_or s0,v0,zero
andi s0,s0,0x200
beq s0,zero,0x00018cfc
_nop
bgez s3,0x00018dd4
_lw t9,-0x7e10(gp)
or s0,zero,zero
lw a0,0xbc(sp)
or v0,s0,zero
lw v1,0x0(s2)
bne a0,v1,0x00018e44
_lw ra,0xe4(sp)
lw s7,0xe0(sp)
lw s6,0xdc(sp)
lw s5,0xd8(sp)
lw s4,0xd4(sp)
lw s3,0xd0(sp)
lw s2,0xcc(sp)
lw s1,0xc8(sp)
lw s0,0xc4(sp)
jr ra
_addiu sp,sp,0xe8
jalr t9
_nop
li v1,0x2
lw gp,0x10(sp)
sw v1,0x0(v0)
li s0,-0x1
bgez s3,0x00018cfc
_lw t9,-0x7da0(gp)
jalr t9
_nop
or a0,s5,zero
lw gp,0x10(sp)
or s1,v0,zero
lw t9,-0x7e10(gp)
jalr t9
_lw s3,0x0(v0)
lw gp,0x10(sp)
b 0x00018cfc
_sw s3,0x0(s1)
andi v0,s0,0x200
beq v0,zero,0x00018de8
_lw t9,-0x7ecc(gp)
addiu s5,s4,0x3c
bal 0x0001dde8
_or a0,s5,zero
lw gp,0x10(sp)
beq v0,zero,0x00018df0
_or s7,v0,zero
lw t9,-0x7fc8(gp)
or a2,s1,zero
lw a0,0x20(s4)
addiu t9,t9,-0x7490
bal 0x00018b70
_or a1,s0,zero
lw gp,0x10(sp)
bgez v0,0x00018c74
_or s5,v0,zero
b 0x00018cfc
_li s0,-0x1
or a0,s3,zero
jalr t9
_or s0,zero,zero
b 0x00018cfc
_lw gp,0x10(sp)
b 0x00018da8
_li s7,0x1
lw t9,-0x7ec8(gp)
bal 0x0001de34
_or a0,s5,zero
lw gp,0x10(sp)
bltz v0,0x00018e38
_or s5,v0,zero
li s7,0x1
b 0x00018c74
_or s3,v0,zero
lw t9,-0x7fc8(gp)
xori a2,s7,0x1
andi a2,a2,0xff
or a1,s5,zero
addiu t9,t9,-0x79a8
bal 0x00018658
_or a0,s4,zero
b 0x00018cfc
_lw gp,0x10(sp)
lw s0,0x30(s4)
b 0x00018da8
_li s7,0x1
lw t9,-0x7d28(gp)
jalr t9
_nop
(translation_unit "uint FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)" identifier (parameter_list "(int param_1,int param_2,int *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int local_d0 [4];" primitive_type (array_declarator "local_d0 [4]" identifier [ number_literal ]) ;) (declaration "int local_c0;" primitive_type identifier ;) (declaration "int local_bc;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (expression_statement "puVar12 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar12 = PTR___stack_chk_guard_000333c4" identifier = identifier) ;) (expression_statement "piVar9 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x30)" identifier = (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(uint *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_2c = *(uint *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000333c4" * (cast_expression "(uint *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar7 = (int *)PTR_fdopendir_00033108;" (assignment_expression "piVar7 = (int *)PTR_fdopendir_00033108" identifier = (cast_expression "(int *)PTR_fdopendir_00033108" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "piVar8 = param_3;" (assignment_expression "piVar8 = param_3" identifier = identifier) ;) (expression_statement "piVar3 = param_3;" (assignment_expression "piVar3 = param_3" identifier = identifier) ;) (if_statement "if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" if (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }" { (labeled_statement "LAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" statement_identifier : (if_statement "if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" if (parenthesized_expression "(((uint)piVar9 & 4) == 0)" ( (binary_expression "((uint)piVar9 & 4) == 0" (parenthesized_expression "((uint)piVar9 & 4)" ( (binary_expression "(uint)piVar9 & 4" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" identifier = identifier) ;) (if_statement "if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" { (labeled_statement "LAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));" statement_identifier : (expression_statement "piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));" (assignment_expression "piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" identifier = (cast_expression "(int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x20))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) ))))) ;)) (if_statement "if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" if (parenthesized_expression "((int)piVar3 < 0)" ( (binary_expression "(int)piVar3 < 0" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" { (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00018c74:\n      param_4 = local_d0;" statement_identifier : (expression_statement "param_4 = local_d0;" (assignment_expression "param_4 = local_d0" identifier = identifier) ;)) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR___fxstat64_00033394)(3);" (assignment_expression "iVar1 = (*(code *)PTR___fxstat64_00033394)(3)" identifier = (call_expression "(*(code *)PTR___fxstat64_00033394)(3)" (parenthesized_expression "(*(code *)PTR___fxstat64_00033394)" ( (pointer_expression "*(code *)PTR___fxstat64_00033394" * (cast_expression "(code *)PTR___fxstat64_00033394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3)" ( number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }" { (if_statement "if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }" if (parenthesized_expression "(((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc))" ( (binary_expression "((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)" (parenthesized_expression "((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0))" ( (binary_expression "(*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)" (parenthesized_expression "(*(int *)(param_2 + 0x48) != local_d0[0])" ( (binary_expression "*(int *)(param_2 + 0x48) != local_d0[0]" (pointer_expression "*(int *)(param_2 + 0x48)" * (cast_expression "(int *)(param_2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x48)" ( (binary_expression "param_2 + 0x48" identifier + number_literal) )))) != (subscript_expression "local_d0[0]" identifier [ number_literal ])) )) || (parenthesized_expression "(*(int *)(param_2 + 0x58) != local_c0)" ( (binary_expression "*(int *)(param_2 + 0x58) != local_c0" (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) != identifier) ))) )) || (parenthesized_expression "(*(int *)(param_2 + 0x5c) != local_bc)" ( (binary_expression "*(int *)(param_2 + 0x5c) != local_bc" (pointer_expression "*(int *)(param_2 + 0x5c)" * (cast_expression "(int *)(param_2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) )))) != identifier) ))) )) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 2;" (assignment_expression "*puVar2 = 2" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (goto_statement "goto LAB_00018d4c;" goto statement_identifier ;) })) (if_statement "if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }" if (parenthesized_expression "((*(uint *)(param_1 + 0x30) & 0x200) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x30) & 0x200) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x30) & 0x200)" ( (binary_expression "*(uint *)(param_1 + 0x30) & 0x200" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }" { (expression_statement "param_4 = (int *)((uVar11 ^ 1) & 0xff);" (assignment_expression "param_4 = (int *)((uVar11 ^ 1) & 0xff)" identifier = (cast_expression "(int *)((uVar11 ^ 1) & 0xff)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uVar11 ^ 1) & 0xff)" ( (binary_expression "(uVar11 ^ 1) & 0xff" (parenthesized_expression "(uVar11 ^ 1)" ( (binary_expression "uVar11 ^ 1" identifier ^ number_literal) )) & number_literal) )))) ;) (expression_statement "FUN_00018658(param_1);" (call_expression "FUN_00018658(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" identifier = identifier) ;) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) })) (expression_statement "uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);" (assignment_expression "uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(piVar3)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier )))) ;) }) (else_clause "else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" else (compound_statement "{\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" { (labeled_statement "LAB_00018d4c:\n        uVar11 = 0xffffffff;" statement_identifier : (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" identifier = number_literal) ;)) }))) (if_statement "if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar10 = *puVar2;" (assignment_expression "uVar10 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "(*(code *)PTR_close_000332c0)(piVar3);" (call_expression "(*(code *)PTR_close_000332c0)(piVar3)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" ( (pointer_expression "*(code *)PTR_close_000332c0" * (cast_expression "(code *)PTR_close_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;) (expression_statement "*puVar2 = uVar10;" (assignment_expression "*puVar2 = uVar10" (pointer_expression "*puVar2" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) }))) }) (else_clause "else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" else (compound_statement "{\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" { (expression_statement "piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);" (assignment_expression "piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70)" identifier = (cast_expression "(int *)(PTR_fdopendir_00033108 + 0x1d70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_fdopendir_00033108 + 0x1d70)" ( (binary_expression "PTR_fdopendir_00033108 + 0x1d70" identifier + number_literal) )))) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4)" identifier = (call_expression "(*(code *)PTR_strcmp_000333f0)(param_4)" (parenthesized_expression "(*(code *)PTR_strcmp_000333f0)" ( (pointer_expression "*(code *)PTR_strcmp_000333f0" * (cast_expression "(code *)PTR_strcmp_000333f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00018c60;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00018c60;" goto statement_identifier ;)) (if_statement "if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }" if (parenthesized_expression "(((uint)piVar9 & 4) == 0)" ( (binary_expression "((uint)piVar9 & 4) == 0" (parenthesized_expression "((uint)piVar9 & 4)" ( (binary_expression "(uint)piVar9 & 4" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }" { (if_statement "if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }" { (if_statement "if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" if (parenthesized_expression "(((uint)piVar9 & 0x200) == 0)" ( (binary_expression "((uint)piVar9 & 0x200) == 0" (parenthesized_expression "((uint)piVar9 & 0x200)" ( (binary_expression "(uint)piVar9 & 0x200" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" identifier = identifier) ;) }) (else_clause "else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" else (compound_statement "{\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" { (expression_statement "uVar11 = i_ring_empty(param_1 + 0x3c);" (assignment_expression "uVar11 = i_ring_empty(param_1 + 0x3c)" identifier = (call_expression "i_ring_empty(param_1 + 0x3c)" identifier (argument_list "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) ;) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" identifier = identifier) ;) (if_statement "if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }" { (expression_statement "piVar3 = (int *)i_ring_pop(param_1 + 0x3c);" (assignment_expression "piVar3 = (int *)i_ring_pop(param_1 + 0x3c)" identifier = (cast_expression "(int *)i_ring_pop(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "i_ring_pop(param_1 + 0x3c)" identifier (argument_list "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (if_statement "if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }" if (parenthesized_expression "(-1 < (int)piVar3)" ( (binary_expression "-1 < (int)piVar3" number_literal < (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "param_3 = piVar3;" (assignment_expression "param_3 = piVar3" identifier = identifier) ;) (goto_statement "goto LAB_00018c74;" goto statement_identifier ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "piVar7 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar7 = *(int **)(param_1 + 0x30)" identifier = (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) })) }))) (goto_statement "goto LAB_00018da8;" goto statement_identifier ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00018c74;" goto statement_identifier ;) })) }))) (expression_statement "param_4 = piVar8;" (assignment_expression "param_4 = piVar8" identifier = identifier) ;) (expression_statement "uVar11 = (uint)piVar9 & 0x200;" (assignment_expression "uVar11 = (uint)piVar9 & 0x200" identifier = (binary_expression "(uint)piVar9 & 0x200" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }" { (if_statement "if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar11 = 0;\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" else (compound_statement "{\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_close_000332c0)(param_3);" (call_expression "(*(code *)PTR_close_000332c0)(param_3)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" ( (pointer_expression "*(code *)PTR_close_000332c0" * (cast_expression "(code *)PTR_close_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) }))) })) (labeled_statement "LAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }" statement_identifier : (if_statement "if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }" if (parenthesized_expression "(local_2c == *(uint *)puVar12)" ( (binary_expression "local_2c == *(uint *)puVar12" identifier == (pointer_expression "*(uint *)puVar12" * (cast_expression "(uint *)puVar12" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar11;\n  }" { (return_statement "return uVar11;" return identifier ;) }))) (expression_statement "uVar11 = local_2c;" (assignment_expression "uVar11 = local_2c" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000333a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }" if (parenthesized_expression "((uVar11 & 0x102) == 0)" ( (binary_expression "(uVar11 & 0x102) == 0" (parenthesized_expression "(uVar11 & 0x102)" ( (binary_expression "uVar11 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }" { (expression_statement "uVar11 = cycle_check(*piVar7,param_4 + 0x12);" (assignment_expression "uVar11 = cycle_check(*piVar7,param_4 + 0x12)" identifier = (call_expression "cycle_check(*piVar7,param_4 + 0x12)" identifier (argument_list "(*piVar7,param_4 + 0x12)" ( (pointer_expression "*piVar7" * identifier) , (binary_expression "param_4 + 0x12" identifier + number_literal) )))) ;) (if_statement "if (uVar11 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "*param_4 = (int)param_4;" (assignment_expression "*param_4 = (int)param_4" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined2 *)(param_4 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_4 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_4 + 0xf)" * (cast_expression "(undefined2 *)(param_4 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xf)" ( (binary_expression "param_4 + 0xf" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar11;" return identifier ;) })) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar12 + 0x1a520))(0x18)" (parenthesized_expression "(**(code **)(puVar12 + 0x1a520))" ( (pointer_expression "**(code **)(puVar12 + 0x1a520)" * (pointer_expression "*(code **)(puVar12 + 0x1a520)" * (cast_expression "(code **)(puVar12 + 0x1a520)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1a520)" ( (binary_expression "puVar12 + 0x1a520" identifier + number_literal) ))))) )) (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }" { (expression_statement "iVar5 = param_4[0x17];" (assignment_expression "iVar5 = param_4[0x17]" identifier = (subscript_expression "param_4[0x17]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_4[0x16];" (assignment_expression "iVar1 = param_4[0x16]" identifier = (subscript_expression "param_4[0x16]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *piVar7;" (assignment_expression "iVar6 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "puVar2[1] = param_4[0x12];" (assignment_expression "puVar2[1] = param_4[0x12]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "param_4[0x12]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[3] = iVar5;" (assignment_expression "puVar2[3] = iVar5" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = iVar1;" (assignment_expression "puVar2[2] = iVar1" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_4;" (assignment_expression "puVar2[4] = param_4" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);" (assignment_expression "puVar4 = (undefined4 *)hash_insert(iVar6,puVar2)" identifier = (cast_expression "(undefined4 *)hash_insert(iVar6,puVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(iVar6,puVar2)" identifier (argument_list "(iVar6,puVar2)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2 == puVar4) {\n      return 1;\n    }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(puVar12 + 0x1a57c))(puVar2);" (call_expression "(**(code **)(puVar12 + 0x1a57c))(puVar2)" (parenthesized_expression "(**(code **)(puVar12 + 0x1a57c))" ( (pointer_expression "**(code **)(puVar12 + 0x1a57c)" * (pointer_expression "*(code **)(puVar12 + 0x1a57c)" * (cast_expression "(code **)(puVar12 + 0x1a57c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1a57c)" ( (binary_expression "puVar12 + 0x1a57c" identifier + number_literal) ))))) )) (argument_list "(puVar2)" ( identifier ))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }" { (expression_statement "iVar1 = puVar4[4];" (assignment_expression "iVar1 = puVar4[4]" identifier = (subscript_expression "puVar4[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_4 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_4 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_4 + 0xf)" * (cast_expression "(undefined2 *)(param_4 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xf)" ( (binary_expression "param_4 + 0xf" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int fts_safe_changedir(FTS *sp,FTSENT *p,int fd,char *dir)\n\n{\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  uint uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  __blksize_t _Var5;\n  undefined4 *puVar6;\n  _Bool _Var7;\n  long lVar8;\n  ulong uVar9;\n  Hash_table *table;\n  char *dir_00;\n  stat *psVar10;\n  char *pcVar11;\n  undefined4 uVar12;\n  uint uVar13;\n  undefined *puVar14;\n  stat sb;\n  \n  puVar14 = PTR___stack_chk_guard_000333c4;\n  pcVar11 = (char *)sp->fts_options;\n  uVar1 = *(uint *)PTR___stack_chk_guard_000333c4;\n  dir_00 = PTR_fdopendir_00033108;\n  psVar10 = (stat *)fd;\n  pcVar4 = (char *)fd;\n  if (dir == (char *)0x0) {\nLAB_00018c60:\n    if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    dir_00 = PTR_fdopendir_00033108 + 0x1d70;\n    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);\n    if (iVar2 != 0) goto LAB_00018c60;\n    if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  dir = (char *)psVar10;\n  uVar13 = (uint)pcVar11 & 0x200;\n  if (uVar13 != 0) {\n    if (fd < 0) {\n      uVar13 = 0;\n    }\n    else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }\n  }\nLAB_00018cfc:\n  if (uVar1 == *(uint *)puVar14) {\n    return uVar13;\n  }\n  puVar14 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar1 & 0x102) == 0) {\n    _Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);\n    if (CONCAT31(extraout_var_00,_Var7) == 0) {\n      return 1;\n    }\n    ((stat *)dir)->st_dev = (ulong)dir;\n    *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n    return CONCAT31(extraout_var_00,_Var7);\n  }\n  puVar3 = (undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18);\n  if (puVar3 != (undefined4 *)0x0) {\n    lVar8 = ((stat *)dir)->st_pad4;\n    _Var5 = ((stat *)dir)->st_blksize;\n    table = *(Hash_table **)dir_00;\n    puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;\n    *puVar3 = 0;\n    puVar3[3] = lVar8;\n    puVar3[2] = _Var5;\n    puVar3[4] = dir;\n    puVar6 = (undefined4 *)hash_insert(table,puVar3);\n    if (puVar3 == puVar6) {\n      return 1;\n    }\n    (**(code **)(puVar14 + 0x1a57c))(puVar3);\n    if (puVar6 != (undefined4 *)0x0) {\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int fts_safe_changedir(FTS *sp,FTSENT *p,int fd,char *dir)\n\n{\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  uint uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  __blksize_t _Var5;\n  undefined4 *puVar6;\n  _Bool _Var7;\n  long lVar8;\n  ulong uVar9;\n  Hash_table *table;\n  char *dir_00;\n  stat *psVar10;\n  char *pcVar11;\n  undefined4 uVar12;\n  uint uVar13;\n  undefined *puVar14;\n  stat sb;\n  \n  puVar14 = PTR___stack_chk_guard_000333c4;\n  pcVar11 = (char *)sp->fts_options;\n  uVar1 = *(uint *)PTR___stack_chk_guard_000333c4;\n  dir_00 = PTR_fdopendir_00033108;\n  psVar10 = (stat *)fd;\n  pcVar4 = (char *)fd;\n  if (dir == (char *)0x0) {\nLAB_00018c60:\n    if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    dir_00 = PTR_fdopendir_00033108 + 0x1d70;\n    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);\n    if (iVar2 != 0) goto LAB_00018c60;\n    if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  dir = (char *)psVar10;\n  uVar13 = (uint)pcVar11 & 0x200;\n  if (uVar13 != 0) {\n    if (fd < 0) {\n      uVar13 = 0;\n    }\n    else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }\n  }\nLAB_00018cfc:\n  if (uVar1 == *(uint *)puVar14) {\n    return uVar13;\n  }\n  puVar14 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar1 & 0x102) == 0) {\n    _Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);\n    if (CONCAT31(extraout_var_00,_Var7) == 0) {\n      return 1;\n    }\n    ((stat *)dir)->st_dev = (ulong)dir;\n    *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n    return CONCAT31(extraout_var_00,_Var7);\n  }\n  puVar3 = (undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18);\n  if (puVar3 != (undefined4 *)0x0) {\n    lVar8 = ((stat *)dir)->st_pad4;\n    _Var5 = ((stat *)dir)->st_blksize;\n    table = *(Hash_table **)dir_00;\n    puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;\n    *puVar3 = 0;\n    puVar3[3] = lVar8;\n    puVar3[2] = _Var5;\n    puVar3[4] = dir;\n    puVar6 = (undefined4 *)hash_insert(table,puVar3);\n    if (puVar3 == puVar6) {\n      return 1;\n    }\n    (**(code **)(puVar14 + 0x1a57c))(puVar3);\n    if (puVar6 != (undefined4 *)0x0) {\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "fts_safe_changedir(FTS *sp,FTSENT *p,int fd,char *dir)" identifier (parameter_list "(FTS *sp,FTSENT *p,int fd,char *dir)" ( (parameter_declaration "FTS *sp" type_identifier (pointer_declarator "*sp" * identifier)) , (parameter_declaration "FTSENT *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "char *dir" primitive_type (pointer_declarator "*dir" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  uint uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  __blksize_t _Var5;\n  undefined4 *puVar6;\n  _Bool _Var7;\n  long lVar8;\n  ulong uVar9;\n  Hash_table *table;\n  char *dir_00;\n  stat *psVar10;\n  char *pcVar11;\n  undefined4 uVar12;\n  uint uVar13;\n  undefined *puVar14;\n  stat sb;\n  \n  puVar14 = PTR___stack_chk_guard_000333c4;\n  pcVar11 = (char *)sp->fts_options;\n  uVar1 = *(uint *)PTR___stack_chk_guard_000333c4;\n  dir_00 = PTR_fdopendir_00033108;\n  psVar10 = (stat *)fd;\n  pcVar4 = (char *)fd;\n  if (dir == (char *)0x0) {\nLAB_00018c60:\n    if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    dir_00 = PTR_fdopendir_00033108 + 0x1d70;\n    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);\n    if (iVar2 != 0) goto LAB_00018c60;\n    if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  dir = (char *)psVar10;\n  uVar13 = (uint)pcVar11 & 0x200;\n  if (uVar13 != 0) {\n    if (fd < 0) {\n      uVar13 = 0;\n    }\n    else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }\n  }\nLAB_00018cfc:\n  if (uVar1 == *(uint *)puVar14) {\n    return uVar13;\n  }\n  puVar14 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar1 & 0x102) == 0) {\n    _Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);\n    if (CONCAT31(extraout_var_00,_Var7) == 0) {\n      return 1;\n    }\n    ((stat *)dir)->st_dev = (ulong)dir;\n    *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n    return CONCAT31(extraout_var_00,_Var7);\n  }\n  puVar3 = (undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18);\n  if (puVar3 != (undefined4 *)0x0) {\n    lVar8 = ((stat *)dir)->st_pad4;\n    _Var5 = ((stat *)dir)->st_blksize;\n    table = *(Hash_table **)dir_00;\n    puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;\n    *puVar3 = 0;\n    puVar3[3] = lVar8;\n    puVar3[2] = _Var5;\n    puVar3[4] = dir;\n    puVar6 = (undefined4 *)hash_insert(table,puVar3);\n    if (puVar3 == puVar6) {\n      return 1;\n    }\n    (**(code **)(puVar14 + 0x1a57c))(puVar3);\n    if (puVar6 != (undefined4 *)0x0) {\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "undefined3 extraout_var_00;" type_identifier identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "__blksize_t _Var5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "_Bool _Var7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "Hash_table *table;" type_identifier (pointer_declarator "*table" * identifier) ;) (declaration "char *dir_00;" primitive_type (pointer_declarator "*dir_00" * identifier) ;) (declaration "stat *psVar10;" type_identifier (pointer_declarator "*psVar10" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "stat sb;" type_identifier identifier ;) (expression_statement "puVar14 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar14 = PTR___stack_chk_guard_000333c4" identifier = identifier) ;) (expression_statement "pcVar11 = (char *)sp->fts_options;" (assignment_expression "pcVar11 = (char *)sp->fts_options" identifier = (cast_expression "(char *)sp->fts_options" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "sp->fts_options" identifier -> field_identifier))) ;) (expression_statement "uVar1 = *(uint *)PTR___stack_chk_guard_000333c4;" (assignment_expression "uVar1 = *(uint *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000333c4" * (cast_expression "(uint *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "dir_00 = PTR_fdopendir_00033108;" (assignment_expression "dir_00 = PTR_fdopendir_00033108" identifier = identifier) ;) (expression_statement "psVar10 = (stat *)fd;" (assignment_expression "psVar10 = (stat *)fd" identifier = (cast_expression "(stat *)fd" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcVar4 = (char *)fd;" (assignment_expression "pcVar4 = (char *)fd" identifier = (cast_expression "(char *)fd" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (dir == (char *)0x0) {\nLAB_00018c60:\n    if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    dir_00 = PTR_fdopendir_00033108 + 0x1d70;\n    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);\n    if (iVar2 != 0) goto LAB_00018c60;\n    if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }\n  }" if (parenthesized_expression "(dir == (char *)0x0)" ( (binary_expression "dir == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00018c60:\n    if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }\n  }" { (labeled_statement "LAB_00018c60:\n    if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }" statement_identifier : (if_statement "if (((uint)pcVar11 & 4) == 0) {\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }" if (parenthesized_expression "(((uint)pcVar11 & 4) == 0)" ( (binary_expression "((uint)pcVar11 & 4) == 0" (parenthesized_expression "((uint)pcVar11 & 4)" ( (binary_expression "(uint)pcVar11 & 4" (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar13 = 0;\n      dir_00 = pcVar11;\n      if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      dir = (char *)&sb;\n      dir_00 = pcVar4;\n      iVar2 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }\n      if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }\n      goto LAB_00018cfc;\n    }" { (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "dir_00 = pcVar11;" (assignment_expression "dir_00 = pcVar11" identifier = identifier) ;) (if_statement "if (fd < 0) {\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);\n        if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" { (labeled_statement "LAB_00018da8:\n        pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);" statement_identifier : (expression_statement "pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir);" (assignment_expression "pcVar4 = (char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir)" identifier = (cast_expression "(char *)diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "diropen((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir)" identifier (argument_list "((FTS *)sp->fts_cwd_fd,dir_00,(FTS *)dir)" ( (cast_expression "(FTS *)sp->fts_cwd_fd" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sp->fts_cwd_fd" identifier -> field_identifier)) , identifier , (cast_expression "(FTS *)dir" ( (type_descriptor "FTS *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;)) (if_statement "if ((int)pcVar4 < 0) {\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" if (parenthesized_expression "((int)pcVar4 < 0)" ( (binary_expression "(int)pcVar4 < 0" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          uVar13 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" { (expression_statement "uVar13 = 0xffffffff;" (assignment_expression "uVar13 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00018c74:\n      dir = (char *)&sb;" statement_identifier : (expression_statement "dir = (char *)&sb;" (assignment_expression "dir = (char *)&sb" identifier = (cast_expression "(char *)&sb" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&sb" & identifier))) ;)) (expression_statement "dir_00 = pcVar4;" (assignment_expression "dir_00 = pcVar4" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR___fxstat64_00033394)(3);" (assignment_expression "iVar2 = (*(code *)PTR___fxstat64_00033394)(3)" identifier = (call_expression "(*(code *)PTR___fxstat64_00033394)(3)" (parenthesized_expression "(*(code *)PTR___fxstat64_00033394)" ( (pointer_expression "*(code *)PTR___fxstat64_00033394" * (cast_expression "(code *)PTR___fxstat64_00033394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }\n      else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }\n        uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);\n      }" { (if_statement "if (((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)) {\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }" if (parenthesized_expression "(((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_))" ( (binary_expression "((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)) ||\n           ((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)" (parenthesized_expression "((p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_))" ( (binary_expression "(p->fts_statp[0].st_dev != sb.st_dev) ||\n            (*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)" (parenthesized_expression "(p->fts_statp[0].st_dev != sb.st_dev)" ( (binary_expression "p->fts_statp[0].st_dev != sb.st_dev" (field_expression "p->fts_statp[0].st_dev" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier) != (field_expression "sb.st_dev" identifier . field_identifier)) )) || (parenthesized_expression "(*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_)" ( (binary_expression "*(int *)&p->fts_statp[0].st_ino != sb.st_ino._0_4_" (pointer_expression "*(int *)&p->fts_statp[0].st_ino" * (cast_expression "(int *)&p->fts_statp[0].st_ino" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->fts_statp[0].st_ino" & (field_expression "p->fts_statp[0].st_ino" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) != (field_expression "sb.st_ino._0_4_" (field_expression "sb.st_ino" identifier . field_identifier) . field_identifier)) ))) )) || (parenthesized_expression "((int)p->fts_statp[0].st_ino != sb.st_ino._4_4_)" ( (binary_expression "(int)p->fts_statp[0].st_ino != sb.st_ino._4_4_" (cast_expression "(int)p->fts_statp[0].st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "p->fts_statp[0].st_ino" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)) != (field_expression "sb.st_ino._4_4_" (field_expression "sb.st_ino" identifier . field_identifier) . field_identifier)) ))) )) (compound_statement "{\n          puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar3 = 2;\n          goto LAB_00018d4c;\n        }" { (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 2;" (assignment_expression "*puVar3 = 2" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (goto_statement "goto LAB_00018d4c;" goto statement_identifier ;) })) (if_statement "if ((sp->fts_options & 0x200U) != 0) {\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }" if (parenthesized_expression "((sp->fts_options & 0x200U) != 0)" ( (binary_expression "(sp->fts_options & 0x200U) != 0" (parenthesized_expression "(sp->fts_options & 0x200U)" ( (binary_expression "sp->fts_options & 0x200U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          dir = (char *)((uVar13 ^ 1) & 0xff);\n          cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));\n          uVar13 = 0;\n          dir_00 = pcVar4;\n          goto LAB_00018cfc;\n        }" { (expression_statement "dir = (char *)((uVar13 ^ 1) & 0xff);" (assignment_expression "dir = (char *)((uVar13 ^ 1) & 0xff)" identifier = (cast_expression "(char *)((uVar13 ^ 1) & 0xff)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uVar13 ^ 1) & 0xff)" ( (binary_expression "(uVar13 ^ 1) & 0xff" (parenthesized_expression "(uVar13 ^ 1)" ( (binary_expression "uVar13 ^ 1" identifier ^ number_literal) )) & number_literal) )))) ;) (expression_statement "cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0));" (call_expression "cwd_advance_fd(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0))" identifier (argument_list "(sp,(int)pcVar4,SUB41(uVar13 ^ 1,0))" ( identifier , (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) , (call_expression "SUB41(uVar13 ^ 1,0)" identifier (argument_list "(uVar13 ^ 1,0)" ( (binary_expression "uVar13 ^ 1" identifier ^ number_literal) , number_literal ))) ))) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "dir_00 = pcVar4;" (assignment_expression "dir_00 = pcVar4" identifier = identifier) ;) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) })) (expression_statement "uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4);" (assignment_expression "uVar13 = (*(code *)PTR_fchdir_000332f4)(pcVar4)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(pcVar4)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) }) (else_clause "else {\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }" else (compound_statement "{\nLAB_00018d4c:\n        uVar13 = 0xffffffff;\n      }" { (labeled_statement "LAB_00018d4c:\n        uVar13 = 0xffffffff;" statement_identifier : (expression_statement "uVar13 = 0xffffffff;" (assignment_expression "uVar13 = 0xffffffff" identifier = number_literal) ;)) }))) (if_statement "if (fd < 0) {\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n        puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar12 = *puVar3;\n        (*(code *)PTR_close_000332c0)(pcVar4);\n        *puVar3 = uVar12;\n      }" { (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar12 = *puVar3;" (assignment_expression "uVar12 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "(*(code *)PTR_close_000332c0)(pcVar4);" (call_expression "(*(code *)PTR_close_000332c0)(pcVar4)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" ( (pointer_expression "*(code *)PTR_close_000332c0" * (cast_expression "(code *)PTR_close_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "*puVar3 = uVar12;" (assignment_expression "*puVar3 = uVar12" (pointer_expression "*puVar3" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) }))) }) (else_clause "else {\n    dir_00 = PTR_fdopendir_00033108 + 0x1d70;\n    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);\n    if (iVar2 != 0) goto LAB_00018c60;\n    if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }\n  }" else (compound_statement "{\n    dir_00 = PTR_fdopendir_00033108 + 0x1d70;\n    iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);\n    if (iVar2 != 0) goto LAB_00018c60;\n    if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }\n  }" { (expression_statement "dir_00 = PTR_fdopendir_00033108 + 0x1d70;" (assignment_expression "dir_00 = PTR_fdopendir_00033108 + 0x1d70" identifier = (binary_expression "PTR_fdopendir_00033108 + 0x1d70" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_000333f0)(dir);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_000333f0)(dir)" identifier = (call_expression "(*(code *)PTR_strcmp_000333f0)(dir)" (parenthesized_expression "(*(code *)PTR_strcmp_000333f0)" ( (pointer_expression "*(code *)PTR_strcmp_000333f0" * (cast_expression "(code *)PTR_strcmp_000333f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dir)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_00018c60;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00018c60;" goto statement_identifier ;)) (if_statement "if (((uint)pcVar11 & 4) == 0) {\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }" if (parenthesized_expression "(((uint)pcVar11 & 4) == 0)" ( (binary_expression "((uint)pcVar11 & 4) == 0" (parenthesized_expression "((uint)pcVar11 & 4)" ( (binary_expression "(uint)pcVar11 & 4" (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar13 = 1;\n      goto LAB_00018c74;\n    }" { (if_statement "if (fd < 0) {\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n        if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }\n        goto LAB_00018da8;\n      }" { (if_statement "if (((uint)pcVar11 & 0x200) == 0) {\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }\n        else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }" if (parenthesized_expression "(((uint)pcVar11 & 0x200) == 0)" ( (binary_expression "((uint)pcVar11 & 0x200) == 0" (parenthesized_expression "((uint)pcVar11 & 0x200)" ( (binary_expression "(uint)pcVar11 & 0x200" (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar13 = 1;\n          dir_00 = pcVar11;\n        }" { (expression_statement "uVar13 = 1;" (assignment_expression "uVar13 = 1" identifier = number_literal) ;) (expression_statement "dir_00 = pcVar11;" (assignment_expression "dir_00 = pcVar11" identifier = identifier) ;) }) (else_clause "else {\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }" else (compound_statement "{\n          _Var7 = i_ring_empty(&sp->fts_fd_ring);\n          uVar13 = CONCAT31(extraout_var,_Var7);\n          dir_00 = pcVar11;\n          if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }\n        }" { (expression_statement "_Var7 = i_ring_empty(&sp->fts_fd_ring);" (assignment_expression "_Var7 = i_ring_empty(&sp->fts_fd_ring)" identifier = (call_expression "i_ring_empty(&sp->fts_fd_ring)" identifier (argument_list "(&sp->fts_fd_ring)" ( (pointer_expression "&sp->fts_fd_ring" & (field_expression "sp->fts_fd_ring" identifier -> field_identifier)) )))) ;) (expression_statement "uVar13 = CONCAT31(extraout_var,_Var7);" (assignment_expression "uVar13 = CONCAT31(extraout_var,_Var7)" identifier = (call_expression "CONCAT31(extraout_var,_Var7)" identifier (argument_list "(extraout_var,_Var7)" ( identifier , identifier )))) ;) (expression_statement "dir_00 = pcVar11;" (assignment_expression "dir_00 = pcVar11" identifier = identifier) ;) (if_statement "if (uVar13 == 0) {\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (compound_statement "{\n            pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);\n            if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }\n            uVar13 = 1;\n            dir_00 = (char *)sp->fts_options;\n          }" { (expression_statement "pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring);" (assignment_expression "pcVar4 = (char *)i_ring_pop(&sp->fts_fd_ring)" identifier = (cast_expression "(char *)i_ring_pop(&sp->fts_fd_ring)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "i_ring_pop(&sp->fts_fd_ring)" identifier (argument_list "(&sp->fts_fd_ring)" ( (pointer_expression "&sp->fts_fd_ring" & (field_expression "sp->fts_fd_ring" identifier -> field_identifier)) ))))) ;) (if_statement "if (-1 < (int)pcVar4) {\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }" if (parenthesized_expression "(-1 < (int)pcVar4)" ( (binary_expression "-1 < (int)pcVar4" number_literal < (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar13 = 1;\n              fd = (int)pcVar4;\n              goto LAB_00018c74;\n            }" { (expression_statement "uVar13 = 1;" (assignment_expression "uVar13 = 1" identifier = number_literal) ;) (expression_statement "fd = (int)pcVar4;" (assignment_expression "fd = (int)pcVar4" identifier = (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00018c74;" goto statement_identifier ;) })) (expression_statement "uVar13 = 1;" (assignment_expression "uVar13 = 1" identifier = number_literal) ;) (expression_statement "dir_00 = (char *)sp->fts_options;" (assignment_expression "dir_00 = (char *)sp->fts_options" identifier = (cast_expression "(char *)sp->fts_options" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "sp->fts_options" identifier -> field_identifier))) ;) })) }))) (goto_statement "goto LAB_00018da8;" goto statement_identifier ;) })) (expression_statement "uVar13 = 1;" (assignment_expression "uVar13 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00018c74;" goto statement_identifier ;) })) }))) (expression_statement "dir = (char *)psVar10;" (assignment_expression "dir = (char *)psVar10" identifier = (cast_expression "(char *)psVar10" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar13 = (uint)pcVar11 & 0x200;" (assignment_expression "uVar13 = (uint)pcVar11 & 0x200" identifier = (binary_expression "(uint)pcVar11 & 0x200" (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if (uVar13 != 0) {\n    if (fd < 0) {\n      uVar13 = 0;\n    }\n    else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }\n  }" if (parenthesized_expression "(uVar13 != 0)" ( (binary_expression "uVar13 != 0" identifier != number_literal) )) (compound_statement "{\n    if (fd < 0) {\n      uVar13 = 0;\n    }\n    else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }\n  }" { (if_statement "if (fd < 0) {\n      uVar13 = 0;\n    }\n    else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n      uVar13 = 0;\n    }" { (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }" else (compound_statement "{\n      uVar13 = 0;\n      (*(code *)PTR_close_000332c0)(fd);\n    }" { (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_close_000332c0)(fd);" (call_expression "(*(code *)PTR_close_000332c0)(fd)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" ( (pointer_expression "*(code *)PTR_close_000332c0" * (cast_expression "(code *)PTR_close_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd)" ( identifier ))) ;) }))) })) (labeled_statement "LAB_00018cfc:\n  if (uVar1 == *(uint *)puVar14) {\n    return uVar13;\n  }" statement_identifier : (if_statement "if (uVar1 == *(uint *)puVar14) {\n    return uVar13;\n  }" if (parenthesized_expression "(uVar1 == *(uint *)puVar14)" ( (binary_expression "uVar1 == *(uint *)puVar14" identifier == (pointer_expression "*(uint *)puVar14" * (cast_expression "(uint *)puVar14" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar13;\n  }" { (return_statement "return uVar13;" return identifier ;) }))) (expression_statement "puVar14 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000333a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((uVar1 & 0x102) == 0) {\n    _Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);\n    if (CONCAT31(extraout_var_00,_Var7) == 0) {\n      return 1;\n    }\n    ((stat *)dir)->st_dev = (ulong)dir;\n    *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n    return CONCAT31(extraout_var_00,_Var7);\n  }" if (parenthesized_expression "((uVar1 & 0x102) == 0)" ( (binary_expression "(uVar1 & 0x102) == 0" (parenthesized_expression "(uVar1 & 0x102)" ( (binary_expression "uVar1 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    _Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);\n    if (CONCAT31(extraout_var_00,_Var7) == 0) {\n      return 1;\n    }\n    ((stat *)dir)->st_dev = (ulong)dir;\n    *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n    return CONCAT31(extraout_var_00,_Var7);\n  }" { (expression_statement "_Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim);" (assignment_expression "_Var7 = cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim)" identifier = (call_expression "cycle_check(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim)" identifier (argument_list "(*(cycle_check_state **)dir_00,(stat *)&((stat *)dir)->st_mtim)" ( (pointer_expression "*(cycle_check_state **)dir_00" * (cast_expression "(cycle_check_state **)dir_00" ( (type_descriptor "cycle_check_state **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (cast_expression "(stat *)&((stat *)dir)->st_mtim" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&((stat *)dir)->st_mtim" & (field_expression "((stat *)dir)->st_mtim" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier))) )))) ;) (if_statement "if (CONCAT31(extraout_var_00,_Var7) == 0) {\n      return 1;\n    }" if (parenthesized_expression "(CONCAT31(extraout_var_00,_Var7) == 0)" ( (binary_expression "CONCAT31(extraout_var_00,_Var7) == 0" (call_expression "CONCAT31(extraout_var_00,_Var7)" identifier (argument_list "(extraout_var_00,_Var7)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "((stat *)dir)->st_dev = (ulong)dir;" (assignment_expression "((stat *)dir)->st_dev = (ulong)dir" (field_expression "((stat *)dir)->st_dev" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) = (cast_expression "(ulong)dir" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "*(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;" (assignment_expression "*(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2" (pointer_expression "*(undefined2 *)((int)&((stat *)dir)->st_size + 4)" * (cast_expression "(undefined2 *)((int)&((stat *)dir)->st_size + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&((stat *)dir)->st_size + 4)" ( (binary_expression "(int)&((stat *)dir)->st_size + 4" (cast_expression "(int)&((stat *)dir)->st_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&((stat *)dir)->st_size" & (field_expression "((stat *)dir)->st_size" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier))) + number_literal) )))) = number_literal) ;) (return_statement "return CONCAT31(extraout_var_00,_Var7);" return (call_expression "CONCAT31(extraout_var_00,_Var7)" identifier (argument_list "(extraout_var_00,_Var7)" ( identifier , identifier ))) ;) })) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18);" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar14 + 0x1a520))(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar14 + 0x1a520))(0x18)" (parenthesized_expression "(**(code **)(puVar14 + 0x1a520))" ( (pointer_expression "**(code **)(puVar14 + 0x1a520)" * (pointer_expression "*(code **)(puVar14 + 0x1a520)" * (cast_expression "(code **)(puVar14 + 0x1a520)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x1a520)" ( (binary_expression "puVar14 + 0x1a520" identifier + number_literal) ))))) )) (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n    lVar8 = ((stat *)dir)->st_pad4;\n    _Var5 = ((stat *)dir)->st_blksize;\n    table = *(Hash_table **)dir_00;\n    puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;\n    *puVar3 = 0;\n    puVar3[3] = lVar8;\n    puVar3[2] = _Var5;\n    puVar3[4] = dir;\n    puVar6 = (undefined4 *)hash_insert(table,puVar3);\n    if (puVar3 == puVar6) {\n      return 1;\n    }\n    (**(code **)(puVar14 + 0x1a57c))(puVar3);\n    if (puVar6 != (undefined4 *)0x0) {\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }\n  }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    lVar8 = ((stat *)dir)->st_pad4;\n    _Var5 = ((stat *)dir)->st_blksize;\n    table = *(Hash_table **)dir_00;\n    puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;\n    *puVar3 = 0;\n    puVar3[3] = lVar8;\n    puVar3[2] = _Var5;\n    puVar3[4] = dir;\n    puVar6 = (undefined4 *)hash_insert(table,puVar3);\n    if (puVar3 == puVar6) {\n      return 1;\n    }\n    (**(code **)(puVar14 + 0x1a57c))(puVar3);\n    if (puVar6 != (undefined4 *)0x0) {\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }\n  }" { (expression_statement "lVar8 = ((stat *)dir)->st_pad4;" (assignment_expression "lVar8 = ((stat *)dir)->st_pad4" identifier = (field_expression "((stat *)dir)->st_pad4" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) (expression_statement "_Var5 = ((stat *)dir)->st_blksize;" (assignment_expression "_Var5 = ((stat *)dir)->st_blksize" identifier = (field_expression "((stat *)dir)->st_blksize" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) (expression_statement "table = *(Hash_table **)dir_00;" (assignment_expression "table = *(Hash_table **)dir_00" identifier = (pointer_expression "*(Hash_table **)dir_00" * (cast_expression "(Hash_table **)dir_00" ( (type_descriptor "Hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar3[1] = (((stat *)dir)->st_mtim).tv_sec;" (assignment_expression "puVar3[1] = (((stat *)dir)->st_mtim).tv_sec" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (field_expression "(((stat *)dir)->st_mtim).tv_sec" (parenthesized_expression "(((stat *)dir)->st_mtim)" ( (field_expression "((stat *)dir)->st_mtim" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) )) . field_identifier)) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[3] = lVar8;" (assignment_expression "puVar3[3] = lVar8" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = _Var5;" (assignment_expression "puVar3[2] = _Var5" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[4] = dir;" (assignment_expression "puVar3[4] = dir" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6 = (undefined4 *)hash_insert(table,puVar3);" (assignment_expression "puVar6 = (undefined4 *)hash_insert(table,puVar3)" identifier = (cast_expression "(undefined4 *)hash_insert(table,puVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(table,puVar3)" identifier (argument_list "(table,puVar3)" ( identifier , identifier ))))) ;) (if_statement "if (puVar3 == puVar6) {\n      return 1;\n    }" if (parenthesized_expression "(puVar3 == puVar6)" ( (binary_expression "puVar3 == puVar6" identifier == identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(puVar14 + 0x1a57c))(puVar3);" (call_expression "(**(code **)(puVar14 + 0x1a57c))(puVar3)" (parenthesized_expression "(**(code **)(puVar14 + 0x1a57c))" ( (pointer_expression "**(code **)(puVar14 + 0x1a57c)" * (pointer_expression "*(code **)(puVar14 + 0x1a57c)" * (cast_expression "(code **)(puVar14 + 0x1a57c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x1a57c)" ( (binary_expression "puVar14 + 0x1a57c" identifier + number_literal) ))))) )) (argument_list "(puVar3)" ( identifier ))) ;) (if_statement "if (puVar6 != (undefined4 *)0x0) {\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }" if (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" ( (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar9 = puVar6[4];\n      *(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;\n      ((stat *)dir)->st_dev = uVar9;\n      return 1;\n    }" { (expression_statement "uVar9 = puVar6[4];" (assignment_expression "uVar9 = puVar6[4]" identifier = (subscript_expression "puVar6[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2;" (assignment_expression "*(undefined2 *)((int)&((stat *)dir)->st_size + 4) = 2" (pointer_expression "*(undefined2 *)((int)&((stat *)dir)->st_size + 4)" * (cast_expression "(undefined2 *)((int)&((stat *)dir)->st_size + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&((stat *)dir)->st_size + 4)" ( (binary_expression "(int)&((stat *)dir)->st_size + 4" (cast_expression "(int)&((stat *)dir)->st_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&((stat *)dir)->st_size" & (field_expression "((stat *)dir)->st_size" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "((stat *)dir)->st_dev = uVar9;" (assignment_expression "((stat *)dir)->st_dev = uVar9" (field_expression "((stat *)dir)->st_dev" (parenthesized_expression "((stat *)dir)" ( (cast_expression "(stat *)dir" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)" identifier (parameter_list "(int param_1,int param_2,int *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int local_d0 [4];" primitive_type (array_declarator "local_d0 [4]" identifier [ number_literal ]) ;) (declaration "int local_c0;" primitive_type identifier ;) (declaration "int local_bc;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (expression_statement "puVar12 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar12 = PTR___stack_chk_guard_000333c4" identifier = identifier) ;) (expression_statement "piVar9 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x30)" identifier = (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(uint *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_2c = *(uint *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000333c4" * (cast_expression "(uint *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar7 = (int *)PTR_fdopendir_00033108;" (assignment_expression "piVar7 = (int *)PTR_fdopendir_00033108" identifier = (cast_expression "(int *)PTR_fdopendir_00033108" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "piVar8 = param_3;" (assignment_expression "piVar8 = param_3" identifier = identifier) ;) (expression_statement "piVar3 = param_3;" (assignment_expression "piVar3 = param_3" identifier = identifier) ;) (if_statement "if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" if (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }" { (labeled_statement "LAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" statement_identifier : (if_statement "if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" if (parenthesized_expression "(((uint)piVar9 & 4) == 0)" ( (binary_expression "((uint)piVar9 & 4) == 0" (parenthesized_expression "((uint)piVar9 & 4)" ( (binary_expression "(uint)piVar9 & 4" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" identifier = identifier) ;) (if_statement "if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" { (labeled_statement "LAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));" statement_identifier : (expression_statement "piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));" (assignment_expression "piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" identifier = (cast_expression "(int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x20))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) ))))) ;)) (if_statement "if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" if (parenthesized_expression "((int)piVar3 < 0)" ( (binary_expression "(int)piVar3 < 0" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" { (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00018c74:\n      param_4 = local_d0;" statement_identifier : (expression_statement "param_4 = local_d0;" (assignment_expression "param_4 = local_d0" identifier = identifier) ;)) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR___fxstat64_00033394)(3);" (assignment_expression "iVar1 = (*(code *)PTR___fxstat64_00033394)(3)" identifier = (call_expression "(*(code *)PTR___fxstat64_00033394)(3)" (parenthesized_expression "(*(code *)PTR___fxstat64_00033394)" ( (pointer_expression "*(code *)PTR___fxstat64_00033394" * (cast_expression "(code *)PTR___fxstat64_00033394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3)" ( number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }" { (if_statement "if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }" if (parenthesized_expression "(((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc))" ( (binary_expression "((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)" (parenthesized_expression "((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0))" ( (binary_expression "(*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)" (parenthesized_expression "(*(int *)(param_2 + 0x48) != local_d0[0])" ( (binary_expression "*(int *)(param_2 + 0x48) != local_d0[0]" (pointer_expression "*(int *)(param_2 + 0x48)" * (cast_expression "(int *)(param_2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x48)" ( (binary_expression "param_2 + 0x48" identifier + number_literal) )))) != (subscript_expression "local_d0[0]" identifier [ number_literal ])) )) || (parenthesized_expression "(*(int *)(param_2 + 0x58) != local_c0)" ( (binary_expression "*(int *)(param_2 + 0x58) != local_c0" (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) != identifier) ))) )) || (parenthesized_expression "(*(int *)(param_2 + 0x5c) != local_bc)" ( (binary_expression "*(int *)(param_2 + 0x5c) != local_bc" (pointer_expression "*(int *)(param_2 + 0x5c)" * (cast_expression "(int *)(param_2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) )))) != identifier) ))) )) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 2;" (assignment_expression "*puVar2 = 2" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (goto_statement "goto LAB_00018d4c;" goto statement_identifier ;) })) (if_statement "if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }" if (parenthesized_expression "((*(uint *)(param_1 + 0x30) & 0x200) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x30) & 0x200) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x30) & 0x200)" ( (binary_expression "*(uint *)(param_1 + 0x30) & 0x200" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }" { (expression_statement "param_4 = (int *)((uVar11 ^ 1) & 0xff);" (assignment_expression "param_4 = (int *)((uVar11 ^ 1) & 0xff)" identifier = (cast_expression "(int *)((uVar11 ^ 1) & 0xff)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uVar11 ^ 1) & 0xff)" ( (binary_expression "(uVar11 ^ 1) & 0xff" (parenthesized_expression "(uVar11 ^ 1)" ( (binary_expression "uVar11 ^ 1" identifier ^ number_literal) )) & number_literal) )))) ;) (expression_statement "FUN_00018658(param_1);" (call_expression "FUN_00018658(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" identifier = identifier) ;) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) })) (expression_statement "uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);" (assignment_expression "uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(piVar3)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier )))) ;) }) (else_clause "else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" else (compound_statement "{\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" { (labeled_statement "LAB_00018d4c:\n        uVar11 = 0xffffffff;" statement_identifier : (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" identifier = number_literal) ;)) }))) (if_statement "if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar10 = *puVar2;" (assignment_expression "uVar10 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "(*(code *)PTR_close_000332c0)(piVar3);" (call_expression "(*(code *)PTR_close_000332c0)(piVar3)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" ( (pointer_expression "*(code *)PTR_close_000332c0" * (cast_expression "(code *)PTR_close_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;) (expression_statement "*puVar2 = uVar10;" (assignment_expression "*puVar2 = uVar10" (pointer_expression "*puVar2" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00018cfc;" goto statement_identifier ;) }))) }) (else_clause "else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" else (compound_statement "{\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" { (expression_statement "piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);" (assignment_expression "piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70)" identifier = (cast_expression "(int *)(PTR_fdopendir_00033108 + 0x1d70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_fdopendir_00033108 + 0x1d70)" ( (binary_expression "PTR_fdopendir_00033108 + 0x1d70" identifier + number_literal) )))) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4)" identifier = (call_expression "(*(code *)PTR_strcmp_000333f0)(param_4)" (parenthesized_expression "(*(code *)PTR_strcmp_000333f0)" ( (pointer_expression "*(code *)PTR_strcmp_000333f0" * (cast_expression "(code *)PTR_strcmp_000333f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00018c60;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00018c60;" goto statement_identifier ;)) (if_statement "if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }" if (parenthesized_expression "(((uint)piVar9 & 4) == 0)" ( (binary_expression "((uint)piVar9 & 4) == 0" (parenthesized_expression "((uint)piVar9 & 4)" ( (binary_expression "(uint)piVar9 & 4" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }" { (if_statement "if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }" { (if_statement "if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" if (parenthesized_expression "(((uint)piVar9 & 0x200) == 0)" ( (binary_expression "((uint)piVar9 & 0x200) == 0" (parenthesized_expression "((uint)piVar9 & 0x200)" ( (binary_expression "(uint)piVar9 & 0x200" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" identifier = identifier) ;) }) (else_clause "else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" else (compound_statement "{\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" { (expression_statement "uVar11 = i_ring_empty(param_1 + 0x3c);" (assignment_expression "uVar11 = i_ring_empty(param_1 + 0x3c)" identifier = (call_expression "i_ring_empty(param_1 + 0x3c)" identifier (argument_list "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) ;) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" identifier = identifier) ;) (if_statement "if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }" { (expression_statement "piVar3 = (int *)i_ring_pop(param_1 + 0x3c);" (assignment_expression "piVar3 = (int *)i_ring_pop(param_1 + 0x3c)" identifier = (cast_expression "(int *)i_ring_pop(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "i_ring_pop(param_1 + 0x3c)" identifier (argument_list "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (if_statement "if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }" if (parenthesized_expression "(-1 < (int)piVar3)" ( (binary_expression "-1 < (int)piVar3" number_literal < (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "param_3 = piVar3;" (assignment_expression "param_3 = piVar3" identifier = identifier) ;) (goto_statement "goto LAB_00018c74;" goto statement_identifier ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "piVar7 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar7 = *(int **)(param_1 + 0x30)" identifier = (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) })) }))) (goto_statement "goto LAB_00018da8;" goto statement_identifier ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00018c74;" goto statement_identifier ;) })) }))) (expression_statement "param_4 = piVar8;" (assignment_expression "param_4 = piVar8" identifier = identifier) ;) (expression_statement "uVar11 = (uint)piVar9 & 0x200;" (assignment_expression "uVar11 = (uint)piVar9 & 0x200" identifier = (binary_expression "(uint)piVar9 & 0x200" (cast_expression "(uint)piVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }" { (if_statement "if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" if (parenthesized_expression "((int)param_3 < 0)" ( (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar11 = 0;\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" else (compound_statement "{\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_close_000332c0)(param_3);" (call_expression "(*(code *)PTR_close_000332c0)(param_3)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" ( (pointer_expression "*(code *)PTR_close_000332c0" * (cast_expression "(code *)PTR_close_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) }))) })) (labeled_statement "LAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }" statement_identifier : (if_statement "if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }" if (parenthesized_expression "(local_2c == *(uint *)puVar12)" ( (binary_expression "local_2c == *(uint *)puVar12" identifier == (pointer_expression "*(uint *)puVar12" * (cast_expression "(uint *)puVar12" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar11;\n  }" { (return_statement "return uVar11;" return identifier ;) }))) (expression_statement "uVar11 = local_2c;" (assignment_expression "uVar11 = local_2c" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000333a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }" if (parenthesized_expression "((uVar11 & 0x102) == 0)" ( (binary_expression "(uVar11 & 0x102) == 0" (parenthesized_expression "(uVar11 & 0x102)" ( (binary_expression "uVar11 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }" { (expression_statement "uVar11 = cycle_check(*piVar7,param_4 + 0x12);" (assignment_expression "uVar11 = cycle_check(*piVar7,param_4 + 0x12)" identifier = (call_expression "cycle_check(*piVar7,param_4 + 0x12)" identifier (argument_list "(*piVar7,param_4 + 0x12)" ( (pointer_expression "*piVar7" * identifier) , (binary_expression "param_4 + 0x12" identifier + number_literal) )))) ;) (if_statement "if (uVar11 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "*param_4 = (int)param_4;" (assignment_expression "*param_4 = (int)param_4" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined2 *)(param_4 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_4 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_4 + 0xf)" * (cast_expression "(undefined2 *)(param_4 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xf)" ( (binary_expression "param_4 + 0xf" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar11;" return identifier ;) })) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar12 + 0x1a520))(0x18)" (parenthesized_expression "(**(code **)(puVar12 + 0x1a520))" ( (pointer_expression "**(code **)(puVar12 + 0x1a520)" * (pointer_expression "*(code **)(puVar12 + 0x1a520)" * (cast_expression "(code **)(puVar12 + 0x1a520)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1a520)" ( (binary_expression "puVar12 + 0x1a520" identifier + number_literal) ))))) )) (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }" { (expression_statement "iVar5 = param_4[0x17];" (assignment_expression "iVar5 = param_4[0x17]" identifier = (subscript_expression "param_4[0x17]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_4[0x16];" (assignment_expression "iVar1 = param_4[0x16]" identifier = (subscript_expression "param_4[0x16]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *piVar7;" (assignment_expression "iVar6 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "puVar2[1] = param_4[0x12];" (assignment_expression "puVar2[1] = param_4[0x12]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "param_4[0x12]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[3] = iVar5;" (assignment_expression "puVar2[3] = iVar5" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = iVar1;" (assignment_expression "puVar2[2] = iVar1" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_4;" (assignment_expression "puVar2[4] = param_4" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);" (assignment_expression "puVar4 = (undefined4 *)hash_insert(iVar6,puVar2)" identifier = (cast_expression "(undefined4 *)hash_insert(iVar6,puVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(iVar6,puVar2)" identifier (argument_list "(iVar6,puVar2)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2 == puVar4) {\n      return 1;\n    }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(puVar12 + 0x1a57c))(puVar2);" (call_expression "(**(code **)(puVar12 + 0x1a57c))(puVar2)" (parenthesized_expression "(**(code **)(puVar12 + 0x1a57c))" ( (pointer_expression "**(code **)(puVar12 + 0x1a57c)" * (pointer_expression "*(code **)(puVar12 + 0x1a57c)" * (cast_expression "(code **)(puVar12 + 0x1a57c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1a57c)" ( (binary_expression "puVar12 + 0x1a57c" identifier + number_literal) ))))) )) (argument_list "(puVar2)" ( identifier ))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }" { (expression_statement "iVar1 = puVar4[4];" (assignment_expression "iVar1 = puVar4[4]" identifier = (subscript_expression "puVar4[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_4 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_4 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_4 + 0xf)" * (cast_expression "(undefined2 *)(param_4 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xf)" ( (binary_expression "param_4 + 0xf" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (subscript_expression IDENT [ LIT ])) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) & LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (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) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (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 IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( 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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_00018bcc(int param_1,int param_2,int *param_3,int *param_4)" (identifier "FUN_00018bcc") (parameter_list "(int param_1,int param_2,int *param_3,int *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int *piVar8;\n  int *piVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int local_d0 [4];\n  int local_c0;\n  int local_bc;\n  uint local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_000333c4;\n  piVar9 = *(int **)(param_1 + 0x30);\n  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;\n  piVar7 = (int *)PTR_fdopendir_00033108;\n  piVar8 = param_3;\n  piVar3 = param_3;\n  if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }\n  param_4 = piVar8;\n  uVar11 = (uint)piVar9 & 0x200;\n  if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }\nLAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }\n  uVar11 = local_2c;\n  puVar12 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }\n  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int local_d0 [4];" (primitive_type "int") (array_declarator "local_d0 [4]" (identifier "local_d0") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_c0;" (primitive_type "int") (identifier "local_c0") (; ";")) (declaration "int local_bc;" (primitive_type "int") (identifier "local_bc") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (expression_statement "puVar12 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar12 = PTR___stack_chk_guard_000333c4" (identifier "puVar12") (= "=") (identifier "PTR___stack_chk_guard_000333c4")) (; ";")) (expression_statement "piVar9 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x30)" (identifier "piVar9") (= "=") (pointer_expression "*(int **)(param_1 + 0x30)" (* "*") (cast_expression "(int **)(param_1 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "local_2c = *(uint *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_2c = *(uint *)PTR___stack_chk_guard_000333c4" (identifier "local_2c") (= "=") (pointer_expression "*(uint *)PTR___stack_chk_guard_000333c4" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_000333c4" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000333c4")))) (; ";")) (expression_statement "piVar7 = (int *)PTR_fdopendir_00033108;" (assignment_expression "piVar7 = (int *)PTR_fdopendir_00033108" (identifier "piVar7") (= "=") (cast_expression "(int *)PTR_fdopendir_00033108" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fdopendir_00033108"))) (; ";")) (expression_statement "piVar8 = param_3;" (assignment_expression "piVar8 = param_3" (identifier "piVar8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar3 = param_3;" (assignment_expression "piVar3 = param_3" (identifier "piVar3") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_4 == (int *)0x0) {\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }\n  else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == (int *)0x0)" (( "(") (binary_expression "param_4 == (int *)0x0" (identifier "param_4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }\n  }" ({ "{") (labeled_statement "LAB_00018c60:\n    if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" (statement_identifier "LAB_00018c60") (: ":") (if_statement "if (((uint)piVar9 & 4) == 0) {\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" (if "if") (parenthesized_expression "(((uint)piVar9 & 4) == 0)" (( "(") (binary_expression "((uint)piVar9 & 4) == 0" (parenthesized_expression "((uint)piVar9 & 4)" (( "(") (binary_expression "(uint)piVar9 & 4" (cast_expression "(uint)piVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar9")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar11 = 0;\n      piVar7 = piVar9;\n      if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }\nLAB_00018c74:\n      param_4 = local_d0;\n      piVar7 = piVar3;\n      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);\n      if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }\n      if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }\n      goto LAB_00018cfc;\n    }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" (identifier "piVar7") (= "=") (identifier "piVar9")) (; ";")) (if_statement "if ((int)param_3 < 0) {\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" (if "if") (parenthesized_expression "((int)param_3 < 0)" (( "(") (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));\n        if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }\n      }" ({ "{") (labeled_statement "LAB_00018da8:\n        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));" (statement_identifier "LAB_00018da8") (: ":") (expression_statement "piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));" (assignment_expression "piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00018b70(*(undefined4 *)(param_1 + 0x20))" (identifier "FUN_00018b70") (argument_list "(*(undefined4 *)(param_1 + 0x20))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) () ")"))))) (; ";"))) (if_statement "if ((int)piVar3 < 0) {\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" (if "if") (parenthesized_expression "((int)piVar3 < 0)" (( "(") (binary_expression "(int)piVar3 < 0" (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          uVar11 = 0xffffffff;\n          goto LAB_00018cfc;\n        }" ({ "{") (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" (identifier "uVar11") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_00018cfc;" (goto "goto") (statement_identifier "LAB_00018cfc") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00018c74:\n      param_4 = local_d0;" (statement_identifier "LAB_00018c74") (: ":") (expression_statement "param_4 = local_d0;" (assignment_expression "param_4 = local_d0" (identifier "param_4") (= "=") (identifier "local_d0")) (; ";"))) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" (identifier "piVar7") (= "=") (identifier "piVar3")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR___fxstat64_00033394)(3);" (assignment_expression "iVar1 = (*(code *)PTR___fxstat64_00033394)(3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___fxstat64_00033394)(3)" (parenthesized_expression "(*(code *)PTR___fxstat64_00033394)" (( "(") (pointer_expression "*(code *)PTR___fxstat64_00033394" (* "*") (cast_expression "(code *)PTR___fxstat64_00033394" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fxstat64_00033394"))) () ")")) (argument_list "(3)" (( "(") (number_literal "3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }\n      else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }\n        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }\n        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);\n      }" ({ "{") (if_statement "if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }" (if "if") (parenthesized_expression "(((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc))" (( "(") (binary_expression "((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||\n           (*(int *)(param_2 + 0x5c) != local_bc)" (parenthesized_expression "((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0))" (( "(") (binary_expression "(*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)" (parenthesized_expression "(*(int *)(param_2 + 0x48) != local_d0[0])" (( "(") (binary_expression "*(int *)(param_2 + 0x48) != local_d0[0]" (pointer_expression "*(int *)(param_2 + 0x48)" (* "*") (cast_expression "(int *)(param_2 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x48)" (( "(") (binary_expression "param_2 + 0x48" (identifier "param_2") (+ "+") (number_literal "0x48")) () ")")))) (!= "!=") (subscript_expression "local_d0[0]" (identifier "local_d0") ([ "[") (number_literal "0") (] "]"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_2 + 0x58) != local_c0)" (( "(") (binary_expression "*(int *)(param_2 + 0x58) != local_c0" (pointer_expression "*(int *)(param_2 + 0x58)" (* "*") (cast_expression "(int *)(param_2 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")")))) (!= "!=") (identifier "local_c0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_2 + 0x5c) != local_bc)" (( "(") (binary_expression "*(int *)(param_2 + 0x5c) != local_bc" (pointer_expression "*(int *)(param_2 + 0x5c)" (* "*") (cast_expression "(int *)(param_2 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5c)" (( "(") (binary_expression "param_2 + 0x5c" (identifier "param_2") (+ "+") (number_literal "0x5c")) () ")")))) (!= "!=") (identifier "local_bc")) () ")"))) () ")")) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar2 = 2;\n          goto LAB_00018d4c;\n        }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar2 = 2;" (assignment_expression "*puVar2 = 2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00018d4c;" (goto "goto") (statement_identifier "LAB_00018d4c") (; ";")) (} "}"))) (if_statement "if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x30) & 0x200) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x30) & 0x200) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x30) & 0x200)" (( "(") (binary_expression "*(uint *)(param_1 + 0x30) & 0x200" (pointer_expression "*(uint *)(param_1 + 0x30)" (* "*") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (& "&") (number_literal "0x200")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          param_4 = (int *)((uVar11 ^ 1) & 0xff);\n          FUN_00018658(param_1);\n          uVar11 = 0;\n          piVar7 = piVar3;\n          goto LAB_00018cfc;\n        }" ({ "{") (expression_statement "param_4 = (int *)((uVar11 ^ 1) & 0xff);" (assignment_expression "param_4 = (int *)((uVar11 ^ 1) & 0xff)" (identifier "param_4") (= "=") (cast_expression "(int *)((uVar11 ^ 1) & 0xff)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uVar11 ^ 1) & 0xff)" (( "(") (binary_expression "(uVar11 ^ 1) & 0xff" (parenthesized_expression "(uVar11 ^ 1)" (( "(") (binary_expression "uVar11 ^ 1" (identifier "uVar11") (^ "^") (number_literal "1")) () ")")) (& "&") (number_literal "0xff")) () ")")))) (; ";")) (expression_statement "FUN_00018658(param_1);" (call_expression "FUN_00018658(param_1)" (identifier "FUN_00018658") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" (identifier "piVar7") (= "=") (identifier "piVar3")) (; ";")) (goto_statement "goto LAB_00018cfc;" (goto "goto") (statement_identifier "LAB_00018cfc") (; ";")) (} "}"))) (expression_statement "uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);" (assignment_expression "uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3)" (identifier "uVar11") (= "=") (call_expression "(*(code *)PTR_fchdir_000332f4)(piVar3)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" (( "(") (pointer_expression "*(code *)PTR_fchdir_000332f4" (* "*") (cast_expression "(code *)PTR_fchdir_000332f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchdir_000332f4"))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")")))) (; ";")) (} "}")) (else_clause "else {\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" (else "else") (compound_statement "{\nLAB_00018d4c:\n        uVar11 = 0xffffffff;\n      }" ({ "{") (labeled_statement "LAB_00018d4c:\n        uVar11 = 0xffffffff;" (statement_identifier "LAB_00018d4c") (: ":") (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" (identifier "uVar11") (= "=") (number_literal "0xffffffff")) (; ";"))) (} "}")))) (if_statement "if ((int)param_3 < 0) {\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }" (if "if") (parenthesized_expression "((int)param_3 < 0)" (( "(") (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n        uVar10 = *puVar2;\n        (*(code *)PTR_close_000332c0)(piVar3);\n        *puVar2 = uVar10;\n      }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar10 = *puVar2;" (assignment_expression "uVar10 = *puVar2" (identifier "uVar10") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "(*(code *)PTR_close_000332c0)(piVar3);" (call_expression "(*(code *)PTR_close_000332c0)(piVar3)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" (( "(") (pointer_expression "*(code *)PTR_close_000332c0" (* "*") (cast_expression "(code *)PTR_close_000332c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000332c0"))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (expression_statement "*puVar2 = uVar10;" (assignment_expression "*puVar2 = uVar10" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar10")) (; ";")) (} "}"))) (goto_statement "goto LAB_00018cfc;" (goto "goto") (statement_identifier "LAB_00018cfc") (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" (else "else") (compound_statement "{\n    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);\n    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);\n    if (iVar1 != 0) goto LAB_00018c60;\n    if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }\n  }" ({ "{") (expression_statement "piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);" (assignment_expression "piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70)" (identifier "piVar7") (= "=") (cast_expression "(int *)(PTR_fdopendir_00033108 + 0x1d70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_fdopendir_00033108 + 0x1d70)" (( "(") (binary_expression "PTR_fdopendir_00033108 + 0x1d70" (identifier "PTR_fdopendir_00033108") (+ "+") (number_literal "0x1d70")) () ")")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_000333f0)(param_4)" (parenthesized_expression "(*(code *)PTR_strcmp_000333f0)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000333f0" (* "*") (cast_expression "(code *)PTR_strcmp_000333f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000333f0"))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_00018c60;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00018c60;" (goto "goto") (statement_identifier "LAB_00018c60") (; ";"))) (if_statement "if (((uint)piVar9 & 4) == 0) {\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }" (if "if") (parenthesized_expression "(((uint)piVar9 & 4) == 0)" (( "(") (binary_expression "((uint)piVar9 & 4) == 0" (parenthesized_expression "((uint)piVar9 & 4)" (( "(") (binary_expression "(uint)piVar9 & 4" (cast_expression "(uint)piVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar9")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }\n      uVar11 = 1;\n      goto LAB_00018c74;\n    }" ({ "{") (if_statement "if ((int)param_3 < 0) {\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }" (if "if") (parenthesized_expression "((int)param_3 < 0)" (( "(") (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }\n        goto LAB_00018da8;\n      }" ({ "{") (if_statement "if (((uint)piVar9 & 0x200) == 0) {\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }\n        else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" (if "if") (parenthesized_expression "(((uint)piVar9 & 0x200) == 0)" (( "(") (binary_expression "((uint)piVar9 & 0x200) == 0" (parenthesized_expression "((uint)piVar9 & 0x200)" (( "(") (binary_expression "(uint)piVar9 & 0x200" (cast_expression "(uint)piVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar9")) (& "&") (number_literal "0x200")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar11 = 1;\n          piVar7 = piVar9;\n        }" ({ "{") (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" (identifier "piVar7") (= "=") (identifier "piVar9")) (; ";")) (} "}")) (else_clause "else {\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" (else "else") (compound_statement "{\n          uVar11 = i_ring_empty(param_1 + 0x3c);\n          piVar7 = piVar9;\n          if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }\n        }" ({ "{") (expression_statement "uVar11 = i_ring_empty(param_1 + 0x3c);" (assignment_expression "uVar11 = i_ring_empty(param_1 + 0x3c)" (identifier "uVar11") (= "=") (call_expression "i_ring_empty(param_1 + 0x3c)" (identifier "i_ring_empty") (argument_list "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (; ";")) (expression_statement "piVar7 = piVar9;" (assignment_expression "piVar7 = piVar9" (identifier "piVar7") (= "=") (identifier "piVar9")) (; ";")) (if_statement "if (uVar11 == 0) {\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }" (if "if") (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);\n            if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }\n            uVar11 = 1;\n            piVar7 = *(int **)(param_1 + 0x30);\n          }" ({ "{") (expression_statement "piVar3 = (int *)i_ring_pop(param_1 + 0x3c);" (assignment_expression "piVar3 = (int *)i_ring_pop(param_1 + 0x3c)" (identifier "piVar3") (= "=") (cast_expression "(int *)i_ring_pop(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "i_ring_pop(param_1 + 0x3c)" (identifier "i_ring_pop") (argument_list "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (if_statement "if (-1 < (int)piVar3) {\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }" (if "if") (parenthesized_expression "(-1 < (int)piVar3)" (( "(") (binary_expression "-1 < (int)piVar3" (number_literal "-1") (< "<") (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3"))) () ")")) (compound_statement "{\n              uVar11 = 1;\n              param_3 = piVar3;\n              goto LAB_00018c74;\n            }" ({ "{") (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_3 = piVar3;" (assignment_expression "param_3 = piVar3" (identifier "param_3") (= "=") (identifier "piVar3")) (; ";")) (goto_statement "goto LAB_00018c74;" (goto "goto") (statement_identifier "LAB_00018c74") (; ";")) (} "}"))) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar7 = *(int **)(param_1 + 0x30);" (assignment_expression "piVar7 = *(int **)(param_1 + 0x30)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(param_1 + 0x30)" (* "*") (cast_expression "(int **)(param_1 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_00018da8;" (goto "goto") (statement_identifier "LAB_00018da8") (; ";")) (} "}"))) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00018c74;" (goto "goto") (statement_identifier "LAB_00018c74") (; ";")) (} "}"))) (} "}")))) (expression_statement "param_4 = piVar8;" (assignment_expression "param_4 = piVar8" (identifier "param_4") (= "=") (identifier "piVar8")) (; ";")) (expression_statement "uVar11 = (uint)piVar9 & 0x200;" (assignment_expression "uVar11 = (uint)piVar9 & 0x200" (identifier "uVar11") (= "=") (binary_expression "(uint)piVar9 & 0x200" (cast_expression "(uint)piVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar9")) (& "&") (number_literal "0x200"))) (; ";")) (if_statement "if (uVar11 != 0) {\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }\n  }" ({ "{") (if_statement "if ((int)param_3 < 0) {\n      uVar11 = 0;\n    }\n    else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" (if "if") (parenthesized_expression "((int)param_3 < 0)" (( "(") (binary_expression "(int)param_3 < 0" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      uVar11 = 0;\n    }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" (else "else") (compound_statement "{\n      uVar11 = 0;\n      (*(code *)PTR_close_000332c0)(param_3);\n    }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_close_000332c0)(param_3);" (call_expression "(*(code *)PTR_close_000332c0)(param_3)" (parenthesized_expression "(*(code *)PTR_close_000332c0)" (( "(") (pointer_expression "*(code *)PTR_close_000332c0" (* "*") (cast_expression "(code *)PTR_close_000332c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000332c0"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_00018cfc:\n  if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }" (statement_identifier "LAB_00018cfc") (: ":") (if_statement "if (local_2c == *(uint *)puVar12) {\n    return uVar11;\n  }" (if "if") (parenthesized_expression "(local_2c == *(uint *)puVar12)" (( "(") (binary_expression "local_2c == *(uint *)puVar12" (identifier "local_2c") (== "==") (pointer_expression "*(uint *)puVar12" (* "*") (cast_expression "(uint *)puVar12" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar12")))) () ")")) (compound_statement "{\n    return uVar11;\n  }" ({ "{") (return_statement "return uVar11;" (return "return") (identifier "uVar11") (; ";")) (} "}")))) (expression_statement "uVar11 = local_2c;" (assignment_expression "uVar11 = local_2c" (identifier "uVar11") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar12 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000333a8" (identifier "puVar12") (= "=") (identifier "PTR___stack_chk_fail_000333a8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000333a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000333a8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((uVar11 & 0x102) == 0) {\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }" (if "if") (parenthesized_expression "((uVar11 & 0x102) == 0)" (( "(") (binary_expression "(uVar11 & 0x102) == 0" (parenthesized_expression "(uVar11 & 0x102)" (( "(") (binary_expression "uVar11 & 0x102" (identifier "uVar11") (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar11 = cycle_check(*piVar7,param_4 + 0x12);\n    if (uVar11 == 0) {\n      return 1;\n    }\n    *param_4 = (int)param_4;\n    *(undefined2 *)(param_4 + 0xf) = 2;\n    return uVar11;\n  }" ({ "{") (expression_statement "uVar11 = cycle_check(*piVar7,param_4 + 0x12);" (assignment_expression "uVar11 = cycle_check(*piVar7,param_4 + 0x12)" (identifier "uVar11") (= "=") (call_expression "cycle_check(*piVar7,param_4 + 0x12)" (identifier "cycle_check") (argument_list "(*piVar7,param_4 + 0x12)" (( "(") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (, ",") (binary_expression "param_4 + 0x12" (identifier "param_4") (+ "+") (number_literal "0x12")) () ")")))) (; ";")) (if_statement "if (uVar11 == 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*param_4 = (int)param_4;" (assignment_expression "*param_4 = (int)param_4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (; ";")) (expression_statement "*(undefined2 *)(param_4 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_4 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_4 + 0xf)" (* "*") (cast_expression "(undefined2 *)(param_4 + 0xf)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xf)" (( "(") (binary_expression "param_4 + 0xf" (identifier "param_4") (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "2")) (; ";")) (return_statement "return uVar11;" (return "return") (identifier "uVar11") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar12 + 0x1a520))(0x18)" (parenthesized_expression "(**(code **)(puVar12 + 0x1a520))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x1a520)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x1a520)" (* "*") (cast_expression "(code **)(puVar12 + 0x1a520)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x1a520)" (( "(") (binary_expression "puVar12 + 0x1a520" (identifier "puVar12") (+ "+") (number_literal "0x1a520")) () ")"))))) () ")")) (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = param_4[0x17];\n    iVar1 = param_4[0x16];\n    iVar6 = *piVar7;\n    puVar2[1] = param_4[0x12];\n    *puVar2 = 0;\n    puVar2[3] = iVar5;\n    puVar2[2] = iVar1;\n    puVar2[4] = param_4;\n    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);\n    if (puVar2 == puVar4) {\n      return 1;\n    }\n    (**(code **)(puVar12 + 0x1a57c))(puVar2);\n    if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar5 = param_4[0x17];" (assignment_expression "iVar5 = param_4[0x17]" (identifier "iVar5") (= "=") (subscript_expression "param_4[0x17]" (identifier "param_4") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "iVar1 = param_4[0x16];" (assignment_expression "iVar1 = param_4[0x16]" (identifier "iVar1") (= "=") (subscript_expression "param_4[0x16]" (identifier "param_4") ([ "[") (number_literal "0x16") (] "]"))) (; ";")) (expression_statement "iVar6 = *piVar7;" (assignment_expression "iVar6 = *piVar7" (identifier "iVar6") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (expression_statement "puVar2[1] = param_4[0x12];" (assignment_expression "puVar2[1] = param_4[0x12]" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_4[0x12]" (identifier "param_4") ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[3] = iVar5;" (assignment_expression "puVar2[3] = iVar5" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "puVar2[2] = iVar1;" (assignment_expression "puVar2[2] = iVar1" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar2[4] = param_4;" (assignment_expression "puVar2[4] = param_4" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);" (assignment_expression "puVar4 = (undefined4 *)hash_insert(iVar6,puVar2)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)hash_insert(iVar6,puVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "hash_insert(iVar6,puVar2)" (identifier "hash_insert") (argument_list "(iVar6,puVar2)" (( "(") (identifier "iVar6") (, ",") (identifier "puVar2") () ")"))))) (; ";")) (if_statement "if (puVar2 == puVar4) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(puVar2 == puVar4)" (( "(") (binary_expression "puVar2 == puVar4" (identifier "puVar2") (== "==") (identifier "puVar4")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar12 + 0x1a57c))(puVar2);" (call_expression "(**(code **)(puVar12 + 0x1a57c))(puVar2)" (parenthesized_expression "(**(code **)(puVar12 + 0x1a57c))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x1a57c)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x1a57c)" (* "*") (cast_expression "(code **)(puVar12 + 0x1a57c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x1a57c)" (( "(") (binary_expression "puVar12 + 0x1a57c" (identifier "puVar12") (+ "+") (number_literal "0x1a57c")) () ")"))))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }" (if "if") (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar1 = puVar4[4];\n      *(undefined2 *)(param_4 + 0xf) = 2;\n      *param_4 = iVar1;\n      return 1;\n    }" ({ "{") (expression_statement "iVar1 = puVar4[4];" (assignment_expression "iVar1 = puVar4[4]" (identifier "iVar1") (= "=") (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*(undefined2 *)(param_4 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_4 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_4 + 0xf)" (* "*") (cast_expression "(undefined2 *)(param_4 + 0xf)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xf)" (( "(") (binary_expression "param_4 + 0xf" (identifier "param_4") (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (goto_statement label: (statement_identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (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)) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (identifier) right: (number_literal))))))) arguments: (argument_list (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 (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (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 (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: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))))) (return_statement (number_literal)))))

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

{
  int iVar1;
  undefined4 *puVar2;
  int *piVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  int *piVar8;
  int *piVar9;
  undefined4 uVar10;
  uint uVar11;
  undefined *puVar12;
  int local_d0 [4];
  int local_c0;
  int local_bc;
  uint local_2c;
  
  puVar12 = PTR___stack_chk_guard_000333c4;
  piVar9 = *(int **)(param_1 + 0x30);
  local_2c = *(uint *)PTR___stack_chk_guard_000333c4;
  piVar7 = (int *)PTR_fdopendir_00033108;
  piVar8 = param_3;
  piVar3 = param_3;
  if (param_4 == (int *)0x0) {
LAB_00018c60:
    if (((uint)piVar9 & 4) == 0) {
      uVar11 = 0;
      piVar7 = piVar9;
      if ((int)param_3 < 0) {
LAB_00018da8:
        piVar3 = (int *)FUN_00018b70(*(undefined4 *)(param_1 + 0x20));
        if ((int)piVar3 < 0) {
          uVar11 = 0xffffffff;
          goto LAB_00018cfc;
        }
      }
LAB_00018c74:
      param_4 = local_d0;
      piVar7 = piVar3;
      iVar1 = (*(code *)PTR___fxstat64_00033394)(3);
      if (iVar1 == 0) {
        if (((*(int *)(param_2 + 0x48) != local_d0[0]) || (*(int *)(param_2 + 0x58) != local_c0)) ||
           (*(int *)(param_2 + 0x5c) != local_bc)) {
          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
          *puVar2 = 2;
          goto LAB_00018d4c;
        }
        if ((*(uint *)(param_1 + 0x30) & 0x200) != 0) {
          param_4 = (int *)((uVar11 ^ 1) & 0xff);
          FUN_00018658(param_1);
          uVar11 = 0;
          piVar7 = piVar3;
          goto LAB_00018cfc;
        }
        uVar11 = (*(code *)PTR_fchdir_000332f4)(piVar3);
      }
      else {
LAB_00018d4c:
        uVar11 = 0xffffffff;
      }
      if ((int)param_3 < 0) {
        puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
        uVar10 = *puVar2;
        (*(code *)PTR_close_000332c0)(piVar3);
        *puVar2 = uVar10;
      }
      goto LAB_00018cfc;
    }
  }
  else {
    piVar7 = (int *)(PTR_fdopendir_00033108 + 0x1d70);
    iVar1 = (*(code *)PTR_strcmp_000333f0)(param_4);
    if (iVar1 != 0) goto LAB_00018c60;
    if (((uint)piVar9 & 4) == 0) {
      if ((int)param_3 < 0) {
        if (((uint)piVar9 & 0x200) == 0) {
          uVar11 = 1;
          piVar7 = piVar9;
        }
        else {
          uVar11 = i_ring_empty(param_1 + 0x3c);
          piVar7 = piVar9;
          if (uVar11 == 0) {
            piVar3 = (int *)i_ring_pop(param_1 + 0x3c);
            if (-1 < (int)piVar3) {
              uVar11 = 1;
              param_3 = piVar3;
              goto LAB_00018c74;
            }
            uVar11 = 1;
            piVar7 = *(int **)(param_1 + 0x30);
          }
        }
        goto LAB_00018da8;
      }
      uVar11 = 1;
      goto LAB_00018c74;
    }
  }
  param_4 = piVar8;
  uVar11 = (uint)piVar9 & 0x200;
  if (uVar11 != 0) {
    if ((int)param_3 < 0) {
      uVar11 = 0;
    }
    else {
      uVar11 = 0;
      (*(code *)PTR_close_000332c0)(param_3);
    }
  }
LAB_00018cfc:
  if (local_2c == *(uint *)puVar12) {
    return uVar11;
  }
  uVar11 = local_2c;
  puVar12 = PTR___stack_chk_fail_000333a8;
  (*(code *)PTR___stack_chk_fail_000333a8)();
  if ((uVar11 & 0x102) == 0) {
    uVar11 = cycle_check(*piVar7,param_4 + 0x12);
    if (uVar11 == 0) {
      return 1;
    }
    *param_4 = (int)param_4;
    *(undefined2 *)(param_4 + 0xf) = 2;
    return uVar11;
  }
  puVar2 = (undefined4 *)(**(code **)(puVar12 + 0x1a520))(0x18);
  if (puVar2 != (undefined4 *)0x0) {
    iVar5 = param_4[0x17];
    iVar1 = param_4[0x16];
    iVar6 = *piVar7;
    puVar2[1] = param_4[0x12];
    *puVar2 = 0;
    puVar2[3] = iVar5;
    puVar2[2] = iVar1;
    puVar2[4] = param_4;
    puVar4 = (undefined4 *)hash_insert(iVar6,puVar2);
    if (puVar2 == puVar4) {
      return 1;
    }
    (**(code **)(puVar12 + 0x1a57c))(puVar2);
    if (puVar4 != (undefined4 *)0x0) {
      iVar1 = puVar4[4];
      *(undefined2 *)(param_4 + 0xf) = 2;
      *param_4 = iVar1;
      return 1;
    }
  }
  return 0;
}

