
int rpl_fchownat(int fd,char *file,uid_t owner,gid_t group,int flag)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  uint *puVar4;
  int iVar5;
  undefined4 *puVar6;
  int *piVar7;
  int iVar8;
  uint uVar9;
  int iVar10;
  undefined4 uVar11;
  code *pcVar12;
  saved_cwd saved_cwd;
  char proc_buf [4032];
  
  puVar1 = PTR___stack_chk_guard_000333c4;
  iVar8 = *(int *)PTR___stack_chk_guard_000333c4;
  if ((flag & 0xfffffeffU) == 0) {
    if ((fd == -100) || (*file == '/')) {
      pcVar12 = (code *)PTR_lchown_00033304;
      if (flag != 0x100) {
        pcVar12 = (code *)PTR_chown_00033340;
      }
      iVar3 = (*pcVar12)(file,owner,group);
    }
    else {
      pcVar2 = openat_proc_name(proc_buf,fd,file);
      if (pcVar2 == (char *)0x0) goto LAB_00017dac;
      pcVar12 = (code *)PTR_lchown_00033304;
      if (flag != 0x100) {
        pcVar12 = (code *)PTR_chown_00033340;
      }
      iVar3 = (*pcVar12)(pcVar2,owner,group);
      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();
      uVar9 = *puVar4;
      if (pcVar2 != proc_buf) {
        (*(code *)PTR_free_000333cc)(pcVar2);
      }
      if (iVar3 == -1) {
        if (uVar9 < 0x15) {
          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;
        }
        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {
LAB_00017f38:
          *puVar4 = uVar9;
          goto LAB_00017e38;
        }
LAB_00017dac:
        iVar3 = save_cwd(&saved_cwd);
        if (iVar3 != 0) {
          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();
                    /* WARNING: Subroutine does not return */
          openat_save_fail(*piVar7);
        }
        if ((fd < 0) || (saved_cwd.desc != fd)) {
          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);
          if (iVar3 == 0) {
            pcVar12 = (code *)PTR_lchown_00033304;
            if (flag != 0x100) {
              pcVar12 = (code *)PTR_chown_00033340;
            }
            iVar3 = (*pcVar12)(file,owner,group);
            if (iVar3 == -1) {
              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();
              iVar10 = *piVar7;
              iVar5 = restore_cwd(&saved_cwd);
              if (iVar5 != 0) goto LAB_00017f94;
              free_cwd(&saved_cwd);
              if (iVar10 != 0) {
                *piVar7 = iVar10;
              }
            }
            else {
              iVar5 = restore_cwd(&saved_cwd);
              if (iVar5 != 0) goto LAB_00017f94;
              free_cwd(&saved_cwd);
            }
          }
          else {
            iVar3 = -1;
            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
            uVar11 = *puVar6;
            free_cwd(&saved_cwd);
            *puVar6 = uVar11;
          }
        }
        else {
          iVar3 = -1;
          free_cwd(&saved_cwd);
          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
          *puVar6 = 9;
        }
      }
    }
  }
  else {
    iVar3 = -1;
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
    *puVar6 = 0x16;
  }
LAB_00017e38:
  if (iVar8 == *(int *)puVar1) {
    return iVar3;
  }
  (*(code *)PTR___stack_chk_fail_000333a8)();
LAB_00017f94:
  piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();
                    /* WARNING: Subroutine does not return */
  openat_restore_fail(*piVar7);
}



uint rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)

{
  undefined *puVar1;
  undefined1 *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  int iVar8;
  undefined4 uVar9;
  code *pcVar10;
  int *local_ff4 [2];
  undefined1 auStack_fec [4032];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_000333c4;
  local_2c = *(int *)PTR___stack_chk_guard_000333c4;
  if ((param_5 & 0xfffffeff) == 0) {
    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {
      pcVar10 = (code *)PTR_lchown_00033304;
      if (param_5 != 0x100) {
        pcVar10 = (code *)PTR_chown_00033340;
      }
      uVar3 = (*pcVar10)(param_2,param_3,param_4);
      piVar7 = param_3;
      goto LAB_00017e38;
    }
    piVar7 = param_1;
    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);
    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;
    pcVar10 = (code *)PTR_lchown_00033304;
    if (param_5 != 0x100) {
      pcVar10 = (code *)PTR_chown_00033340;
    }
    uVar3 = (*pcVar10)(puVar2,param_3,param_4);
    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
    piVar7 = (int *)*puVar4;
    if (puVar2 != auStack_fec) {
      (*(code *)PTR_free_000333cc)(puVar2);
    }
    if (uVar3 != 0xffffffff) goto LAB_00017e38;
    if (piVar7 < (int *)0x15) {
      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;
    }
    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {
LAB_00017f38:
      *puVar4 = piVar7;
      goto LAB_00017e38;
    }
LAB_00017dac:
    iVar5 = save_cwd(local_ff4);
    if (iVar5 != 0) goto LAB_00017fb0;
    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {
      uVar3 = 0xffffffff;
      free_cwd(local_ff4);
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
      *puVar4 = 9;
      goto LAB_00017e38;
    }
    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);
    if (iVar5 != 0) {
      uVar3 = 0xffffffff;
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
      uVar9 = *puVar4;
      free_cwd(local_ff4);
      *puVar4 = uVar9;
      goto LAB_00017e38;
    }
    pcVar10 = (code *)PTR_lchown_00033304;
    if (param_5 != 0x100) {
      pcVar10 = (code *)PTR_chown_00033340;
    }
    uVar3 = (*pcVar10)(param_2,param_3,param_4);
    if (uVar3 == 0xffffffff) {
      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();
      iVar8 = *piVar6;
      iVar5 = restore_cwd(local_ff4);
      if (iVar5 == 0) {
        free_cwd(local_ff4);
        piVar7 = param_3;
        if (iVar8 != 0) {
          *piVar6 = iVar8;
        }
        goto LAB_00017e38;
      }
    }
    else {
      iVar5 = restore_cwd(local_ff4);
      if (iVar5 == 0) {
        free_cwd(local_ff4);
        piVar7 = param_3;
        goto LAB_00017e38;
      }
    }
  }
  else {
    uVar3 = 0xffffffff;
    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
    *puVar4 = 0x16;
    piVar7 = param_2;
LAB_00017e38:
    if (local_2c == *(int *)puVar1) {
      return uVar3;
    }
    (*(code *)PTR___stack_chk_fail_000333a8)();
    param_3 = piVar7;
  }
  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
  openat_restore_fail(*puVar4);
  piVar7 = param_3;
LAB_00017fb0:
  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
  piVar6 = (int *)*puVar4;
  openat_save_fail();
  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {
    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,0x3450
addu gp,gp,t9
addiu sp,sp,-0x1018
li v0,-0x101
sw s2,0xff8(sp)
sw s1,0xff4(sp)
lw s2,-0x7d0c(gp)
lw s1,0x1028(sp)
sw gp,0x10(sp)
sw ra,0x1014(sp)
sw s8,0x1010(sp)
and v0,s1,v0
sw s7,0x100c(sp)
sw s6,0x1008(sp)
sw s5,0x1004(sp)
sw s4,0x1000(sp)
sw s3,0xffc(sp)
sw s0,0xff0(sp)
lw v1,0x0(s2)
sw v1,0xfec(sp)
bne v0,zero,0x00017f6c
_li v0,-0x64
or s0,a0,zero
or s3,a1,zero
or s5,a2,zero
beq a0,v0,0x00017e78
_or s6,a3,zero
lb v1,0x0(a1)
li v0,0x2f
beq v1,v0,0x00017e78
_lw t9,-0x7ee4(gp)
addiu s8,sp,0x2c
or a2,a1,zero
or a1,a0,zero
bal 0x0001c1b0
_or a0,s8,zero
lw gp,0x10(sp)
beq v0,zero,0x00017da8
_or s7,v0,zero
li v0,0x100
beq s1,v0,0x00017d30
_lw t9,-0x7dcc(gp)
lw t9,-0x7d90(gp)
or a1,s5,zero
or a2,s6,zero
jalr t9
_or a0,s7,zero
lw gp,0x10(sp)
lw t9,-0x7da0(gp)
jalr t9
_or s4,v0,zero
lw gp,0x10(sp)
beq s7,s8,0x00017d7c
_lw a1,0x0(v0)
lw t9,-0x7d04(gp)
or a0,s7,zero
sw a1,0x1c(sp)
jalr t9
_sw v0,0x18(sp)
lw gp,0x10(sp)
lw a1,0x1c(sp)
lw v0,0x18(sp)
li v1,-0x1
bne s4,v1,0x00017e38
_sltiu v1,a1,0x15
bne v1,zero,0x00017f24
_lui v1,0x10
li v1,0x59
beq a1,v1,0x00017dac
_lw t9,-0x7ee0(gp)
li v1,0x7a
bne a1,v1,0x00017f38
_nop
lw t9,-0x7ee0(gp)
addiu s7,sp,0x24
bal 0x0001e090
_or a0,s7,zero
bne v0,zero,0x00017fb0
_lw gp,0x10(sp)
bltz s0,0x00017dd0
_lw v0,0x24(sp)
beq v0,s0,0x00017f40
_lw t9,-0x7edc(gp)
lw t9,-0x7ddc(gp)
jalr t9
_or a0,s0,zero
bne v0,zero,0x00017ef4
_lw gp,0x10(sp)
li v0,0x100
beq s1,v0,0x00017df4
_lw t9,-0x7dcc(gp)
lw t9,-0x7d90(gp)
or a2,s6,zero
or a1,s5,zero
jalr t9
_or a0,s3,zero
or s4,v0,zero
li v0,-0x1
beq s4,v0,0x00017eac
_lw gp,0x10(sp)
lw t9,-0x7ed8(gp)
bal 0x0001e114
_or a0,s7,zero
bne v0,zero,0x00017f94
_lw gp,0x10(sp)
lw t9,-0x7edc(gp)
bal 0x0001e140
_or a0,s7,zero
lw gp,0x10(sp)
lw a0,0xfec(sp)
or v0,s4,zero
lw v1,0x0(s2)
bne a0,v1,0x00017f88
_lw ra,0x1014(sp)
lw s8,0x1010(sp)
lw s7,0x100c(sp)
lw s6,0x1008(sp)
lw s5,0x1004(sp)
lw s4,0x1000(sp)
lw s3,0xffc(sp)
lw s2,0xff8(sp)
lw s1,0xff4(sp)
lw s0,0xff0(sp)
jr ra
_addiu sp,sp,0x1018
li v0,0x100
beq s1,v0,0x00017e88
_lw t9,-0x7dcc(gp)
lw t9,-0x7d90(gp)
or a2,s6,zero
or a1,s5,zero
jalr t9
_or a0,s3,zero
lw gp,0x10(sp)
b 0x00017e38
_or s4,v0,zero
lw t9,-0x7da0(gp)
jalr t9
_nop
or a0,s7,zero
lw gp,0x10(sp)
or s0,v0,zero
lw t9,-0x7ed8(gp)
bal 0x0001e114
_lw s1,0x0(v0)
bne v0,zero,0x00017f94
_lw gp,0x10(sp)
lw t9,-0x7edc(gp)
bal 0x0001e140
_or a0,s7,zero
beq s1,zero,0x00017e38
_lw gp,0x10(sp)
b 0x00017e38
_sw s1,0x0(s0)
lw t9,-0x7da0(gp)
jalr t9
_li s4,-0x1
or a0,s7,zero
lw gp,0x10(sp)
or s0,v0,zero
lw t9,-0x7edc(gp)
bal 0x0001e140
_lw s1,0x0(v0)
lw gp,0x10(sp)
b 0x00017e38
_sw s1,0x0(s0)
addiu v1,v1,0x2006
srlv v1,v1,a1
ext v1,v1,0x0,0x1
bne v1,zero,0x00017dac
_lw t9,-0x7ee0(gp)
b 0x00017e38
_sw a1,0x0(v0)
or a0,s7,zero
bal 0x0001e140
_li s4,-0x1
lw gp,0x10(sp)
lw t9,-0x7da0(gp)
jalr t9
_nop
li v1,0x9
lw gp,0x10(sp)
b 0x00017e38
_sw v1,0x0(v0)
lw t9,-0x7da0(gp)
jalr t9
_li s4,-0x1
li v1,0x16
lw gp,0x10(sp)
b 0x00017e38
_sw v1,0x0(v0)
lw t9,-0x7d28(gp)
jalr t9
_nop
lw t9,-0x7da0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7ed4(gp)
bal 0x0001df90
_lw a0,0x0(v0)
lw t9,-0x7da0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7ed0(gp)
bal 0x0001df20
_lw a0,0x0(v0)
nop
lw v1,0x8(a0)
lw v0,0x8(a1)
beq v1,v0,0x00017fe8
_nop
jr ra
_or v0,zero,zero
lw v1,0xc(a0)
lw v0,0xc(a1)
bne v1,v0,0x00017fe0
_nop
lw v1,0x0(a0)
lw v0,0x0(a1)
lw a0,0x4(a0)
lw a1,0x4(a1)
xor v0,v1,v0
xor a0,a0,a1
or v0,v0,a0
jr ra
_sltiu v0,v0,0x1
(translation_unit "uint rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}\n\n" (function_definition "uint rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}" type_identifier (function_declarator "rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *local_ff4 [2];" primitive_type (pointer_declarator "*local_ff4 [2]" * (array_declarator "local_ff4 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 auStack_fec [4032];" type_identifier (array_declarator "auStack_fec [4032]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000333c4" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" if (parenthesized_expression "((param_5 & 0xfffffeff) == 0)" ( (binary_expression "(param_5 & 0xfffffeff) == 0" (parenthesized_expression "(param_5 & 0xfffffeff)" ( (binary_expression "param_5 & 0xfffffeff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }" { (if_statement "if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/'))" ( (binary_expression "(param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')" (parenthesized_expression "(param_1 == (int *)0xffffff9c)" ( (binary_expression "param_1 == (int *)0xffffff9c" identifier == (cast_expression "(int *)0xffffff9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*(char *)param_2 == '/')" ( (binary_expression "*(char *)param_2 == '/'" (pointer_expression "*(char *)param_2" * (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }" { (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }" if (parenthesized_expression "(param_5 != 0x100)" ( (binary_expression "param_5 != 0x100" identifier != number_literal) )) (compound_statement "{\n        pcVar10 = (code *)PTR_chown_00033340;\n      }" { (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "uVar3 = (*pcVar10)(param_2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(param_2,param_3,param_4)" identifier = (call_expression "(*pcVar10)(param_2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) (expression_statement "piVar7 = param_1;" (assignment_expression "piVar7 = param_1" identifier = identifier) ;) (expression_statement "puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);" (assignment_expression "puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2)" identifier = (cast_expression "(undefined1 *)openat_proc_name(auStack_fec,param_1,param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "openat_proc_name(auStack_fec,param_1,param_2)" identifier (argument_list "(auStack_fec,param_1,param_2)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017dac;" goto statement_identifier ;)) (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" if (parenthesized_expression "(param_5 != 0x100)" ( (binary_expression "param_5 != 0x100" identifier != number_literal) )) (compound_statement "{\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" { (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "uVar3 = (*pcVar10)(puVar2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(puVar2,param_3,param_4)" identifier = (call_expression "(*pcVar10)(puVar2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(puVar2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "piVar7 = (int *)*puVar4;" (assignment_expression "piVar7 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (if_statement "if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }" if (parenthesized_expression "(puVar2 != auStack_fec)" ( (binary_expression "puVar2 != auStack_fec" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }" { (expression_statement "(*(code *)PTR_free_000333cc)(puVar2);" (call_expression "(*(code *)PTR_free_000333cc)(puVar2)" (parenthesized_expression "(*(code *)PTR_free_000333cc)" ( (pointer_expression "*(code *)PTR_free_000333cc" * (cast_expression "(code *)PTR_free_000333cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) })) (if_statement "if (uVar3 != 0xffffffff) goto LAB_00017e38;" if (parenthesized_expression "(uVar3 != 0xffffffff)" ( (binary_expression "uVar3 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;)) (if_statement "if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "(piVar7 < (int *)0x15)" ( (binary_expression "piVar7 < (int *)0x15" identifier < (cast_expression "(int *)0x15" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }" { (if_statement "if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;" if (parenthesized_expression "(-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f))" ( (binary_expression "-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" number_literal < (cast_expression "(int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" ( (binary_expression "(0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f" (parenthesized_expression "(0x102006U >> ((uint)piVar7 & 0x1f))" ( (binary_expression "0x102006U >> ((uint)piVar7 & 0x1f)" number_literal >> (parenthesized_expression "((uint)piVar7 & 0x1f)" ( (binary_expression "(uint)piVar7 & 0x1f" (cast_expression "(uint)piVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) )) << number_literal) )))) )) (goto_statement "goto LAB_00017f38;" goto statement_identifier ;)) }) (else_clause "else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" else (if_statement "if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a))" ( (binary_expression "(piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)" (parenthesized_expression "(piVar7 != (int *)0x59)" ( (binary_expression "piVar7 != (int *)0x59" identifier != (cast_expression "(int *)0x59" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar7 != (int *)0x7a)" ( (binary_expression "piVar7 != (int *)0x7a" identifier != (cast_expression "(int *)0x7a" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" { (labeled_statement "LAB_00017f38:\n      *puVar4 = piVar7;" statement_identifier : (expression_statement "*puVar4 = piVar7;" (assignment_expression "*puVar4 = piVar7" (pointer_expression "*puVar4" * identifier) = identifier) ;)) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })))) (labeled_statement "LAB_00017dac:\n    iVar5 = save_cwd(local_ff4);" statement_identifier : (expression_statement "iVar5 = save_cwd(local_ff4);" (assignment_expression "iVar5 = save_cwd(local_ff4)" identifier = (call_expression "save_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier )))) ;)) (if_statement "if (iVar5 != 0) goto LAB_00017fb0;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017fb0;" goto statement_identifier ;)) (if_statement "if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "((-1 < (int)param_1) && (local_ff4[0] == param_1))" ( (binary_expression "(-1 < (int)param_1) && (local_ff4[0] == param_1)" (parenthesized_expression "(-1 < (int)param_1)" ( (binary_expression "-1 < (int)param_1" number_literal < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(local_ff4[0] == param_1)" ( (binary_expression "local_ff4[0] == param_1" (subscript_expression "local_ff4[0]" identifier [ number_literal ]) == identifier) ))) )) (compound_statement "{\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 9;" (assignment_expression "*puVar4 = 9" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) (expression_statement "iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(param_1)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = *puVar4;" (assignment_expression "uVar9 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "*puVar4 = uVar9;" (assignment_expression "*puVar4 = uVar9" (pointer_expression "*puVar4" * identifier) = identifier) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" if (parenthesized_expression "(param_5 != 0x100)" ( (binary_expression "param_5 != 0x100" identifier != number_literal) )) (compound_statement "{\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" { (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "uVar3 = (*pcVar10)(param_2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(param_2,param_3,param_4)" identifier = (call_expression "(*pcVar10)(param_2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }" { (expression_statement "piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "piVar6 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar8 = *piVar6;" (assignment_expression "iVar8 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "iVar5 = restore_cwd(local_ff4);" (assignment_expression "iVar5 = restore_cwd(local_ff4)" identifier = (call_expression "restore_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }" { (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (if_statement "if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n          *piVar6 = iVar8;\n        }" { (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) }) (else_clause "else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" else (compound_statement "{\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" { (expression_statement "iVar5 = restore_cwd(local_ff4);" (assignment_expression "iVar5 = restore_cwd(local_ff4)" identifier = (call_expression "restore_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }" { (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) }))) }) (else_clause "else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" else (compound_statement "{\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 0x16;" (assignment_expression "*puVar4 = 0x16" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "piVar7 = param_2;" (assignment_expression "piVar7 = param_2" identifier = identifier) ;) (labeled_statement "LAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n      return uVar3;\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      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "param_3 = piVar7;" (assignment_expression "param_3 = piVar7" identifier = identifier) ;) }))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "openat_restore_fail(*puVar4);" (call_expression "openat_restore_fail(*puVar4)" identifier (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) ))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (labeled_statement "LAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" statement_identifier : (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "piVar6 = (int *)*puVar4;" (assignment_expression "piVar6 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "openat_save_fail();" (call_expression "openat_save_fail()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }" if (parenthesized_expression "((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3]))" ( (binary_expression "(piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])" (parenthesized_expression "(piVar6[2] == piVar7[2])" ( (binary_expression "piVar6[2] == piVar7[2]" (subscript_expression "piVar6[2]" identifier [ number_literal ]) == (subscript_expression "piVar7[2]" identifier [ number_literal ])) )) && (parenthesized_expression "(piVar6[3] == piVar7[3])" ( (binary_expression "piVar6[3] == piVar7[3]" (subscript_expression "piVar6[3]" identifier [ number_literal ]) == (subscript_expression "piVar7[3]" identifier [ number_literal ])) ))) )) (compound_statement "{\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }" { (return_statement "return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);" return (call_expression "(uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar6 == *piVar7 && piVar6[1] == piVar7[1])" ( (binary_expression "*piVar6 == *piVar7 && piVar6[1] == piVar7[1]" (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" * identifier) == (pointer_expression "*piVar7" * identifier)) && (binary_expression "piVar6[1] == piVar7[1]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == (subscript_expression "piVar7[1]" identifier [ number_literal ]))) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int rpl_fchownat(int fd,char *file,uid_t owner,gid_t group,int flag)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  undefined4 uVar11;\n  code *pcVar12;\n  saved_cwd saved_cwd;\n  char proc_buf [4032];\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  iVar8 = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((flag & 0xfffffeffU) == 0) {\n    if ((fd == -100) || (*file == '/')) {\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }\n    else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }\n  }\n  else {\n    iVar3 = -1;\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar6 = 0x16;\n  }\nLAB_00017e38:\n  if (iVar8 == *(int *)puVar1) {\n    return iVar3;\n  }\n  (*(code *)PTR___stack_chk_fail_000333a8)();\nLAB_00017f94:\n  piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n  openat_restore_fail(*piVar7);\n}\n\n" (function_definition "int rpl_fchownat(int fd,char *file,uid_t owner,gid_t group,int flag)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  undefined4 uVar11;\n  code *pcVar12;\n  saved_cwd saved_cwd;\n  char proc_buf [4032];\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  iVar8 = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((flag & 0xfffffeffU) == 0) {\n    if ((fd == -100) || (*file == '/')) {\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }\n    else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }\n  }\n  else {\n    iVar3 = -1;\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar6 = 0x16;\n  }\nLAB_00017e38:\n  if (iVar8 == *(int *)puVar1) {\n    return iVar3;\n  }\n  (*(code *)PTR___stack_chk_fail_000333a8)();\nLAB_00017f94:\n  piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n  openat_restore_fail(*piVar7);\n}" primitive_type (function_declarator "rpl_fchownat(int fd,char *file,uid_t owner,gid_t group,int flag)" identifier (parameter_list "(int fd,char *file,uid_t owner,gid_t group,int flag)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "uid_t owner" type_identifier identifier) , (parameter_declaration "gid_t group" type_identifier identifier) , (parameter_declaration "int flag" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  undefined4 uVar11;\n  code *pcVar12;\n  saved_cwd saved_cwd;\n  char proc_buf [4032];\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  iVar8 = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((flag & 0xfffffeffU) == 0) {\n    if ((fd == -100) || (*file == '/')) {\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }\n    else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }\n  }\n  else {\n    iVar3 = -1;\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar6 = 0x16;\n  }\nLAB_00017e38:\n  if (iVar8 == *(int *)puVar1) {\n    return iVar3;\n  }\n  (*(code *)PTR___stack_chk_fail_000333a8)();\nLAB_00017f94:\n  piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n  openat_restore_fail(*piVar7);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "saved_cwd saved_cwd;" type_identifier identifier ;) (declaration "char proc_buf [4032];" primitive_type (array_declarator "proc_buf [4032]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000333c4" identifier = identifier) ;) (expression_statement "iVar8 = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "iVar8 = *(int *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((flag & 0xfffffeffU) == 0) {\n    if ((fd == -100) || (*file == '/')) {\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }\n    else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }\n  }\n  else {\n    iVar3 = -1;\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar6 = 0x16;\n  }" if (parenthesized_expression "((flag & 0xfffffeffU) == 0)" ( (binary_expression "(flag & 0xfffffeffU) == 0" (parenthesized_expression "(flag & 0xfffffeffU)" ( (binary_expression "flag & 0xfffffeffU" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((fd == -100) || (*file == '/')) {\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }\n    else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }\n  }" { (if_statement "if ((fd == -100) || (*file == '/')) {\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }\n    else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }" if (parenthesized_expression "((fd == -100) || (*file == '/'))" ( (binary_expression "(fd == -100) || (*file == '/')" (parenthesized_expression "(fd == -100)" ( (binary_expression "fd == -100" identifier == number_literal) )) || (parenthesized_expression "(*file == '/')" ( (binary_expression "*file == '/'" (pointer_expression "*file" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(file,owner,group);\n    }" { (expression_statement "pcVar12 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar12 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }" if (parenthesized_expression "(flag != 0x100)" ( (binary_expression "flag != 0x100" identifier != number_literal) )) (compound_statement "{\n        pcVar12 = (code *)PTR_chown_00033340;\n      }" { (expression_statement "pcVar12 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar12 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "iVar3 = (*pcVar12)(file,owner,group);" (assignment_expression "iVar3 = (*pcVar12)(file,owner,group)" identifier = (call_expression "(*pcVar12)(file,owner,group)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(file,owner,group)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }" else (compound_statement "{\n      pcVar2 = openat_proc_name(proc_buf,fd,file);\n      if (pcVar2 == (char *)0x0) goto LAB_00017dac;\n      pcVar12 = (code *)PTR_lchown_00033304;\n      if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }\n      iVar3 = (*pcVar12)(pcVar2,owner,group);\n      puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }\n      if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }\n    }" { (expression_statement "pcVar2 = openat_proc_name(proc_buf,fd,file);" (assignment_expression "pcVar2 = openat_proc_name(proc_buf,fd,file)" identifier = (call_expression "openat_proc_name(proc_buf,fd,file)" identifier (argument_list "(proc_buf,fd,file)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pcVar2 == (char *)0x0) goto LAB_00017dac;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017dac;" goto statement_identifier ;)) (expression_statement "pcVar12 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar12 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (flag != 0x100) {\n        pcVar12 = (code *)PTR_chown_00033340;\n      }" if (parenthesized_expression "(flag != 0x100)" ( (binary_expression "flag != 0x100" identifier != number_literal) )) (compound_statement "{\n        pcVar12 = (code *)PTR_chown_00033340;\n      }" { (expression_statement "pcVar12 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar12 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "iVar3 = (*pcVar12)(pcVar2,owner,group);" (assignment_expression "iVar3 = (*pcVar12)(pcVar2,owner,group)" identifier = (call_expression "(*pcVar12)(pcVar2,owner,group)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(pcVar2,owner,group)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (uint *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(uint *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = *puVar4;" (assignment_expression "uVar9 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (if_statement "if (pcVar2 != proc_buf) {\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }" if (parenthesized_expression "(pcVar2 != proc_buf)" ( (binary_expression "pcVar2 != proc_buf" identifier != identifier) )) (compound_statement "{\n        (*(code *)PTR_free_000333cc)(pcVar2);\n      }" { (expression_statement "(*(code *)PTR_free_000333cc)(pcVar2);" (call_expression "(*(code *)PTR_free_000333cc)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_000333cc)" ( (pointer_expression "*(code *)PTR_free_000333cc" * (cast_expression "(code *)PTR_free_000333cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) })) (if_statement "if (iVar3 == -1) {\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }\nLAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);\n        if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }\n        if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }\n      }" { (if_statement "if (uVar9 < 0x15) {\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }\n        else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }" if (parenthesized_expression "(uVar9 < 0x15)" ( (binary_expression "uVar9 < 0x15" identifier < number_literal) )) (compound_statement "{\n          if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n        }" { (if_statement "if (-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)) goto LAB_00017f38;" if (parenthesized_expression "(-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f))" ( (binary_expression "-1 < (int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)" number_literal < (cast_expression "(int)((0x102006U >> (uVar9 & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x102006U >> (uVar9 & 0x1f)) << 0x1f)" ( (binary_expression "(0x102006U >> (uVar9 & 0x1f)) << 0x1f" (parenthesized_expression "(0x102006U >> (uVar9 & 0x1f))" ( (binary_expression "0x102006U >> (uVar9 & 0x1f)" number_literal >> (parenthesized_expression "(uVar9 & 0x1f)" ( (binary_expression "uVar9 & 0x1f" identifier & number_literal) ))) )) << number_literal) )))) )) (goto_statement "goto LAB_00017f38;" goto statement_identifier ;)) }) (else_clause "else if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }" else (if_statement "if ((uVar9 != 0x59) && (uVar9 != 0x7a)) {\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }" if (parenthesized_expression "((uVar9 != 0x59) && (uVar9 != 0x7a))" ( (binary_expression "(uVar9 != 0x59) && (uVar9 != 0x7a)" (parenthesized_expression "(uVar9 != 0x59)" ( (binary_expression "uVar9 != 0x59" identifier != number_literal) )) && (parenthesized_expression "(uVar9 != 0x7a)" ( (binary_expression "uVar9 != 0x7a" identifier != number_literal) ))) )) (compound_statement "{\nLAB_00017f38:\n          *puVar4 = uVar9;\n          goto LAB_00017e38;\n        }" { (labeled_statement "LAB_00017f38:\n          *puVar4 = uVar9;" statement_identifier : (expression_statement "*puVar4 = uVar9;" (assignment_expression "*puVar4 = uVar9" (pointer_expression "*puVar4" * identifier) = identifier) ;)) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })))) (labeled_statement "LAB_00017dac:\n        iVar3 = save_cwd(&saved_cwd);" statement_identifier : (expression_statement "iVar3 = save_cwd(&saved_cwd);" (assignment_expression "iVar3 = save_cwd(&saved_cwd)" identifier = (call_expression "save_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) )))) ;)) (if_statement "if (iVar3 != 0) {\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n                    /* WARNING: Subroutine does not return */\n          openat_save_fail(*piVar7);\n        }" { (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) comment (expression_statement "openat_save_fail(*piVar7);" (call_expression "openat_save_fail(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) ))) ;) })) (if_statement "if ((fd < 0) || (saved_cwd.desc != fd)) {\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }\n        else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }" if (parenthesized_expression "((fd < 0) || (saved_cwd.desc != fd))" ( (binary_expression "(fd < 0) || (saved_cwd.desc != fd)" (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) || (parenthesized_expression "(saved_cwd.desc != fd)" ( (binary_expression "saved_cwd.desc != fd" (field_expression "saved_cwd.desc" identifier . field_identifier) != identifier) ))) )) (compound_statement "{\n          iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);\n          if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }\n        }" { (expression_statement "iVar3 = (*(code *)PTR_fchdir_000332f4)(fd);" (assignment_expression "iVar3 = (*(code *)PTR_fchdir_000332f4)(fd)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(fd)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }\n          else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            pcVar12 = (code *)PTR_lchown_00033304;\n            if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }\n            iVar3 = (*pcVar12)(file,owner,group);\n            if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }\n          }" { (expression_statement "pcVar12 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar12 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (flag != 0x100) {\n              pcVar12 = (code *)PTR_chown_00033340;\n            }" if (parenthesized_expression "(flag != 0x100)" ( (binary_expression "flag != 0x100" identifier != number_literal) )) (compound_statement "{\n              pcVar12 = (code *)PTR_chown_00033340;\n            }" { (expression_statement "pcVar12 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar12 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "iVar3 = (*pcVar12)(file,owner,group);" (assignment_expression "iVar3 = (*pcVar12)(file,owner,group)" identifier = (call_expression "(*pcVar12)(file,owner,group)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(file,owner,group)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == -1) {\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }\n            else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n              piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();\n              iVar10 = *piVar7;\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n              if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }\n            }" { (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar10 = *piVar7;" (assignment_expression "iVar10 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "iVar5 = restore_cwd(&saved_cwd);" (assignment_expression "iVar5 = restore_cwd(&saved_cwd)" identifier = (call_expression "restore_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) )))) ;) (if_statement "if (iVar5 != 0) goto LAB_00017f94;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017f94;" goto statement_identifier ;)) (expression_statement "free_cwd(&saved_cwd);" (call_expression "free_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) ))) ;) (if_statement "if (iVar10 != 0) {\n                *piVar7 = iVar10;\n              }" if (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) (compound_statement "{\n                *piVar7 = iVar10;\n              }" { (expression_statement "*piVar7 = iVar10;" (assignment_expression "*piVar7 = iVar10" (pointer_expression "*piVar7" * identifier) = identifier) ;) })) }) (else_clause "else {\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }" else (compound_statement "{\n              iVar5 = restore_cwd(&saved_cwd);\n              if (iVar5 != 0) goto LAB_00017f94;\n              free_cwd(&saved_cwd);\n            }" { (expression_statement "iVar5 = restore_cwd(&saved_cwd);" (assignment_expression "iVar5 = restore_cwd(&saved_cwd)" identifier = (call_expression "restore_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) )))) ;) (if_statement "if (iVar5 != 0) goto LAB_00017f94;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017f94;" goto statement_identifier ;)) (expression_statement "free_cwd(&saved_cwd);" (call_expression "free_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) ))) ;) }))) }) (else_clause "else {\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }" else (compound_statement "{\n            iVar3 = -1;\n            puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n            uVar11 = *puVar6;\n            free_cwd(&saved_cwd);\n            *puVar6 = uVar11;\n          }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "free_cwd(&saved_cwd);" (call_expression "free_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) ))) ;) (expression_statement "*puVar6 = uVar11;" (assignment_expression "*puVar6 = uVar11" (pointer_expression "*puVar6" * identifier) = identifier) ;) }))) }) (else_clause "else {\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }" else (compound_statement "{\n          iVar3 = -1;\n          free_cwd(&saved_cwd);\n          puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n          *puVar6 = 9;\n        }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "free_cwd(&saved_cwd);" (call_expression "free_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) ))) ;) (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar6 = 9;" (assignment_expression "*puVar6 = 9" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }))) })) }))) }) (else_clause "else {\n    iVar3 = -1;\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar6 = 0x16;\n  }" else (compound_statement "{\n    iVar3 = -1;\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar6 = 0x16;\n  }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar6 = 0x16;" (assignment_expression "*puVar6 = 0x16" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }))) (labeled_statement "LAB_00017e38:\n  if (iVar8 == *(int *)puVar1) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (iVar8 == *(int *)puVar1) {\n    return iVar3;\n  }" if (parenthesized_expression "(iVar8 == *(int *)puVar1)" ( (binary_expression "iVar8 == *(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_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00017f94:\n  piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();" statement_identifier : (expression_statement "piVar7 = (int *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "piVar7 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) comment (expression_statement "openat_restore_fail(*piVar7);" (call_expression "openat_restore_fail(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) ))) ;) })))
(translation_unit "uint rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}\n\n" (function_definition "uint rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}" type_identifier (function_declarator "rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *local_ff4 [2];" primitive_type (pointer_declarator "*local_ff4 [2]" * (array_declarator "local_ff4 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 auStack_fec [4032];" type_identifier (array_declarator "auStack_fec [4032]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000333c4" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" if (parenthesized_expression "((param_5 & 0xfffffeff) == 0)" ( (binary_expression "(param_5 & 0xfffffeff) == 0" (parenthesized_expression "(param_5 & 0xfffffeff)" ( (binary_expression "param_5 & 0xfffffeff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }" { (if_statement "if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/'))" ( (binary_expression "(param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')" (parenthesized_expression "(param_1 == (int *)0xffffff9c)" ( (binary_expression "param_1 == (int *)0xffffff9c" identifier == (cast_expression "(int *)0xffffff9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*(char *)param_2 == '/')" ( (binary_expression "*(char *)param_2 == '/'" (pointer_expression "*(char *)param_2" * (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }" { (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }" if (parenthesized_expression "(param_5 != 0x100)" ( (binary_expression "param_5 != 0x100" identifier != number_literal) )) (compound_statement "{\n        pcVar10 = (code *)PTR_chown_00033340;\n      }" { (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "uVar3 = (*pcVar10)(param_2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(param_2,param_3,param_4)" identifier = (call_expression "(*pcVar10)(param_2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) (expression_statement "piVar7 = param_1;" (assignment_expression "piVar7 = param_1" identifier = identifier) ;) (expression_statement "puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);" (assignment_expression "puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2)" identifier = (cast_expression "(undefined1 *)openat_proc_name(auStack_fec,param_1,param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "openat_proc_name(auStack_fec,param_1,param_2)" identifier (argument_list "(auStack_fec,param_1,param_2)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017dac;" goto statement_identifier ;)) (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" if (parenthesized_expression "(param_5 != 0x100)" ( (binary_expression "param_5 != 0x100" identifier != number_literal) )) (compound_statement "{\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" { (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "uVar3 = (*pcVar10)(puVar2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(puVar2,param_3,param_4)" identifier = (call_expression "(*pcVar10)(puVar2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(puVar2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "piVar7 = (int *)*puVar4;" (assignment_expression "piVar7 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (if_statement "if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }" if (parenthesized_expression "(puVar2 != auStack_fec)" ( (binary_expression "puVar2 != auStack_fec" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }" { (expression_statement "(*(code *)PTR_free_000333cc)(puVar2);" (call_expression "(*(code *)PTR_free_000333cc)(puVar2)" (parenthesized_expression "(*(code *)PTR_free_000333cc)" ( (pointer_expression "*(code *)PTR_free_000333cc" * (cast_expression "(code *)PTR_free_000333cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) })) (if_statement "if (uVar3 != 0xffffffff) goto LAB_00017e38;" if (parenthesized_expression "(uVar3 != 0xffffffff)" ( (binary_expression "uVar3 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;)) (if_statement "if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "(piVar7 < (int *)0x15)" ( (binary_expression "piVar7 < (int *)0x15" identifier < (cast_expression "(int *)0x15" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }" { (if_statement "if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;" if (parenthesized_expression "(-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f))" ( (binary_expression "-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" number_literal < (cast_expression "(int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" ( (binary_expression "(0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f" (parenthesized_expression "(0x102006U >> ((uint)piVar7 & 0x1f))" ( (binary_expression "0x102006U >> ((uint)piVar7 & 0x1f)" number_literal >> (parenthesized_expression "((uint)piVar7 & 0x1f)" ( (binary_expression "(uint)piVar7 & 0x1f" (cast_expression "(uint)piVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) )) << number_literal) )))) )) (goto_statement "goto LAB_00017f38;" goto statement_identifier ;)) }) (else_clause "else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" else (if_statement "if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a))" ( (binary_expression "(piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)" (parenthesized_expression "(piVar7 != (int *)0x59)" ( (binary_expression "piVar7 != (int *)0x59" identifier != (cast_expression "(int *)0x59" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar7 != (int *)0x7a)" ( (binary_expression "piVar7 != (int *)0x7a" identifier != (cast_expression "(int *)0x7a" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" { (labeled_statement "LAB_00017f38:\n      *puVar4 = piVar7;" statement_identifier : (expression_statement "*puVar4 = piVar7;" (assignment_expression "*puVar4 = piVar7" (pointer_expression "*puVar4" * identifier) = identifier) ;)) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })))) (labeled_statement "LAB_00017dac:\n    iVar5 = save_cwd(local_ff4);" statement_identifier : (expression_statement "iVar5 = save_cwd(local_ff4);" (assignment_expression "iVar5 = save_cwd(local_ff4)" identifier = (call_expression "save_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier )))) ;)) (if_statement "if (iVar5 != 0) goto LAB_00017fb0;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017fb0;" goto statement_identifier ;)) (if_statement "if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "((-1 < (int)param_1) && (local_ff4[0] == param_1))" ( (binary_expression "(-1 < (int)param_1) && (local_ff4[0] == param_1)" (parenthesized_expression "(-1 < (int)param_1)" ( (binary_expression "-1 < (int)param_1" number_literal < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(local_ff4[0] == param_1)" ( (binary_expression "local_ff4[0] == param_1" (subscript_expression "local_ff4[0]" identifier [ number_literal ]) == identifier) ))) )) (compound_statement "{\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 9;" (assignment_expression "*puVar4 = 9" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) (expression_statement "iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(param_1)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar9 = *puVar4;" (assignment_expression "uVar9 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "*puVar4 = uVar9;" (assignment_expression "*puVar4 = uVar9" (pointer_expression "*puVar4" * identifier) = identifier) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" identifier = (cast_expression "(code *)PTR_lchown_00033304" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" if (parenthesized_expression "(param_5 != 0x100)" ( (binary_expression "param_5 != 0x100" identifier != number_literal) )) (compound_statement "{\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" { (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" identifier = (cast_expression "(code *)PTR_chown_00033340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "uVar3 = (*pcVar10)(param_2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(param_2,param_3,param_4)" identifier = (call_expression "(*pcVar10)(param_2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }" { (expression_statement "piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "piVar6 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar8 = *piVar6;" (assignment_expression "iVar8 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "iVar5 = restore_cwd(local_ff4);" (assignment_expression "iVar5 = restore_cwd(local_ff4)" identifier = (call_expression "restore_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }" { (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (if_statement "if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n          *piVar6 = iVar8;\n        }" { (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) }) (else_clause "else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" else (compound_statement "{\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" { (expression_statement "iVar5 = restore_cwd(local_ff4);" (assignment_expression "iVar5 = restore_cwd(local_ff4)" identifier = (call_expression "restore_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }" { (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" identifier (argument_list "(local_ff4)" ( identifier ))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_00017e38;" goto statement_identifier ;) })) }))) }) (else_clause "else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" else (compound_statement "{\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 0x16;" (assignment_expression "*puVar4 = 0x16" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "piVar7 = param_2;" (assignment_expression "piVar7 = param_2" identifier = identifier) ;) (labeled_statement "LAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n      return uVar3;\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      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "param_3 = piVar7;" (assignment_expression "param_3 = piVar7" identifier = identifier) ;) }))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "openat_restore_fail(*puVar4);" (call_expression "openat_restore_fail(*puVar4)" identifier (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) ))) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (labeled_statement "LAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" statement_identifier : (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "piVar6 = (int *)*puVar4;" (assignment_expression "piVar6 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "openat_save_fail();" (call_expression "openat_save_fail()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }" if (parenthesized_expression "((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3]))" ( (binary_expression "(piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])" (parenthesized_expression "(piVar6[2] == piVar7[2])" ( (binary_expression "piVar6[2] == piVar7[2]" (subscript_expression "piVar6[2]" identifier [ number_literal ]) == (subscript_expression "piVar7[2]" identifier [ number_literal ])) )) && (parenthesized_expression "(piVar6[3] == piVar7[3])" ( (binary_expression "piVar6[3] == piVar7[3]" (subscript_expression "piVar6[3]" identifier [ number_literal ]) == (subscript_expression "piVar7[3]" identifier [ number_literal ])) ))) )) (compound_statement "{\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }" { (return_statement "return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);" return (call_expression "(uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar6 == *piVar7 && piVar6[1] == piVar7[1])" ( (binary_expression "*piVar6 == *piVar7 && piVar6[1] == piVar7[1]" (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" * identifier) == (pointer_expression "*piVar7" * identifier)) && (binary_expression "piVar6[1] == piVar7[1]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == (subscript_expression "piVar7[1]" identifier [ number_literal ]))) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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))) ;) (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT >> (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) )) << LIT) )))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (goto_statement goto statement_identifier ;) })))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) && (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ]))) ))) ;) })) (return_statement return LIT ;) })))
(function_definition "uint rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "rpl_fchownat(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)" (identifier "rpl_fchownat") (parameter_list "(int *param_1,int *param_2,int *param_3,undefined4 param_4,uint param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  undefined4 uVar9;\n  code *pcVar10;\n  int *local_ff4 [2];\n  undefined1 auStack_fec [4032];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000333c4;\n  local_2c = *(int *)PTR___stack_chk_guard_000333c4;\n  if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  openat_restore_fail(*puVar4);\n  piVar7 = param_3;\nLAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n  piVar6 = (int *)*puVar4;\n  openat_save_fail();\n  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int *local_ff4 [2];" (primitive_type "int") (pointer_declarator "*local_ff4 [2]" (* "*") (array_declarator "local_ff4 [2]" (identifier "local_ff4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "undefined1 auStack_fec [4032];" (type_identifier "undefined1") (array_declarator "auStack_fec [4032]" (identifier "auStack_fec") ([ "[") (number_literal "4032") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000333c4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000333c4" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000333c4")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000333c4" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000333c4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000333c4")))) (; ";")) (if_statement "if ((param_5 & 0xfffffeff) == 0) {\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }\n  else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" (if "if") (parenthesized_expression "((param_5 & 0xfffffeff) == 0)" (( "(") (binary_expression "(param_5 & 0xfffffeff) == 0" (parenthesized_expression "(param_5 & 0xfffffeff)" (( "(") (binary_expression "param_5 & 0xfffffeff" (identifier "param_5") (& "&") (number_literal "0xfffffeff")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }\n    piVar7 = param_1;\n    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);\n    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(puVar2,param_3,param_4);\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    piVar7 = (int *)*puVar4;\n    if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }\n    if (uVar3 != 0xffffffff) goto LAB_00017e38;\n    if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }\nLAB_00017dac:\n    iVar5 = save_cwd(local_ff4);\n    if (iVar5 != 0) goto LAB_00017fb0;\n    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }\n    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);\n    if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }\n    pcVar10 = (code *)PTR_lchown_00033304;\n    if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }\n    uVar3 = (*pcVar10)(param_2,param_3,param_4);\n    if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }\n  }" ({ "{") (if_statement "if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }" (if "if") (parenthesized_expression "((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/'))" (( "(") (binary_expression "(param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')" (parenthesized_expression "(param_1 == (int *)0xffffff9c)" (( "(") (binary_expression "param_1 == (int *)0xffffff9c" (identifier "param_1") (== "==") (cast_expression "(int *)0xffffff9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffff9c"))) () ")")) (|| "||") (parenthesized_expression "(*(char *)param_2 == '/')" (( "(") (binary_expression "*(char *)param_2 == '/'" (pointer_expression "*(char *)param_2" (* "*") (cast_expression "(char *)param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pcVar10 = (code *)PTR_lchown_00033304;\n      if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }\n      uVar3 = (*pcVar10)(param_2,param_3,param_4);\n      piVar7 = param_3;\n      goto LAB_00017e38;\n    }" ({ "{") (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" (identifier "pcVar10") (= "=") (cast_expression "(code *)PTR_lchown_00033304" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lchown_00033304"))) (; ";")) (if_statement "if (param_5 != 0x100) {\n        pcVar10 = (code *)PTR_chown_00033340;\n      }" (if "if") (parenthesized_expression "(param_5 != 0x100)" (( "(") (binary_expression "param_5 != 0x100" (identifier "param_5") (!= "!=") (number_literal "0x100")) () ")")) (compound_statement "{\n        pcVar10 = (code *)PTR_chown_00033340;\n      }" ({ "{") (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" (identifier "pcVar10") (= "=") (cast_expression "(code *)PTR_chown_00033340" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chown_00033340"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (*pcVar10)(param_2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(param_2,param_3,param_4)" (identifier "uVar3") (= "=") (call_expression "(*pcVar10)(param_2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" (identifier "piVar7") (= "=") (identifier "param_3")) (; ";")) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";")) (} "}"))) (expression_statement "piVar7 = param_1;" (assignment_expression "piVar7 = param_1" (identifier "piVar7") (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);" (assignment_expression "puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)openat_proc_name(auStack_fec,param_1,param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "openat_proc_name(auStack_fec,param_1,param_2)" (identifier "openat_proc_name") (argument_list "(auStack_fec,param_1,param_2)" (( "(") (identifier "auStack_fec") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00017dac;" (goto "goto") (statement_identifier "LAB_00017dac") (; ";"))) (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" (identifier "pcVar10") (= "=") (cast_expression "(code *)PTR_lchown_00033304" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lchown_00033304"))) (; ";")) (if_statement "if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" (if "if") (parenthesized_expression "(param_5 != 0x100)" (( "(") (binary_expression "param_5 != 0x100" (identifier "param_5") (!= "!=") (number_literal "0x100")) () ")")) (compound_statement "{\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" ({ "{") (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" (identifier "pcVar10") (= "=") (cast_expression "(code *)PTR_chown_00033340" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chown_00033340"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (*pcVar10)(puVar2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(puVar2,param_3,param_4)" (identifier "uVar3") (= "=") (call_expression "(*pcVar10)(puVar2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(puVar2,param_3,param_4)" (( "(") (identifier "puVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "piVar7 = (int *)*puVar4;" (assignment_expression "piVar7 = (int *)*puVar4" (identifier "piVar7") (= "=") (cast_expression "(int *)*puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (if_statement "if (puVar2 != auStack_fec) {\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }" (if "if") (parenthesized_expression "(puVar2 != auStack_fec)" (( "(") (binary_expression "puVar2 != auStack_fec" (identifier "puVar2") (!= "!=") (identifier "auStack_fec")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_000333cc)(puVar2);\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_000333cc)(puVar2);" (call_expression "(*(code *)PTR_free_000333cc)(puVar2)" (parenthesized_expression "(*(code *)PTR_free_000333cc)" (( "(") (pointer_expression "*(code *)PTR_free_000333cc" (* "*") (cast_expression "(code *)PTR_free_000333cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000333cc"))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if (uVar3 != 0xffffffff) goto LAB_00017e38;" (if "if") (parenthesized_expression "(uVar3 != 0xffffffff)" (( "(") (binary_expression "uVar3 != 0xffffffff" (identifier "uVar3") (!= "!=") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";"))) (if_statement "if (piVar7 < (int *)0x15) {\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }\n    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" (if "if") (parenthesized_expression "(piVar7 < (int *)0x15)" (( "(") (binary_expression "piVar7 < (int *)0x15" (identifier "piVar7") (< "<") (cast_expression "(int *)0x15" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x15"))) () ")")) (compound_statement "{\n      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;\n    }" ({ "{") (if_statement "if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;" (if "if") (parenthesized_expression "(-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f))" (( "(") (binary_expression "-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" (number_literal "-1") (< "<") (cast_expression "(int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)" (( "(") (binary_expression "(0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f" (parenthesized_expression "(0x102006U >> ((uint)piVar7 & 0x1f))" (( "(") (binary_expression "0x102006U >> ((uint)piVar7 & 0x1f)" (number_literal "0x102006U") (>> ">>") (parenthesized_expression "((uint)piVar7 & 0x1f)" (( "(") (binary_expression "(uint)piVar7 & 0x1f" (cast_expression "(uint)piVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar7")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (<< "<<") (number_literal "0x1f")) () ")")))) () ")")) (goto_statement "goto LAB_00017f38;" (goto "goto") (statement_identifier "LAB_00017f38") (; ";"))) (} "}")) (else_clause "else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" (else "else") (if_statement "if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" (if "if") (parenthesized_expression "((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a))" (( "(") (binary_expression "(piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)" (parenthesized_expression "(piVar7 != (int *)0x59)" (( "(") (binary_expression "piVar7 != (int *)0x59" (identifier "piVar7") (!= "!=") (cast_expression "(int *)0x59" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x59"))) () ")")) (&& "&&") (parenthesized_expression "(piVar7 != (int *)0x7a)" (( "(") (binary_expression "piVar7 != (int *)0x7a" (identifier "piVar7") (!= "!=") (cast_expression "(int *)0x7a" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x7a"))) () ")"))) () ")")) (compound_statement "{\nLAB_00017f38:\n      *puVar4 = piVar7;\n      goto LAB_00017e38;\n    }" ({ "{") (labeled_statement "LAB_00017f38:\n      *puVar4 = piVar7;" (statement_identifier "LAB_00017f38") (: ":") (expression_statement "*puVar4 = piVar7;" (assignment_expression "*puVar4 = piVar7" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "piVar7")) (; ";"))) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";")) (} "}"))))) (labeled_statement "LAB_00017dac:\n    iVar5 = save_cwd(local_ff4);" (statement_identifier "LAB_00017dac") (: ":") (expression_statement "iVar5 = save_cwd(local_ff4);" (assignment_expression "iVar5 = save_cwd(local_ff4)" (identifier "iVar5") (= "=") (call_expression "save_cwd(local_ff4)" (identifier "save_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")")))) (; ";"))) (if_statement "if (iVar5 != 0) goto LAB_00017fb0;" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017fb0;" (goto "goto") (statement_identifier "LAB_00017fb0") (; ";"))) (if_statement "if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }" (if "if") (parenthesized_expression "((-1 < (int)param_1) && (local_ff4[0] == param_1))" (( "(") (binary_expression "(-1 < (int)param_1) && (local_ff4[0] == param_1)" (parenthesized_expression "(-1 < (int)param_1)" (( "(") (binary_expression "-1 < (int)param_1" (number_literal "-1") (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (&& "&&") (parenthesized_expression "(local_ff4[0] == param_1)" (( "(") (binary_expression "local_ff4[0] == param_1" (subscript_expression "local_ff4[0]" (identifier "local_ff4") ([ "[") (number_literal "0") (] "]")) (== "==") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n      uVar3 = 0xffffffff;\n      free_cwd(local_ff4);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      *puVar4 = 9;\n      goto LAB_00017e38;\n    }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" (identifier "free_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar4 = 9;" (assignment_expression "*puVar4 = 9" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "9")) (; ";")) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";")) (} "}"))) (expression_statement "iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_fchdir_000332f4)(param_1)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" (( "(") (pointer_expression "*(code *)PTR_fchdir_000332f4" (* "*") (cast_expression "(code *)PTR_fchdir_000332f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchdir_000332f4"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0xffffffff;\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n      uVar9 = *puVar4;\n      free_cwd(local_ff4);\n      *puVar4 = uVar9;\n      goto LAB_00017e38;\n    }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar9 = *puVar4;" (assignment_expression "uVar9 = *puVar4" (identifier "uVar9") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" (identifier "free_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")"))) (; ";")) (expression_statement "*puVar4 = uVar9;" (assignment_expression "*puVar4 = uVar9" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar9")) (; ";")) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";")) (} "}"))) (expression_statement "pcVar10 = (code *)PTR_lchown_00033304;" (assignment_expression "pcVar10 = (code *)PTR_lchown_00033304" (identifier "pcVar10") (= "=") (cast_expression "(code *)PTR_lchown_00033304" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lchown_00033304"))) (; ";")) (if_statement "if (param_5 != 0x100) {\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" (if "if") (parenthesized_expression "(param_5 != 0x100)" (( "(") (binary_expression "param_5 != 0x100" (identifier "param_5") (!= "!=") (number_literal "0x100")) () ")")) (compound_statement "{\n      pcVar10 = (code *)PTR_chown_00033340;\n    }" ({ "{") (expression_statement "pcVar10 = (code *)PTR_chown_00033340;" (assignment_expression "pcVar10 = (code *)PTR_chown_00033340" (identifier "pcVar10") (= "=") (cast_expression "(code *)PTR_chown_00033340" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chown_00033340"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (*pcVar10)(param_2,param_3,param_4);" (assignment_expression "uVar3 = (*pcVar10)(param_2,param_3,param_4)" (identifier "uVar3") (= "=") (call_expression "(*pcVar10)(param_2,param_3,param_4)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (uVar3 == 0xffffffff) {\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }\n    else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" (if "if") (parenthesized_expression "(uVar3 == 0xffffffff)" (( "(") (binary_expression "uVar3 == 0xffffffff" (identifier "uVar3") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();\n      iVar8 = *piVar6;\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }\n    }" ({ "{") (expression_statement "piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "piVar6 = (int *)(*(code *)PTR___errno_location_00033330)()" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar8 = *piVar6;" (assignment_expression "iVar8 = *piVar6" (identifier "iVar8") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "iVar5 = restore_cwd(local_ff4);" (assignment_expression "iVar5 = restore_cwd(local_ff4)" (identifier "iVar5") (= "=") (call_expression "restore_cwd(local_ff4)" (identifier "restore_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }\n        goto LAB_00017e38;\n      }" ({ "{") (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" (identifier "free_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")"))) (; ";")) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" (identifier "piVar7") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (iVar8 != 0) {\n          *piVar6 = iVar8;\n        }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *piVar6 = iVar8;\n        }" ({ "{") (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (identifier "iVar8")) (; ";")) (} "}"))) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" (else "else") (compound_statement "{\n      iVar5 = restore_cwd(local_ff4);\n      if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }\n    }" ({ "{") (expression_statement "iVar5 = restore_cwd(local_ff4);" (assignment_expression "iVar5 = restore_cwd(local_ff4)" (identifier "iVar5") (= "=") (call_expression "restore_cwd(local_ff4)" (identifier "restore_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        free_cwd(local_ff4);\n        piVar7 = param_3;\n        goto LAB_00017e38;\n      }" ({ "{") (expression_statement "free_cwd(local_ff4);" (call_expression "free_cwd(local_ff4)" (identifier "free_cwd") (argument_list "(local_ff4)" (( "(") (identifier "local_ff4") () ")"))) (; ";")) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" (identifier "piVar7") (= "=") (identifier "param_3")) (; ";")) (goto_statement "goto LAB_00017e38;" (goto "goto") (statement_identifier "LAB_00017e38") (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" (else "else") (compound_statement "{\n    uVar3 = 0xffffffff;\n    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();\n    *puVar4 = 0x16;\n    piVar7 = param_2;\nLAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000333a8)();\n    param_3 = piVar7;\n  }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar4 = 0x16;" (assignment_expression "*puVar4 = 0x16" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x16")) (; ";")) (expression_statement "piVar7 = param_2;" (assignment_expression "piVar7 = param_2" (identifier "piVar7") (= "=") (identifier "param_2")) (; ";")) (labeled_statement "LAB_00017e38:\n    if (local_2c == *(int *)puVar1) {\n      return uVar3;\n    }" (statement_identifier "LAB_00017e38") (: ":") (if_statement "if (local_2c == *(int *)puVar1) {\n      return uVar3;\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      return uVar3;\n    }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000333a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000333a8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_3 = piVar7;" (assignment_expression "param_3 = piVar7" (identifier "param_3") (= "=") (identifier "piVar7")) (; ";")) (} "}")))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "openat_restore_fail(*puVar4);" (call_expression "openat_restore_fail(*puVar4)" (identifier "openat_restore_fail") (argument_list "(*puVar4)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")"))) (; ";")) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" (identifier "piVar7") (= "=") (identifier "param_3")) (; ";")) (labeled_statement "LAB_00017fb0:\n  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (statement_identifier "LAB_00017fb0") (: ":") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";"))) (expression_statement "piVar6 = (int *)*puVar4;" (assignment_expression "piVar6 = (int *)*puVar4" (identifier "piVar6") (= "=") (cast_expression "(int *)*puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "openat_save_fail();" (call_expression "openat_save_fail()" (identifier "openat_save_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }" (if "if") (parenthesized_expression "((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3]))" (( "(") (binary_expression "(piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])" (parenthesized_expression "(piVar6[2] == piVar7[2])" (( "(") (binary_expression "piVar6[2] == piVar7[2]" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (== "==") (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(piVar6[3] == piVar7[3])" (( "(") (binary_expression "piVar6[3] == piVar7[3]" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (== "==") (subscript_expression "piVar7[3]" (identifier "piVar7") ([ "[") (number_literal "3") (] "]"))) () ")"))) () ")")) (compound_statement "{\n    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);\n  }" ({ "{") (return_statement "return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);" (return "return") (call_expression "(uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*piVar6 == *piVar7 && piVar6[1] == piVar7[1])" (( "(") (binary_expression "*piVar6 == *piVar7 && piVar6[1] == piVar7[1]" (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (&& "&&") (binary_expression "piVar6[1] == piVar7[1]" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")))) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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 (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (goto_statement label: (statement_identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (goto_statement label: (statement_identifier)))) (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 (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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 (return_statement (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) (return_statement (number_literal)))))

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

{
  undefined *puVar1;
  undefined1 *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  int iVar8;
  undefined4 uVar9;
  code *pcVar10;
  int *local_ff4 [2];
  undefined1 auStack_fec [4032];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_000333c4;
  local_2c = *(int *)PTR___stack_chk_guard_000333c4;
  if ((param_5 & 0xfffffeff) == 0) {
    if ((param_1 == (int *)0xffffff9c) || (*(char *)param_2 == '/')) {
      pcVar10 = (code *)PTR_lchown_00033304;
      if (param_5 != 0x100) {
        pcVar10 = (code *)PTR_chown_00033340;
      }
      uVar3 = (*pcVar10)(param_2,param_3,param_4);
      piVar7 = param_3;
      goto LAB_00017e38;
    }
    piVar7 = param_1;
    puVar2 = (undefined1 *)openat_proc_name(auStack_fec,param_1,param_2);
    if (puVar2 == (undefined1 *)0x0) goto LAB_00017dac;
    pcVar10 = (code *)PTR_lchown_00033304;
    if (param_5 != 0x100) {
      pcVar10 = (code *)PTR_chown_00033340;
    }
    uVar3 = (*pcVar10)(puVar2,param_3,param_4);
    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
    piVar7 = (int *)*puVar4;
    if (puVar2 != auStack_fec) {
      (*(code *)PTR_free_000333cc)(puVar2);
    }
    if (uVar3 != 0xffffffff) goto LAB_00017e38;
    if (piVar7 < (int *)0x15) {
      if (-1 < (int)((0x102006U >> ((uint)piVar7 & 0x1f)) << 0x1f)) goto LAB_00017f38;
    }
    else if ((piVar7 != (int *)0x59) && (piVar7 != (int *)0x7a)) {
LAB_00017f38:
      *puVar4 = piVar7;
      goto LAB_00017e38;
    }
LAB_00017dac:
    iVar5 = save_cwd(local_ff4);
    if (iVar5 != 0) goto LAB_00017fb0;
    if ((-1 < (int)param_1) && (local_ff4[0] == param_1)) {
      uVar3 = 0xffffffff;
      free_cwd(local_ff4);
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
      *puVar4 = 9;
      goto LAB_00017e38;
    }
    iVar5 = (*(code *)PTR_fchdir_000332f4)(param_1);
    if (iVar5 != 0) {
      uVar3 = 0xffffffff;
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
      uVar9 = *puVar4;
      free_cwd(local_ff4);
      *puVar4 = uVar9;
      goto LAB_00017e38;
    }
    pcVar10 = (code *)PTR_lchown_00033304;
    if (param_5 != 0x100) {
      pcVar10 = (code *)PTR_chown_00033340;
    }
    uVar3 = (*pcVar10)(param_2,param_3,param_4);
    if (uVar3 == 0xffffffff) {
      piVar6 = (int *)(*(code *)PTR___errno_location_00033330)();
      iVar8 = *piVar6;
      iVar5 = restore_cwd(local_ff4);
      if (iVar5 == 0) {
        free_cwd(local_ff4);
        piVar7 = param_3;
        if (iVar8 != 0) {
          *piVar6 = iVar8;
        }
        goto LAB_00017e38;
      }
    }
    else {
      iVar5 = restore_cwd(local_ff4);
      if (iVar5 == 0) {
        free_cwd(local_ff4);
        piVar7 = param_3;
        goto LAB_00017e38;
      }
    }
  }
  else {
    uVar3 = 0xffffffff;
    puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
    *puVar4 = 0x16;
    piVar7 = param_2;
LAB_00017e38:
    if (local_2c == *(int *)puVar1) {
      return uVar3;
    }
    (*(code *)PTR___stack_chk_fail_000333a8)();
    param_3 = piVar7;
  }
  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
  openat_restore_fail(*puVar4);
  piVar7 = param_3;
LAB_00017fb0:
  puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00033330)();
  piVar6 = (int *)*puVar4;
  openat_save_fail();
  if ((piVar6[2] == piVar7[2]) && (piVar6[3] == piVar7[3])) {
    return (uint)(*piVar6 == *piVar7 && piVar6[1] == piVar7[1]);
  }
  return 0;
}

