
int remove_file(char *path,int flags)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  char *path_00;
  stat path_stat;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;
  iVar3 = (*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat);
  if (iVar3 < 0) {
    if (**(int **)PTR_bb_errno_0012a214 == 2) {
      flags = flags & 8;
      if (flags != 0) goto LAB_000f7b94;
      iVar3 = -1;
      (*(code *)PTR_bb_perror_msg_0012a238)
                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);
    }
    else {
      iVar3 = -1;
      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);
    }
  }
  else if ((path_stat.st_mode & 0xf000) == 0x4000) {
    if ((flags & 4U) != 0) goto LAB_000f7c50;
    iVar3 = -1;
    (*(code *)PTR_bb_error_msg_0012a1c8)
              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);
  }
  else {
    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&
         ((path_stat.st_mode & 0xf000) != 0xa000)) &&
        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {
      (*(code *)PTR___fprintf_chk_0012ad0c)
                (*(undefined4 *)PTR_stderr_0012b184,1,
                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,
                 *(undefined4 *)PTR_applet_name_0012a1ac,path);
      iVar3 = bb_ask_y_confirmation();
      if (iVar3 == 0) goto LAB_000f7b94;
    }
    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);
    if (iVar3 < 0) goto LAB_000f7bf8;
    flags = flags & 0x1000;
    if (flags == 0) goto LAB_000f7b94;
    iVar3 = 0;
    (*(code *)PTR___printf_chk_0012ae30)
              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);
  }
LAB_000f7b98:
  do {
    do {
      if (iVar2 == *(int *)puVar1) {
        return iVar3;
      }
      (*(code *)PTR___stack_chk_fail_0012b0c8)();
LAB_000f7c50:
      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&
          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,
                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,
                   *(undefined4 *)PTR_applet_name_0012a1ac,path);
        iVar3 = bb_ask_y_confirmation();
        if (iVar3 == 0) {
LAB_000f7b94:
          iVar3 = 0;
          goto LAB_000f7b98;
        }
      }
      iVar3 = -1;
      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);
    } while (iVar4 == 0);
    iVar3 = 0;
    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {
      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));
      if (path_00 != (char *)0x0) {
        iVar5 = remove_file(path_00,flags);
        if (iVar5 < 0) {
          iVar3 = -1;
        }
        (*(code *)PTR_free_0012b168)(path_00);
      }
    }
    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);
    if (-1 < iVar4) {
      if ((flags & 0x10U) != 0) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,
                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,
                   *(undefined4 *)PTR_applet_name_0012a1ac,path);
        iVar4 = bb_ask_y_confirmation();
        if (iVar4 == 0) goto LAB_000f7b98;
      }
      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {
LAB_000f7bf8:
        iVar3 = -1;
        (*(code *)PTR_bb_perror_msg_0012a238)
                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);
      }
      else {
        flags = flags & 0x1000;
        if (flags != 0) {
          (*(code *)PTR___printf_chk_0012ae30)
                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);
        }
      }
      goto LAB_000f7b98;
    }
    iVar3 = -1;
    (*(code *)PTR_bb_perror_msg_0012a238)
              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);
  } while( true );
}



int FUN_000f7a34(undefined4 param_1,uint param_2)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 auStack_d0 [24];
  uint local_b8;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);
  if (iVar2 < 0) {
    if (**(int **)PTR_DAT_0012a214 != 2) {
      iVar2 = -1;
      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);
      goto LAB_000f7b98;
    }
    if ((param_2 & 8) == 0) {
      iVar2 = -1;
      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);
      goto LAB_000f7b98;
    }
LAB_000f7b94:
    iVar2 = 0;
  }
  else {
    if ((local_b8 & 0xf000) == 0x4000) {
      if ((param_2 & 4) == 0) {
        iVar2 = -1;
        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);
        goto LAB_000f7b98;
      }
      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))
          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,
                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);
        iVar2 = FUN_000e5fd0();
        if (iVar2 == 0) goto LAB_000f7b94;
      }
      iVar2 = -1;
      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);
      if (iVar3 == 0) goto LAB_000f7b98;
      iVar2 = 0;
      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {
        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);
        if (iVar4 != 0) {
          iVar5 = FUN_000f7a34(iVar4,param_2);
          if (iVar5 < 0) {
            iVar2 = -1;
          }
          (*(code *)PTR_free_0012b168)(iVar4);
        }
      }
      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);
      if (iVar3 < 0) {
        iVar2 = -1;
        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);
        goto LAB_000f7b98;
      }
      if ((param_2 & 0x10) != 0) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,
                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);
        iVar3 = FUN_000e5fd0();
        if (iVar3 == 0) goto LAB_000f7b98;
      }
      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {
        if ((param_2 & 0x1000) != 0) {
          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);
        }
        goto LAB_000f7b98;
      }
    }
    else {
      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))
           && ((local_b8 & 0xf000) != 0xa000)) &&
          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,
                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);
        iVar2 = FUN_000e5fd0();
        if (iVar2 == 0) goto LAB_000f7b94;
      }
      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);
      if (-1 < iVar2) {
        if ((param_2 & 0x1000) != 0) {
          iVar2 = 0;
          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);
          goto LAB_000f7b98;
        }
        goto LAB_000f7b94;
      }
    }
    iVar2 = -1;
    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);
  }
LAB_000f7b98:
  if (local_2c != *(int *)puVar1) {
    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return iVar2;
  }
  return iVar2;
}


lui gp,0x4
addiu gp,gp,-0x58e4
addu gp,gp,t9
addiu sp,sp,-0xf0
lw t9,-0x74b8(gp)
addiu a2,sp,0x20
sw s4,0xd8(sp)
lw s4,-0x7004(gp)
sw s0,0xc8(sp)
or s0,a0,zero
li a0,0x3
sw gp,0x18(sp)
sw s1,0xcc(sp)
or s1,a1,zero
sw ra,0xec(sp)
or a1,s0,zero
sw s8,0xe8(sp)
sw s7,0xe4(sp)
sw s6,0xe0(sp)
sw s5,0xdc(sp)
sw s3,0xd4(sp)
sw s2,0xd0(sp)
lw v0,0x0(s4)
sw v0,0xc4(sp)
jalr t9
_nop
bgez v0,0x000f7ad8
_lw gp,0x18(sp)
lw v1,-0x7f3c(gp)
li v0,0x2
lw v1,0x0(v1)
lw v1,0x0(v1)
beq v1,v0,0x000f7e20
_lw a0,-0x7fc4(gp)
or a1,s0,zero
lw t9,-0x7f18(gp)
li s2,-0x1
jalr t9
_addiu a0,a0,-0x96c
b 0x000f7b98
_lw gp,0x18(sp)
lw v0,0x38(sp)
li v1,0x4000
andi v0,v0,0xf000
bne v0,v1,0x000f7b10
_andi v0,s1,0x4
bne v0,zero,0x000f7c50
_lw a0,-0x7fa8(gp)
or a1,s0,zero
lw t9,-0x7f88(gp)
li s2,-0x1
jalr t9
_addiu a0,a0,-0x4f98
b 0x000f7b98
_lw gp,0x18(sp)
andi v0,s1,0x8
bne v0,zero,0x000f7bd8
_lw t9,-0x7308(gp)
li a1,0x2
jalr t9
_or a0,s0,zero
bgez v0,0x000f7bd8
_lw gp,0x18(sp)
lw v0,0x38(sp)
ori v1,zero,0xa000
andi v0,v0,0xf000
beq v0,v1,0x000f7bd8
_lw t9,-0x7468(gp)
jalr t9
_or a0,zero,zero
beq v0,zero,0x000f7bd8
_lw gp,0x18(sp)
lw v0,-0x7fa4(gp)
li a1,0x1
lw a2,-0x7fa8(gp)
lw t9,-0x7444(gp)
lw a3,0x0(v0)
addiu a2,a2,-0x1008
lw v0,-0x6fcc(gp)
lw a0,0x0(v0)
jalr t9
_sw s0,0x10(sp)
lw gp,0x18(sp)
lw t9,-0x7da4(gp)
bal 0x000e5fd0
_nop
bne v0,zero,0x000f7be4
_lw gp,0x18(sp)
or s2,zero,zero
lw a0,0xc4(sp)
or v0,s2,zero
lw v1,0x0(s4)
bne a0,v1,0x000f7c44
_lw ra,0xec(sp)
lw s8,0xe8(sp)
lw s7,0xe4(sp)
lw s6,0xe0(sp)
lw s5,0xdc(sp)
lw s4,0xd8(sp)
lw s3,0xd4(sp)
lw s2,0xd0(sp)
lw s1,0xcc(sp)
lw s0,0xc8(sp)
jr ra
_addiu sp,sp,0xf0
andi v0,s1,0x10
bne v0,zero,0x000f7b58
_lw v0,-0x7fa4(gp)
lw t9,-0x70c4(gp)
jalr t9
_or a0,s0,zero
bgez v0,0x000f7c18
_lw gp,0x18(sp)
lw a0,-0x7fa8(gp)
or a1,s0,zero
lw t9,-0x7f18(gp)
li s2,-0x1
jalr t9
_addiu a0,a0,-0x4930
b 0x000f7b98
_lw gp,0x18(sp)
andi s1,s1,0x1000
beq s1,zero,0x000f7b94
_lw a1,-0x7fa8(gp)
li a0,0x1
lw t9,-0x7320(gp)
or a2,s0,zero
or s2,zero,zero
jalr t9
_addiu a1,a1,-0x1eb4
b 0x000f7b98
_lw gp,0x18(sp)
lw t9,-0x7088(gp)
jalr t9
_nop
andi v0,s1,0x8
bne v0,zero,0x000f7d50
_lw t9,-0x7308(gp)
li a1,0x2
jalr t9
_or a0,s0,zero
bgez v0,0x000f7d50
_lw gp,0x18(sp)
lw t9,-0x7468(gp)
jalr t9
_or a0,zero,zero
beq v0,zero,0x000f7d50
_lw gp,0x18(sp)
lw v0,-0x7fa4(gp)
li a1,0x1
lw a2,-0x7fa8(gp)
lw t9,-0x7444(gp)
lw a3,0x0(v0)
addiu a2,a2,-0x1078
lw v0,-0x6fcc(gp)
lw a0,0x0(v0)
jalr t9
_sw s0,0x10(sp)
lw gp,0x18(sp)
lw t9,-0x7da4(gp)
bal 0x000e5fd0
_nop
beq v0,zero,0x000f7b94
_lw gp,0x18(sp)
lw t9,-0x74dc(gp)
or a0,s0,zero
jalr t9
_li s2,-0x1
lw gp,0x18(sp)
beq v0,zero,0x000f7b98
_or s3,v0,zero
lw s8,-0x7928(gp)
or s2,zero,zero
lw s7,-0x76c8(gp)
li s6,-0x1
lw t9,-0x7424(gp)
jalr t9
_or a0,s3,zero
beq v0,zero,0x000f7d64
_lw gp,0x18(sp)
addiu a1,v0,0x13
or t9,s8,zero
bal 0x000e6d14
_or a0,s0,zero
lw gp,0x18(sp)
beq v0,zero,0x000f7cf0
_or s5,v0,zero
or a0,v0,zero
or t9,s7,zero
bal 0x000f7a34
_or a1,s1,zero
or a0,s5,zero
lw gp,0x18(sp)
slti v0,v0,0x0
lw t9,-0x6fe8(gp)
jalr t9
_movn s2,s6,v0
b 0x000f7cf0
_lw gp,0x18(sp)
andi v0,s1,0x10
bne v0,zero,0x000f7c84
_lw t9,-0x74dc(gp)
b 0x000f7ccc
_or a0,s0,zero
lw t9,-0x74cc(gp)
jalr t9
_or a0,s3,zero
bgez v0,0x000f7d98
_lw gp,0x18(sp)
lw a0,-0x7fa8(gp)
or a1,s0,zero
lw t9,-0x7f18(gp)
li s2,-0x1
jalr t9
_addiu a0,a0,-0x1054
b 0x000f7b98
_lw gp,0x18(sp)
andi v0,s1,0x10
beq v0,zero,0x000f7de0
_lw v0,-0x7fa4(gp)
li a1,0x1
lw a2,-0x7fa8(gp)
lw t9,-0x7444(gp)
lw a3,0x0(v0)
addiu a2,a2,-0x1040
lw v0,-0x6fcc(gp)
lw a0,0x0(v0)
jalr t9
_sw s0,0x10(sp)
lw gp,0x18(sp)
lw t9,-0x7da4(gp)
bal 0x000e5fd0
_nop
beq v0,zero,0x000f7b98
_lw gp,0x18(sp)
bne s2,zero,0x000f7df8
_lw t9,-0x7020(gp)
jalr t9
_or a0,s0,zero
bltz v0,0x000f7bf8
_lw gp,0x18(sp)
andi s1,s1,0x1000
beq s1,zero,0x000f7b98
_lw a1,-0x7fa8(gp)
li a0,0x1
lw t9,-0x7320(gp)
or a2,s0,zero
jalr t9
_addiu a1,a1,-0x1024
b 0x000f7b98
_lw gp,0x18(sp)
andi s1,s1,0x8
bne s1,zero,0x000f7b94
_lw a0,-0x7fa8(gp)
or a1,s0,zero
lw t9,-0x7f18(gp)
li s2,-0x1
jalr t9
_addiu a0,a0,-0x4930
b 0x000f7b98
_lw gp,0x18(sp)
(translation_unit "int FUN_000f7a34(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000f7a34(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000f7a34(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 auStack_d0 [24];" type_identifier (array_declarator "auStack_d0 [24]" identifier [ number_literal ]) ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);" (assignment_expression "iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0)" identifier = (call_expression "(*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0)" (parenthesized_expression "(*(code *)PTR___lxstat64_0012ac98)" ( (pointer_expression "*(code *)PTR___lxstat64_0012ac98" * (cast_expression "(code *)PTR___lxstat64_0012ac98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_d0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }" { (if_statement "if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 != 2)" ( (binary_expression "**(int **)PTR_DAT_0012a214 != 2" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) != number_literal) )) (compound_statement "{\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + -0x96c,param_1)" ( (binary_expression "PTR_UINT_0012a18c + -0x96c" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (if_statement "if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x4930,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x4930" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (labeled_statement "LAB_000f7b94:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" else (compound_statement "{\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" { (if_statement "if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" if (parenthesized_expression "((local_b8 & 0xf000) == 0x4000)" ( (binary_expression "(local_b8 & 0xf000) == 0x4000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }" { (if_statement "if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }" if (parenthesized_expression "((param_2 & 4) == 0)" ( (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x4f98,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x4f98" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (if_statement "if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" if (parenthesized_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0))" ( (binary_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)" (parenthesized_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0))" ( (binary_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (parenthesized_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))" ( (binary_expression "((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" ( (comma_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(param_1,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,2)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0)" identifier = (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" ( (pointer_expression "*(code *)PTR_isatty_0012ace8" * (cast_expression "(code *)PTR_isatty_0012ace8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "((param_2 & 0x10) != 0)" ( (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1078" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" * (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "iVar2 = FUN_000e5fd0();" (assignment_expression "iVar2 = FUN_000e5fd0()" identifier = (call_expression "FUN_000e5fd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) goto LAB_000f7b94;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) })) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1)" identifier = (call_expression "(*(code *)PTR_opendir_0012ac74)(param_1)" (parenthesized_expression "(*(code *)PTR_opendir_0012ac74)" ( (pointer_expression "*(code *)PTR_opendir_0012ac74" * (cast_expression "(code *)PTR_opendir_0012ac74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000f7b98;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (while_statement "while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }" while (parenthesized_expression "(iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0)" ( (comma_expression "iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0" (assignment_expression "iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3)" identifier = (call_expression "(*(code *)PTR_readdir64_0012ad2c)(iVar3)" (parenthesized_expression "(*(code *)PTR_readdir64_0012ad2c)" ( (pointer_expression "*(code *)PTR_readdir64_0012ad2c" * (cast_expression "(code *)PTR_readdir64_0012ad2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }" { (expression_statement "iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);" (assignment_expression "iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13)" identifier = (call_expression "FUN_000e6d14(param_1,iVar4 + 0x13)" identifier (argument_list "(param_1,iVar4 + 0x13)" ( identifier , (binary_expression "iVar4 + 0x13" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }" { (expression_statement "iVar5 = FUN_000f7a34(iVar4,param_2);" (assignment_expression "iVar5 = FUN_000f7a34(iVar4,param_2)" identifier = (call_expression "FUN_000f7a34(iVar4,param_2)" identifier (argument_list "(iVar4,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n            iVar2 = -1;\n          }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar2 = -1;\n          }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_0012b168)(iVar4);" (call_expression "(*(code *)PTR_free_0012b168)(iVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) })) })) (expression_statement "iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3)" identifier = (call_expression "(*(code *)PTR_closedir_0012ac84)(iVar3)" (parenthesized_expression "(*(code *)PTR_closedir_0012ac84)" ( (pointer_expression "*(code *)PTR_closedir_0012ac84" * (cast_expression "(code *)PTR_closedir_0012ac84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x1054,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x1054" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (if_statement "if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }" if (parenthesized_expression "((param_2 & 0x10) != 0)" ( (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1040" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" * (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "iVar3 = FUN_000e5fd0();" (assignment_expression "iVar3 = FUN_000e5fd0()" identifier = (call_expression "FUN_000e5fd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000f7b98;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;)) })) (if_statement "if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }" if (parenthesized_expression "((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3))" ( (binary_expression "(iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)" ( (comma_expression "iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3" (assignment_expression "iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1)" identifier = (call_expression "(*(code *)PTR_rmdir_0012b130)(param_1)" (parenthesized_expression "(*(code *)PTR_rmdir_0012b130)" ( (pointer_expression "*(code *)PTR_rmdir_0012b130" * (cast_expression "(code *)PTR_rmdir_0012b130" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) , (binary_expression "-1 < iVar3" number_literal < identifier)) ))) )) (compound_statement "{\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }" { (if_statement "if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }" if (parenthesized_expression "((param_2 & 0x1000) != 0)" ( (binary_expression "(param_2 & 0x1000) != 0" (parenthesized_expression "(param_2 & 0x1000)" ( (binary_expression "param_2 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }" { (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_FUN_0012a1a8 + -0x1024,param_1)" ( number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1024" identifier + number_literal) , identifier ))) ;) })) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) }) (else_clause "else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" else (compound_statement "{\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" { (if_statement "if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" if (parenthesized_expression "((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0))" ( (binary_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)" (parenthesized_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0))" ( (binary_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (parenthesized_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000))" ( (binary_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)" (parenthesized_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))" ( (binary_expression "((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" ( (comma_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(param_1,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,2)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) && (parenthesized_expression "((local_b8 & 0xf000) != 0xa000)" ( (binary_expression "(local_b8 & 0xf000) != 0xa000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0)" identifier = (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" ( (pointer_expression "*(code *)PTR_isatty_0012ace8" * (cast_expression "(code *)PTR_isatty_0012ace8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "((param_2 & 0x10) != 0)" ( (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1008" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" * (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "iVar2 = FUN_000e5fd0();" (assignment_expression "iVar2 = FUN_000e5fd0()" identifier = (call_expression "FUN_000e5fd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) goto LAB_000f7b94;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) })) (expression_statement "iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1)" identifier = (call_expression "(*(code *)PTR_unlink_0012b08c)(param_1)" (parenthesized_expression "(*(code *)PTR_unlink_0012b08c)" ( (pointer_expression "*(code *)PTR_unlink_0012b08c" * (cast_expression "(code *)PTR_unlink_0012b08c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }" { (if_statement "if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }" if (parenthesized_expression "((param_2 & 0x1000) != 0)" ( (binary_expression "(param_2 & 0x1000) != 0" (parenthesized_expression "(param_2 & 0x1000)" ( (binary_expression "param_2 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1)" ( number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1eb4" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x4930,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x4930" identifier + number_literal) , identifier ))) ;) }))) (labeled_statement "LAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar1)" ( (binary_expression "local_2c != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int remove_file(char *path,int flags)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  char *path_00;\n  stat path_stat;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar3 = (*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat);\n  if (iVar3 < 0) {\n    if (**(int **)PTR_bb_errno_0012a214 == 2) {\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }\n    else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }\n  }\n  else if ((path_stat.st_mode & 0xf000) == 0x4000) {\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }\n  else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }\nLAB_000f7b98:\n  do {\n    do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);\n    iVar3 = 0;\n    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }\n    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);\n    if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }\n    iVar3 = -1;\n    (*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);\n  } while( true );\n}\n\n" (function_definition "int remove_file(char *path,int flags)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  char *path_00;\n  stat path_stat;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar3 = (*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat);\n  if (iVar3 < 0) {\n    if (**(int **)PTR_bb_errno_0012a214 == 2) {\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }\n    else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }\n  }\n  else if ((path_stat.st_mode & 0xf000) == 0x4000) {\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }\n  else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }\nLAB_000f7b98:\n  do {\n    do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);\n    iVar3 = 0;\n    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }\n    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);\n    if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }\n    iVar3 = -1;\n    (*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);\n  } while( true );\n}" primitive_type (function_declarator "remove_file(char *path,int flags)" identifier (parameter_list "(char *path,int flags)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  char *path_00;\n  stat path_stat;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar3 = (*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat);\n  if (iVar3 < 0) {\n    if (**(int **)PTR_bb_errno_0012a214 == 2) {\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }\n    else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }\n  }\n  else if ((path_stat.st_mode & 0xf000) == 0x4000) {\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }\n  else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }\nLAB_000f7b98:\n  do {\n    do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);\n    iVar3 = 0;\n    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }\n    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);\n    if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }\n    iVar3 = -1;\n    (*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *path_00;" primitive_type (pointer_declarator "*path_00" * identifier) ;) (declaration "stat path_stat;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = (*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat);" (assignment_expression "iVar3 = (*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat)" identifier = (call_expression "(*(code *)PTR___lxstat64_0012ac98)(3,path,&path_stat)" (parenthesized_expression "(*(code *)PTR___lxstat64_0012ac98)" ( (pointer_expression "*(code *)PTR___lxstat64_0012ac98" * (cast_expression "(code *)PTR___lxstat64_0012ac98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,path,&path_stat)" ( number_literal , identifier , (pointer_expression "&path_stat" & identifier) )))) ;) (if_statement "if (iVar3 < 0) {\n    if (**(int **)PTR_bb_errno_0012a214 == 2) {\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }\n    else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }\n  }\n  else if ((path_stat.st_mode & 0xf000) == 0x4000) {\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }\n  else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    if (**(int **)PTR_bb_errno_0012a214 == 2) {\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }\n    else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }\n  }" { (if_statement "if (**(int **)PTR_bb_errno_0012a214 == 2) {\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }\n    else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }" if (parenthesized_expression "(**(int **)PTR_bb_errno_0012a214 == 2)" ( (binary_expression "**(int **)PTR_bb_errno_0012a214 == 2" (pointer_expression "**(int **)PTR_bb_errno_0012a214" * (pointer_expression "*(int **)PTR_bb_errno_0012a214" * (cast_expression "(int **)PTR_bb_errno_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n      flags = flags & 8;\n      if (flags != 0) goto LAB_000f7b94;\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n    }" { (expression_statement "flags = flags & 8;" (assignment_expression "flags = flags & 8" identifier = (binary_expression "flags & 8" identifier & number_literal)) ;) (if_statement "if (flags != 0) goto LAB_000f7b94;" if (parenthesized_expression "(flags != 0)" ( (binary_expression "flags != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);" (comma_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path" (binary_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n                (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , identifier) (ERROR ")" )) ;) }) (else_clause "else {\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }" else (compound_statement "{\n      iVar3 = -1;\n      (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);\n    }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path);" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + -0x96c,path)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + -0x96c,path)" ( (binary_expression "PTR_UINT_0012a18c + -0x96c" identifier + number_literal) , identifier ))) ;) }))) }) (else_clause "else if ((path_stat.st_mode & 0xf000) == 0x4000) {\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }\n  else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }" else (if_statement "if ((path_stat.st_mode & 0xf000) == 0x4000) {\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }\n  else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }" if (parenthesized_expression "((path_stat.st_mode & 0xf000) == 0x4000)" ( (binary_expression "(path_stat.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(path_stat.st_mode & 0xf000)" ( (binary_expression "path_stat.st_mode & 0xf000" (field_expression "path_stat.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((flags & 4U) != 0) goto LAB_000f7c50;\n    iVar3 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);\n  }" { (if_statement "if ((flags & 4U) != 0) goto LAB_000f7c50;" if (parenthesized_expression "((flags & 4U) != 0)" ( (binary_expression "(flags & 4U) != 0" (parenthesized_expression "(flags & 4U)" ( (binary_expression "flags & 4U" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000f7c50;" goto statement_identifier ;)) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path);" (comma_expression "(*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98,path" (binary_expression "(*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4f98" (call_expression "(*(code *)PTR_bb_error_msg_0012a1c8)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_error_msg_0012a1c8)" ( (pointer_expression "*(code *)PTR_bb_error_msg_0012a1c8" * (cast_expression "(code *)PTR_bb_error_msg_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , identifier) (ERROR ")" )) ;) }) (else_clause "else {\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }" else (compound_statement "{\n    if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }\n    iVar3 = (*(code *)PTR_unlink_0012b08c)(path);\n    if (iVar3 < 0) goto LAB_000f7bf8;\n    flags = flags & 0x1000;\n    if (flags == 0) goto LAB_000f7b94;\n    iVar3 = 0;\n    (*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);\n  }" { (if_statement "if ((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }" if (parenthesized_expression "((((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0))" ( (binary_expression "(((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)" (parenthesized_expression "(((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0))" ( (binary_expression "((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)) &&\n        (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)" (parenthesized_expression "((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000))" ( (binary_expression "(((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n         ((path_stat.st_mode & 0xf000) != 0xa000)" (parenthesized_expression "(((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0))" ( (binary_expression "((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)" (parenthesized_expression "((flags & 8U) == 0)" ( (binary_expression "(flags & 8U) == 0" (parenthesized_expression "(flags & 8U)" ( (binary_expression "flags & 8U" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)" ( (comma_expression "iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0" (assignment_expression "iVar3 = (*(code *)PTR_access_0012ae48)(path,2)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(path,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path,2)" ( identifier , number_literal )))) , (binary_expression "iVar3 < 0" identifier < number_literal)) ))) )) && (parenthesized_expression "((path_stat.st_mode & 0xf000) != 0xa000)" ( (binary_expression "(path_stat.st_mode & 0xf000) != 0xa000" (parenthesized_expression "(path_stat.st_mode & 0xf000)" ( (binary_expression "path_stat.st_mode & 0xf000" (field_expression "path_stat.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)" ( (comma_expression "iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_isatty_0012ace8)(0)" identifier = (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" ( (pointer_expression "*(code *)PTR_isatty_0012ace8" * (cast_expression "(code *)PTR_isatty_0012ace8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "((flags & 0x10U) != 0)" ( (binary_expression "(flags & 0x10U) != 0" (parenthesized_expression "(flags & 0x10U)" ( (binary_expression "flags & 0x10U" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);\n      iVar3 = bb_ask_y_confirmation();\n      if (iVar3 == 0) goto LAB_000f7b94;\n    }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path);" (comma_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008,\n                 *(undefined4 *)PTR_applet_name_0012a1ac,path" (binary_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1008" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,\n                 PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (comma_expression "*(undefined4 *)PTR_applet_name_0012a1ac,path" (pointer_expression "*(undefined4 *)PTR_applet_name_0012a1ac" * (cast_expression "(undefined4 *)PTR_applet_name_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier)) (ERROR ")" )) ;) (expression_statement "iVar3 = bb_ask_y_confirmation();" (assignment_expression "iVar3 = bb_ask_y_confirmation()" identifier = (call_expression "bb_ask_y_confirmation()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000f7b94;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) })) (expression_statement "iVar3 = (*(code *)PTR_unlink_0012b08c)(path);" (assignment_expression "iVar3 = (*(code *)PTR_unlink_0012b08c)(path)" identifier = (call_expression "(*(code *)PTR_unlink_0012b08c)(path)" (parenthesized_expression "(*(code *)PTR_unlink_0012b08c)" ( (pointer_expression "*(code *)PTR_unlink_0012b08c" * (cast_expression "(code *)PTR_unlink_0012b08c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path)" ( identifier )))) ;) (if_statement "if (iVar3 < 0) goto LAB_000f7bf8;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000f7bf8;" goto statement_identifier ;)) (expression_statement "flags = flags & 0x1000;" (assignment_expression "flags = flags & 0x1000" identifier = (binary_expression "flags & 0x1000" identifier & number_literal)) ;) (if_statement "if (flags == 0) goto LAB_000f7b94;" if (parenthesized_expression "(flags == 0)" ( (binary_expression "flags == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path);" (comma_expression "(*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4,path" (binary_expression "(*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1eb4" (call_expression "(*(code *)PTR___printf_chk_0012ae30)\n              (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , identifier) (ERROR ")" )) ;) }))))) (labeled_statement "LAB_000f7b98:\n  do {\n    do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);\n    iVar3 = 0;\n    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }\n    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);\n    if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }\n    iVar3 = -1;\n    (*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);\n  } while( true );" statement_identifier : (do_statement "do {\n    do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);\n    iVar3 = 0;\n    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }\n    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);\n    if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }\n    iVar3 = -1;\n    (*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);\n  } while( true );" do (compound_statement "{\n    do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);\n    iVar3 = 0;\n    while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }\n    iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);\n    if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }\n    iVar3 = -1;\n    (*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);\n  }" { (do_statement "do {\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    } while (iVar4 == 0);" do (compound_statement "{\n      if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }\n      iVar3 = -1;\n      iVar4 = (*(code *)PTR_opendir_0012ac74)(path);\n    }" { (if_statement "if (iVar2 == *(int *)puVar1) {\n        return iVar3;\n      }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_000f7c50:\n      if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }" statement_identifier : (if_statement "if (((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }" if (parenthesized_expression "(((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0))" ( (binary_expression "((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)) || ((flags & 0x10U) != 0)" (parenthesized_expression "((((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0))" ( (binary_expression "(((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)) &&\n          (iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)" (parenthesized_expression "(((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0))" ( (binary_expression "((flags & 8U) == 0) && (iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)" (parenthesized_expression "((flags & 8U) == 0)" ( (binary_expression "(flags & 8U) == 0" (parenthesized_expression "(flags & 8U)" ( (binary_expression "flags & 8U" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0)" ( (comma_expression "iVar3 = (*(code *)PTR_access_0012ae48)(path,2), iVar3 < 0" (assignment_expression "iVar3 = (*(code *)PTR_access_0012ae48)(path,2)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(path,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path,2)" ( identifier , number_literal )))) , (binary_expression "iVar3 < 0" identifier < number_literal)) ))) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0)" ( (comma_expression "iVar3 = (*(code *)PTR_isatty_0012ace8)(0), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_isatty_0012ace8)(0)" identifier = (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" ( (pointer_expression "*(code *)PTR_isatty_0012ace8" * (cast_expression "(code *)PTR_isatty_0012ace8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "((flags & 0x10U) != 0)" ( (binary_expression "(flags & 0x10U) != 0" (parenthesized_expression "(flags & 0x10U)" ( (binary_expression "flags & 0x10U" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar3 = bb_ask_y_confirmation();\n        if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);" (comma_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path" (binary_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1078" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (comma_expression "*(undefined4 *)PTR_applet_name_0012a1ac,path" (pointer_expression "*(undefined4 *)PTR_applet_name_0012a1ac" * (cast_expression "(undefined4 *)PTR_applet_name_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier)) (ERROR ")" )) ;) (expression_statement "iVar3 = bb_ask_y_confirmation();" (assignment_expression "iVar3 = bb_ask_y_confirmation()" identifier = (call_expression "bb_ask_y_confirmation()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000f7b94:\n          iVar3 = 0;\n          goto LAB_000f7b98;\n        }" { (labeled_statement "LAB_000f7b94:\n          iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_opendir_0012ac74)(path);" (assignment_expression "iVar4 = (*(code *)PTR_opendir_0012ac74)(path)" identifier = (call_expression "(*(code *)PTR_opendir_0012ac74)(path)" (parenthesized_expression "(*(code *)PTR_opendir_0012ac74)" ( (pointer_expression "*(code *)PTR_opendir_0012ac74" * (cast_expression "(code *)PTR_opendir_0012ac74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while (iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0) {\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }" while (parenthesized_expression "(iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0)" ( (comma_expression "iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4), iVar5 != 0" (assignment_expression "iVar5 = (*(code *)PTR_readdir64_0012ad2c)(iVar4)" identifier = (call_expression "(*(code *)PTR_readdir64_0012ad2c)(iVar4)" (parenthesized_expression "(*(code *)PTR_readdir64_0012ad2c)" ( (pointer_expression "*(code *)PTR_readdir64_0012ad2c" * (cast_expression "(code *)PTR_readdir64_0012ad2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n      path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));\n      if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }\n    }" { (expression_statement "path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13));" (assignment_expression "path_00 = concat_subpath_file(path,(char *)(iVar5 + 0x13))" identifier = (call_expression "concat_subpath_file(path,(char *)(iVar5 + 0x13))" identifier (argument_list "(path,(char *)(iVar5 + 0x13))" ( identifier , (cast_expression "(char *)(iVar5 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x13)" ( (binary_expression "iVar5 + 0x13" identifier + number_literal) ))) )))) ;) (if_statement "if (path_00 != (char *)0x0) {\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }" if (parenthesized_expression "(path_00 != (char *)0x0)" ( (binary_expression "path_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = remove_file(path_00,flags);\n        if (iVar5 < 0) {\n          iVar3 = -1;\n        }\n        (*(code *)PTR_free_0012b168)(path_00);\n      }" { (expression_statement "iVar5 = remove_file(path_00,flags);" (assignment_expression "iVar5 = remove_file(path_00,flags)" identifier = (call_expression "remove_file(path_00,flags)" identifier (argument_list "(path_00,flags)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n          iVar3 = -1;\n        }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar3 = -1;\n        }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_0012b168)(path_00);" (call_expression "(*(code *)PTR_free_0012b168)(path_00)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path_00)" ( identifier ))) ;) })) })) (expression_statement "iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4);" (assignment_expression "iVar4 = (*(code *)PTR_closedir_0012ac84)(iVar4)" identifier = (call_expression "(*(code *)PTR_closedir_0012ac84)(iVar4)" (parenthesized_expression "(*(code *)PTR_closedir_0012ac84)" ( (pointer_expression "*(code *)PTR_closedir_0012ac84" * (cast_expression "(code *)PTR_closedir_0012ac84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (-1 < iVar4) {\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }\n      goto LAB_000f7b98;\n    }" { (if_statement "if ((flags & 0x10U) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }" if (parenthesized_expression "((flags & 0x10U) != 0)" ( (binary_expression "(flags & 0x10U) != 0" (parenthesized_expression "(flags & 0x10U)" ( (binary_expression "flags & 0x10U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);\n        iVar4 = bb_ask_y_confirmation();\n        if (iVar4 == 0) goto LAB_000f7b98;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path);" (comma_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_applet_name_0012a1ac,path" (binary_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1040" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (comma_expression "*(undefined4 *)PTR_applet_name_0012a1ac,path" (pointer_expression "*(undefined4 *)PTR_applet_name_0012a1ac" * (cast_expression "(undefined4 *)PTR_applet_name_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier)) (ERROR ")" )) ;) (expression_statement "iVar4 = bb_ask_y_confirmation();" (assignment_expression "iVar4 = bb_ask_y_confirmation()" identifier = (call_expression "bb_ask_y_confirmation()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) goto LAB_000f7b98;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;)) })) (if_statement "if ((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)) {\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }\n      else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }" if (parenthesized_expression "((iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0))" ( (binary_expression "(iVar3 == 0) && (iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0)" ( (comma_expression "iVar4 = (*(code *)PTR_rmdir_0012b130)(path), iVar4 < 0" (assignment_expression "iVar4 = (*(code *)PTR_rmdir_0012b130)(path)" identifier = (call_expression "(*(code *)PTR_rmdir_0012b130)(path)" (parenthesized_expression "(*(code *)PTR_rmdir_0012b130)" ( (pointer_expression "*(code *)PTR_rmdir_0012b130" * (cast_expression "(code *)PTR_rmdir_0012b130" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path)" ( identifier )))) , (binary_expression "iVar4 < 0" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_000f7bf8:\n        iVar3 = -1;\n        (*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);\n      }" { (labeled_statement "LAB_000f7bf8:\n        iVar3 = -1;" statement_identifier : (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;)) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path);" (comma_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930,path" (binary_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x4930" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , identifier) (ERROR ")" )) ;) }) (else_clause "else {\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }" else (compound_statement "{\n        flags = flags & 0x1000;\n        if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }\n      }" { (expression_statement "flags = flags & 0x1000;" (assignment_expression "flags = flags & 0x1000" identifier = (binary_expression "flags & 0x1000" identifier & number_literal)) ;) (if_statement "if (flags != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }" if (parenthesized_expression "(flags != 0)" ( (binary_expression "flags != 0" identifier != number_literal) )) (compound_statement "{\n          (*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);\n        }" { (expression_statement "(*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path);" (comma_expression "(*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024,path" (binary_expression "(*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1024" (call_expression "(*(code *)PTR___printf_chk_0012ae30)\n                    (1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , identifier) (ERROR ")" )) ;) })) }))) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path);" (comma_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054,path" (binary_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x1054" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)\n              (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , identifier) (ERROR ")" )) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "int FUN_000f7a34(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000f7a34(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000f7a34(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 auStack_d0 [24];" type_identifier (array_declarator "auStack_d0 [24]" identifier [ number_literal ]) ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);" (assignment_expression "iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0)" identifier = (call_expression "(*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0)" (parenthesized_expression "(*(code *)PTR___lxstat64_0012ac98)" ( (pointer_expression "*(code *)PTR___lxstat64_0012ac98" * (cast_expression "(code *)PTR___lxstat64_0012ac98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_d0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }" { (if_statement "if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 != 2)" ( (binary_expression "**(int **)PTR_DAT_0012a214 != 2" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) != number_literal) )) (compound_statement "{\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + -0x96c,param_1)" ( (binary_expression "PTR_UINT_0012a18c + -0x96c" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (if_statement "if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x4930,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x4930" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (labeled_statement "LAB_000f7b94:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" else (compound_statement "{\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" { (if_statement "if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" if (parenthesized_expression "((local_b8 & 0xf000) == 0x4000)" ( (binary_expression "(local_b8 & 0xf000) == 0x4000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }" { (if_statement "if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }" if (parenthesized_expression "((param_2 & 4) == 0)" ( (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x4f98,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x4f98" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (if_statement "if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" if (parenthesized_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0))" ( (binary_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)" (parenthesized_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0))" ( (binary_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (parenthesized_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))" ( (binary_expression "((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" ( (comma_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(param_1,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,2)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0)" identifier = (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" ( (pointer_expression "*(code *)PTR_isatty_0012ace8" * (cast_expression "(code *)PTR_isatty_0012ace8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "((param_2 & 0x10) != 0)" ( (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1078" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" * (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "iVar2 = FUN_000e5fd0();" (assignment_expression "iVar2 = FUN_000e5fd0()" identifier = (call_expression "FUN_000e5fd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) goto LAB_000f7b94;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) })) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1)" identifier = (call_expression "(*(code *)PTR_opendir_0012ac74)(param_1)" (parenthesized_expression "(*(code *)PTR_opendir_0012ac74)" ( (pointer_expression "*(code *)PTR_opendir_0012ac74" * (cast_expression "(code *)PTR_opendir_0012ac74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000f7b98;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (while_statement "while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }" while (parenthesized_expression "(iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0)" ( (comma_expression "iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0" (assignment_expression "iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3)" identifier = (call_expression "(*(code *)PTR_readdir64_0012ad2c)(iVar3)" (parenthesized_expression "(*(code *)PTR_readdir64_0012ad2c)" ( (pointer_expression "*(code *)PTR_readdir64_0012ad2c" * (cast_expression "(code *)PTR_readdir64_0012ad2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }" { (expression_statement "iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);" (assignment_expression "iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13)" identifier = (call_expression "FUN_000e6d14(param_1,iVar4 + 0x13)" identifier (argument_list "(param_1,iVar4 + 0x13)" ( identifier , (binary_expression "iVar4 + 0x13" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }" { (expression_statement "iVar5 = FUN_000f7a34(iVar4,param_2);" (assignment_expression "iVar5 = FUN_000f7a34(iVar4,param_2)" identifier = (call_expression "FUN_000f7a34(iVar4,param_2)" identifier (argument_list "(iVar4,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n            iVar2 = -1;\n          }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar2 = -1;\n          }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_0012b168)(iVar4);" (call_expression "(*(code *)PTR_free_0012b168)(iVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) })) })) (expression_statement "iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3)" identifier = (call_expression "(*(code *)PTR_closedir_0012ac84)(iVar3)" (parenthesized_expression "(*(code *)PTR_closedir_0012ac84)" ( (pointer_expression "*(code *)PTR_closedir_0012ac84" * (cast_expression "(code *)PTR_closedir_0012ac84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x1054,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x1054" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (if_statement "if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }" if (parenthesized_expression "((param_2 & 0x10) != 0)" ( (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1040" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" * (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "iVar3 = FUN_000e5fd0();" (assignment_expression "iVar3 = FUN_000e5fd0()" identifier = (call_expression "FUN_000e5fd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) goto LAB_000f7b98;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;)) })) (if_statement "if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }" if (parenthesized_expression "((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3))" ( (binary_expression "(iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)" ( (comma_expression "iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3" (assignment_expression "iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1)" identifier = (call_expression "(*(code *)PTR_rmdir_0012b130)(param_1)" (parenthesized_expression "(*(code *)PTR_rmdir_0012b130)" ( (pointer_expression "*(code *)PTR_rmdir_0012b130" * (cast_expression "(code *)PTR_rmdir_0012b130" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) , (binary_expression "-1 < iVar3" number_literal < identifier)) ))) )) (compound_statement "{\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }" { (if_statement "if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }" if (parenthesized_expression "((param_2 & 0x1000) != 0)" ( (binary_expression "(param_2 & 0x1000) != 0" (parenthesized_expression "(param_2 & 0x1000)" ( (binary_expression "param_2 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }" { (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_FUN_0012a1a8 + -0x1024,param_1)" ( number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1024" identifier + number_literal) , identifier ))) ;) })) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) }) (else_clause "else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" else (compound_statement "{\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" { (if_statement "if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" if (parenthesized_expression "((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0))" ( (binary_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)" (parenthesized_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0))" ( (binary_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (parenthesized_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000))" ( (binary_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)" (parenthesized_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))" ( (binary_expression "((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" ( (comma_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(param_1,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,2)" ( identifier , number_literal )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) && (parenthesized_expression "((local_b8 & 0xf000) != 0xa000)" ( (binary_expression "(local_b8 & 0xf000) != 0xa000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0)" identifier = (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" ( (pointer_expression "*(code *)PTR_isatty_0012ace8" * (cast_expression "(code *)PTR_isatty_0012ace8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "((param_2 & 0x10) != 0)" ( (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" { (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1008" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" * (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "iVar2 = FUN_000e5fd0();" (assignment_expression "iVar2 = FUN_000e5fd0()" identifier = (call_expression "FUN_000e5fd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) goto LAB_000f7b94;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;)) })) (expression_statement "iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1)" identifier = (call_expression "(*(code *)PTR_unlink_0012b08c)(param_1)" (parenthesized_expression "(*(code *)PTR_unlink_0012b08c)" ( (pointer_expression "*(code *)PTR_unlink_0012b08c" * (cast_expression "(code *)PTR_unlink_0012b08c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }" { (if_statement "if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }" if (parenthesized_expression "((param_2 & 0x1000) != 0)" ( (binary_expression "(param_2 & 0x1000) != 0" (parenthesized_expression "(param_2 & 0x1000)" ( (binary_expression "param_2 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1)" ( number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x1eb4" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000f7b98;" goto statement_identifier ;) })) (goto_statement "goto LAB_000f7b94;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x4930,param_1)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x4930" identifier + number_literal) , identifier ))) ;) }))) (labeled_statement "LAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar1)" ( (binary_expression "local_2c != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) != LIT) )) (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 ( (binary_expression IDENT + LIT) , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (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 ( (binary_expression IDENT + LIT) , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (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 ( (binary_expression IDENT + LIT) , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) , (binary_expression IDENT < LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression 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 ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (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 ))) ;) })) })) (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) )) (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 ( (binary_expression IDENT + LIT) , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) , (binary_expression IDENT < LIT)) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression 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 LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (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 ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) }))) (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 ( (binary_expression IDENT + LIT) , 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 { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000f7a34(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000f7a34(undefined4 param_1,uint param_2)" (identifier "FUN_000f7a34") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);\n  if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }\nLAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }\n  return iVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 auStack_d0 [24];" (type_identifier "undefined1") (array_declarator "auStack_d0 [24]" (identifier "auStack_d0") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "uint local_b8;" (type_identifier "uint") (identifier "local_b8") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);" (assignment_expression "iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0)" (parenthesized_expression "(*(code *)PTR___lxstat64_0012ac98)" (( "(") (pointer_expression "*(code *)PTR___lxstat64_0012ac98" (* "*") (cast_expression "(code *)PTR___lxstat64_0012ac98" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___lxstat64_0012ac98"))) () ")")) (argument_list "(3,param_1,auStack_d0)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (identifier "auStack_d0") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }\n  else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }\n    if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }\nLAB_000f7b94:\n    iVar2 = 0;\n  }" ({ "{") (if_statement "if (**(int **)PTR_DAT_0012a214 != 2) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }" (if "if") (parenthesized_expression "(**(int **)PTR_DAT_0012a214 != 2)" (( "(") (binary_expression "**(int **)PTR_DAT_0012a214 != 2" (pointer_expression "**(int **)PTR_DAT_0012a214" (* "*") (pointer_expression "*(int **)PTR_DAT_0012a214" (* "*") (cast_expression "(int **)PTR_DAT_0012a214" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0012a214")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);\n      goto LAB_000f7b98;\n    }" ({ "{") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(PTR_UINT_0012a18c + -0x96c,param_1)" (( "(") (binary_expression "PTR_UINT_0012a18c + -0x96c" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "-0x96c")) (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";")) (} "}"))) (if_statement "if ((param_2 & 8) == 0) {\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }" (if "if") (parenthesized_expression "((param_2 & 8) == 0)" (( "(") (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = -1;\n      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n      goto LAB_000f7b98;\n    }" ({ "{") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0x4930,param_1)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0x4930" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x4930")) (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";")) (} "}"))) (labeled_statement "LAB_000f7b94:\n    iVar2 = 0;" (statement_identifier "LAB_000f7b94") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" (else "else") (compound_statement "{\n    if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }\n    iVar2 = -1;\n    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);\n  }" ({ "{") (if_statement "if ((local_b8 & 0xf000) == 0x4000) {\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }\n    else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" (if "if") (parenthesized_expression "((local_b8 & 0xf000) == 0x4000)" (( "(") (binary_expression "(local_b8 & 0xf000) == 0x4000" (parenthesized_expression "(local_b8 & 0xf000)" (( "(") (binary_expression "local_b8 & 0xf000" (identifier "local_b8") (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000")) () ")")) (compound_statement "{\n      if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }\n      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = -1;\n      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);\n      if (iVar3 == 0) goto LAB_000f7b98;\n      iVar2 = 0;\n      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }\n      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);\n      if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }\n      if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }\n      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }\n    }" ({ "{") (if_statement "if ((param_2 & 4) == 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }" (if "if") (parenthesized_expression "((param_2 & 4) == 0)" (( "(") (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" (( "(") (binary_expression "param_2 & 4" (identifier "param_2") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);\n        goto LAB_000f7b98;\n      }" ({ "{") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a1c8" (* "*") (cast_expression "(code *)PTR_FUN_0012a1c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a1c8"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0x4f98,param_1)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0x4f98" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x4f98")) (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";")) (} "}"))) (if_statement "if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" (if "if") (parenthesized_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0))" (( "(") (binary_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)" (parenthesized_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0))" (( "(") (binary_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (parenthesized_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))" (( "(") (binary_expression "((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (parenthesized_expression "((param_2 & 8) == 0)" (( "(") (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (( "(") (comma_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_access_0012ae48)(param_1,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" (( "(") (pointer_expression "*(code *)PTR_access_0012ae48" (* "*") (cast_expression "(code *)PTR_access_0012ae48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_access_0012ae48"))) () ")")) (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")")))) (, ",") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (( "(") (comma_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" (( "(") (pointer_expression "*(code *)PTR_isatty_0012ace8" (* "*") (cast_expression "(code *)PTR_isatty_0012ace8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_isatty_0012ace8"))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((param_2 & 0x10) != 0)" (( "(") (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" (( "(") (binary_expression "param_2 & 0x10" (identifier "param_2") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" ({ "{") (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_0012ad0c"))) () ")")) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0012b184" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0012b184"))) (, ",") (number_literal "1") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x1078" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x1078")) (, ",") (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" (* "*") (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0012a1ac"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_000e5fd0();" (assignment_expression "iVar2 = FUN_000e5fd0()" (identifier "iVar2") (= "=") (call_expression "FUN_000e5fd0()" (identifier "FUN_000e5fd0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_000f7b94;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f7b94;" (goto "goto") (statement_identifier "LAB_000f7b94") (; ";"))) (} "}"))) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_opendir_0012ac74)(param_1)" (parenthesized_expression "(*(code *)PTR_opendir_0012ac74)" (( "(") (pointer_expression "*(code *)PTR_opendir_0012ac74" (* "*") (cast_expression "(code *)PTR_opendir_0012ac74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_opendir_0012ac74"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_000f7b98;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (while_statement "while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }" (while "while") (parenthesized_expression "(iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0)" (( "(") (comma_expression "iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0" (assignment_expression "iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_readdir64_0012ad2c)(iVar3)" (parenthesized_expression "(*(code *)PTR_readdir64_0012ad2c)" (( "(") (pointer_expression "*(code *)PTR_readdir64_0012ad2c" (* "*") (cast_expression "(code *)PTR_readdir64_0012ad2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_readdir64_0012ad2c"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);\n        if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }\n      }" ({ "{") (expression_statement "iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);" (assignment_expression "iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13)" (identifier "iVar4") (= "=") (call_expression "FUN_000e6d14(param_1,iVar4 + 0x13)" (identifier "FUN_000e6d14") (argument_list "(param_1,iVar4 + 0x13)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar4 + 0x13" (identifier "iVar4") (+ "+") (number_literal "0x13")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar5 = FUN_000f7a34(iVar4,param_2);\n          if (iVar5 < 0) {\n            iVar2 = -1;\n          }\n          (*(code *)PTR_free_0012b168)(iVar4);\n        }" ({ "{") (expression_statement "iVar5 = FUN_000f7a34(iVar4,param_2);" (assignment_expression "iVar5 = FUN_000f7a34(iVar4,param_2)" (identifier "iVar5") (= "=") (call_expression "FUN_000f7a34(iVar4,param_2)" (identifier "FUN_000f7a34") (argument_list "(iVar4,param_2)" (( "(") (identifier "iVar4") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) {\n            iVar2 = -1;\n          }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            iVar2 = -1;\n          }" ({ "{") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0012b168)(iVar4);" (call_expression "(*(code *)PTR_free_0012b168)(iVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_closedir_0012ac84)(iVar3)" (parenthesized_expression "(*(code *)PTR_closedir_0012ac84)" (( "(") (pointer_expression "*(code *)PTR_closedir_0012ac84" (* "*") (cast_expression "(code *)PTR_closedir_0012ac84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_closedir_0012ac84"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = -1;\n        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);\n        goto LAB_000f7b98;\n      }" ({ "{") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0x1054,param_1)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0x1054" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x1054")) (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";")) (} "}"))) (if_statement "if ((param_2 & 0x10) != 0) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }" (if "if") (parenthesized_expression "((param_2 & 0x10) != 0)" (( "(") (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" (( "(") (binary_expression "param_2 & 0x10" (identifier "param_2") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar3 = FUN_000e5fd0();\n        if (iVar3 == 0) goto LAB_000f7b98;\n      }" ({ "{") (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_0012ad0c"))) () ")")) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0012b184" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0012b184"))) (, ",") (number_literal "1") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x1040" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x1040")) (, ",") (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" (* "*") (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0012a1ac"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_000e5fd0();" (assignment_expression "iVar3 = FUN_000e5fd0()" (identifier "iVar3") (= "=") (call_expression "FUN_000e5fd0()" (identifier "FUN_000e5fd0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_000f7b98;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";"))) (} "}"))) (if_statement "if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }" (if "if") (parenthesized_expression "((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3))" (( "(") (binary_expression "(iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)" (( "(") (comma_expression "iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3" (assignment_expression "iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_rmdir_0012b130)(param_1)" (parenthesized_expression "(*(code *)PTR_rmdir_0012b130)" (( "(") (pointer_expression "*(code *)PTR_rmdir_0012b130" (* "*") (cast_expression "(code *)PTR_rmdir_0012b130" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rmdir_0012b130"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3"))) () ")"))) () ")")) (compound_statement "{\n        if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }\n        goto LAB_000f7b98;\n      }" ({ "{") (if_statement "if ((param_2 & 0x1000) != 0) {\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }" (if "if") (parenthesized_expression "((param_2 & 0x1000) != 0)" (( "(") (binary_expression "(param_2 & 0x1000) != 0" (parenthesized_expression "(param_2 & 0x1000)" (( "(") (binary_expression "param_2 & 0x1000" (identifier "param_2") (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);\n        }" ({ "{") (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_0012ae30" (* "*") (cast_expression "(code *)PTR___printf_chk_0012ae30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_0012ae30"))) () ")")) (argument_list "(1,PTR_FUN_0012a1a8 + -0x1024,param_1)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x1024" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x1024")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" (else "else") (compound_statement "{\n      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }\n      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);\n      if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }\n    }" ({ "{") (if_statement "if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" (if "if") (parenthesized_expression "((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0))" (( "(") (binary_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)" (parenthesized_expression "(((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0))" (( "(") (binary_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)) &&\n          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (parenthesized_expression "((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000))" (( "(") (binary_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))\n           && ((local_b8 & 0xf000) != 0xa000)" (parenthesized_expression "(((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))" (( "(") (binary_expression "((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (parenthesized_expression "((param_2 & 8) == 0)" (( "(") (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0)" (( "(") (comma_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_access_0012ae48)(param_1,2)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" (( "(") (pointer_expression "*(code *)PTR_access_0012ae48" (* "*") (cast_expression "(code *)PTR_access_0012ae48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_access_0012ae48"))) () ")")) (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")")))) (, ",") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((local_b8 & 0xf000) != 0xa000)" (( "(") (binary_expression "(local_b8 & 0xf000) != 0xa000" (parenthesized_expression "(local_b8 & 0xf000)" (( "(") (binary_expression "local_b8 & 0xf000" (identifier "local_b8") (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0xa000")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)" (( "(") (comma_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_isatty_0012ace8)(0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_isatty_0012ace8)(0)" (parenthesized_expression "(*(code *)PTR_isatty_0012ace8)" (( "(") (pointer_expression "*(code *)PTR_isatty_0012ace8" (* "*") (cast_expression "(code *)PTR_isatty_0012ace8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_isatty_0012ace8"))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((param_2 & 0x10) != 0)" (( "(") (binary_expression "(param_2 & 0x10) != 0" (parenthesized_expression "(param_2 & 0x10)" (( "(") (binary_expression "param_2 & 0x10" (identifier "param_2") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);\n        iVar2 = FUN_000e5fd0();\n        if (iVar2 == 0) goto LAB_000f7b94;\n      }" ({ "{") (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_0012ad0c"))) () ")")) (argument_list "(*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,\n                   *(undefined4 *)PTR_DAT_0012a1ac,param_1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0012b184" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0012b184"))) (, ",") (number_literal "1") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x1008" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x1008")) (, ",") (pointer_expression "*(undefined4 *)PTR_DAT_0012a1ac" (* "*") (cast_expression "(undefined4 *)PTR_DAT_0012a1ac" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0012a1ac"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_000e5fd0();" (assignment_expression "iVar2 = FUN_000e5fd0()" (identifier "iVar2") (= "=") (call_expression "FUN_000e5fd0()" (identifier "FUN_000e5fd0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_000f7b94;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f7b94;" (goto "goto") (statement_identifier "LAB_000f7b94") (; ";"))) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_unlink_0012b08c)(param_1)" (parenthesized_expression "(*(code *)PTR_unlink_0012b08c)" (( "(") (pointer_expression "*(code *)PTR_unlink_0012b08c" (* "*") (cast_expression "(code *)PTR_unlink_0012b08c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_unlink_0012b08c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }\n        goto LAB_000f7b94;\n      }" ({ "{") (if_statement "if ((param_2 & 0x1000) != 0) {\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }" (if "if") (parenthesized_expression "((param_2 & 0x1000) != 0)" (( "(") (binary_expression "(param_2 & 0x1000) != 0" (parenthesized_expression "(param_2 & 0x1000)" (( "(") (binary_expression "param_2 & 0x1000" (identifier "param_2") (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = 0;\n          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);\n          goto LAB_000f7b98;\n        }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_0012ae30" (* "*") (cast_expression "(code *)PTR___printf_chk_0012ae30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_0012ae30"))) () ")")) (argument_list "(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x1eb4" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x1eb4")) (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000f7b98;" (goto "goto") (statement_identifier "LAB_000f7b98") (; ";")) (} "}"))) (goto_statement "goto LAB_000f7b94;" (goto "goto") (statement_identifier "LAB_000f7b94") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0x4930,param_1)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0x4930" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x4930")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_000f7b98:\n  if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" (statement_identifier "LAB_000f7b98") (: ":") (if_statement "if (local_2c != *(int *)puVar1) {\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar1)" (( "(") (binary_expression "local_2c != *(int *)puVar1" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

int function_1(char *path,int var_2)

{
  type_1 *puVar1;
  int var_8;
  int var_1;
  int var_9;
  int var_10;
  char *var_12;
  type_2 path_stat;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  var_8 = *(int *)PTR___stack_chk_guard_0012b14c;
  var_1 = (*(type_3 *)PTR___lxstat64_0012ac98)(3,path,&path_stat);
  if (var_1 < 0) {
    if (**(int **)PTR_bb_errno_0012a214 == 2) {
      var_2 = var_2 & 8;
      if (var_2 != 0) goto LAB_000f7b94;
      var_1 = -1;
      (*(type_3 *)PTR_bb_perror_msg_0012a238)
                (var_3<var_4&var_5)9__f_l_0012a1a8 + -0x4930,path);
    }
    else {
      var_1 = -1;
      (*(type_3 *)PTR_bb_perror_msg_0012a238)(var_6 + -0x96c,path);
    }
  }
  else if ((path_stat.st_mode & 0xf000) == 0x4000) {
    if ((var_2 & 4U) != 0) goto LAB_000f7c50;
    var_1 = -1;
    (*(type_3 *)PTR_bb_error_msg_0012a1c8)
              (var_3<var_4&var_5)9__f_l_0012a1a8 + -0x4f98,path);
  }
  else {
    if ((((((var_2 & 8U) == 0) && (var_1 = (*(type_3 *)PTR_access_0012ae48)(path,2), var_1 < 0)) &&
         ((path_stat.st_mode & 0xf000) != 0xa000)) &&
        (var_1 = (*(type_3 *)PTR_isatty_0012ace8)(0), var_1 != 0)) || ((var_2 & 0x10U) != 0)) {
      (*(type_3 *)PTR___fprintf_chk_0012ad0c)
                (*(type_4 *)PTR_stderr_0012b184,1,
                 var_3<var_4&var_5)9__f_l_0012a1a8 + -0x1008,
                 *(type_4 *)PTR_applet_name_0012a1ac,path);
      var_1 = var_7();
      if (var_1 == 0) goto LAB_000f7b94;
    }
    var_1 = (*(type_3 *)PTR_unlink_0012b08c)(path);
    if (var_1 < 0) goto LAB_000f7bf8;
    var_2 = var_2 & 0x1000;
    if (var_2 == 0) goto LAB_000f7b94;
    var_1 = 0;
    (*(type_3 *)PTR___printf_chk_0012ae30)
              (1,var_3<var_4&var_5)9__f_l_0012a1a8 + -0x1eb4,path);
  }
LAB_000f7b98:
  do {
    do {
      if (var_8 == *(int *)puVar1) {
        return var_1;
      }
      (*(type_3 *)PTR___stack_chk_fail_0012b0c8)();
LAB_000f7c50:
      if (((((var_2 & 8U) == 0) && (var_1 = (*(type_3 *)PTR_access_0012ae48)(path,2), var_1 < 0)) &&
          (var_1 = (*(type_3 *)PTR_isatty_0012ace8)(0), var_1 != 0)) || ((var_2 & 0x10U) != 0)) {
        (*(type_3 *)PTR___fprintf_chk_0012ad0c)
                  (*(type_4 *)PTR_stderr_0012b184,1,
                   var_3<var_4&var_5)9__f_l_0012a1a8 + -0x1078,
                   *(type_4 *)PTR_applet_name_0012a1ac,path);
        var_1 = var_7();
        if (var_1 == 0) {
LAB_000f7b94:
          var_1 = 0;
          goto LAB_000f7b98;
        }
      }
      var_1 = -1;
      var_9 = (*(type_3 *)PTR_opendir_0012ac74)(path);
    } while (var_9 == 0);
    var_1 = 0;
    while (var_10 = (*(type_3 *)PTR_readdir64_0012ad2c)(var_9), var_10 != 0) {
      var_12 = var_11(path,(char *)(var_10 + 0x13));
      if (var_12 != (char *)0x0) {
        var_10 = function_1(var_12,var_2);
        if (var_10 < 0) {
          var_1 = -1;
        }
        (*(type_3 *)PTR_free_0012b168)(var_12);
      }
    }
    var_9 = (*(type_3 *)PTR_closedir_0012ac84)(var_9);
    if (-1 < var_9) {
      if ((var_2 & 0x10U) != 0) {
        (*(type_3 *)PTR___fprintf_chk_0012ad0c)
                  (*(type_4 *)PTR_stderr_0012b184,1,
                   var_3<var_4&var_5)9__f_l_0012a1a8 + -0x1040,
                   *(type_4 *)PTR_applet_name_0012a1ac,path);
        var_9 = var_7();
        if (var_9 == 0) goto LAB_000f7b98;
      }
      if ((var_1 == 0) && (var_9 = (*(type_3 *)PTR_rmdir_0012b130)(path), var_9 < 0)) {
LAB_000f7bf8:
        var_1 = -1;
        (*(type_3 *)PTR_bb_perror_msg_0012a238)
                  (var_3<var_4&var_5)9__f_l_0012a1a8 + -0x4930,path);
      }
      else {
        var_2 = var_2 & 0x1000;
        if (var_2 != 0) {
          (*(type_3 *)PTR___printf_chk_0012ae30)
                    (1,var_3<var_4&var_5)9__f_l_0012a1a8 + -0x1024,path);
        }
      }
      goto LAB_000f7b98;
    }
    var_1 = -1;
    (*(type_3 *)PTR_bb_perror_msg_0012a238)
              (var_3<var_4&var_5)9__f_l_0012a1a8 + -0x1054,path);
  } while( true );
}


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

int MASKED(undefined4 param_1,uint param_2)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 auStack_d0 [24];
  uint local_b8;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  iVar2 = (*(code *)PTR___lxstat64_0012ac98)(3,param_1,auStack_d0);
  if (iVar2 < 0) {
    if (**(int **)PTR_DAT_0012a214 != 2) {
      iVar2 = -1;
      (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + -0x96c,param_1);
      goto LAB_000f7b98;
    }
    if ((param_2 & 8) == 0) {
      iVar2 = -1;
      (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);
      goto LAB_000f7b98;
    }
LAB_000f7b94:
    iVar2 = 0;
  }
  else {
    if ((local_b8 & 0xf000) == 0x4000) {
      if ((param_2 & 4) == 0) {
        iVar2 = -1;
        (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x4f98,param_1);
        goto LAB_000f7b98;
      }
      if (((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))
          && (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1078,
                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);
        iVar2 = FUN_000e5fd0();
        if (iVar2 == 0) goto LAB_000f7b94;
      }
      iVar2 = -1;
      iVar3 = (*(code *)PTR_opendir_0012ac74)(param_1);
      if (iVar3 == 0) goto LAB_000f7b98;
      iVar2 = 0;
      while (iVar4 = (*(code *)PTR_readdir64_0012ad2c)(iVar3), iVar4 != 0) {
        iVar4 = FUN_000e6d14(param_1,iVar4 + 0x13);
        if (iVar4 != 0) {
          iVar5 = MASKED(iVar4,param_2);
          if (iVar5 < 0) {
            iVar2 = -1;
          }
          (*(code *)PTR_free_0012b168)(iVar4);
        }
      }
      iVar3 = (*(code *)PTR_closedir_0012ac84)(iVar3);
      if (iVar3 < 0) {
        iVar2 = -1;
        (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x1054,param_1);
        goto LAB_000f7b98;
      }
      if ((param_2 & 0x10) != 0) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1040,
                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);
        iVar3 = FUN_000e5fd0();
        if (iVar3 == 0) goto LAB_000f7b98;
      }
      if ((iVar2 != 0) || (iVar3 = (*(code *)PTR_rmdir_0012b130)(param_1), -1 < iVar3)) {
        if ((param_2 & 0x1000) != 0) {
          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1024,param_1);
        }
        goto LAB_000f7b98;
      }
    }
    else {
      if ((((((param_2 & 8) == 0) && (iVar2 = (*(code *)PTR_access_0012ae48)(param_1,2), iVar2 < 0))
           && ((local_b8 & 0xf000) != 0xa000)) &&
          (iVar2 = (*(code *)PTR_isatty_0012ace8)(0), iVar2 != 0)) || ((param_2 & 0x10) != 0)) {
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (*(undefined4 *)PTR_stderr_0012b184,1,PTR_FUN_0012a1a8 + -0x1008,
                   *(undefined4 *)PTR_DAT_0012a1ac,param_1);
        iVar2 = FUN_000e5fd0();
        if (iVar2 == 0) goto LAB_000f7b94;
      }
      iVar2 = (*(code *)PTR_unlink_0012b08c)(param_1);
      if (-1 < iVar2) {
        if ((param_2 & 0x1000) != 0) {
          iVar2 = 0;
          (*(code *)PTR___printf_chk_0012ae30)(1,PTR_FUN_0012a1a8 + -0x1eb4,param_1);
          goto LAB_000f7b98;
        }
        goto LAB_000f7b94;
      }
    }
    iVar2 = -1;
    (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0x4930,param_1);
  }
LAB_000f7b98:
  if (local_2c != *(int *)puVar1) {
    iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return iVar2;
  }
  return iVar2;
}

