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

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

{
  int iVar1;
  uint uVar2;
  char *__file;
  int iVar3;
  uint *puVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  int in_GS_OFFSET;
  saved_cwd saved_cwd;
  char proc_buf [4032];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((flag & 0xfffffeffU) != 0) {
    piVar7 = __errno_location();
    iVar3 = -1;
    *piVar7 = 0x16;
    goto LAB_00017ab0;
  }
  if ((fd == -100) || (*file == '/')) {
    if (flag == 0x100) {
      iVar3 = lchown(file,owner,group);
    }
    else {
      iVar3 = chown(file,owner,group);
    }
    goto LAB_00017ab0;
  }
  __file = openat_proc_name(proc_buf,fd,file);
  if (__file == (char *)0x0) goto LAB_00017ae8;
  if (flag == 0x100) {
    iVar3 = lchown(__file,owner,group);
  }
  else {
    iVar3 = chown(__file,owner,group);
  }
  puVar4 = (uint *)__errno_location();
  uVar2 = *puVar4;
  if (__file != proc_buf) {
    free(__file);
  }
  if (iVar3 != -1) goto LAB_00017ab0;
  if (uVar2 < 0x15) {
    if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;
  }
  else if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {
LAB_00017ae8:
    iVar3 = save_cwd(&saved_cwd);
    if (iVar3 != 0) {
      piVar7 = __errno_location();
                    /* WARNING: Subroutine does not return */
      openat_save_fail(*piVar7);
    }
    if ((fd < 0) || (saved_cwd.desc != fd)) {
      iVar3 = fchdir(fd);
      if (iVar3 == 0) {
        if (flag == 0x100) {
          iVar3 = lchown(file,owner,group);
        }
        else {
          iVar3 = chown(file,owner,group);
        }
        if (iVar3 == -1) {
          piVar7 = __errno_location();
          iVar5 = *piVar7;
          iVar6 = restore_cwd(&saved_cwd);
          if (iVar6 != 0) goto LAB_00017d02;
          free_cwd(&saved_cwd);
          if (iVar5 != 0) {
            *piVar7 = iVar5;
          }
        }
        else {
          iVar5 = restore_cwd(&saved_cwd);
          if (iVar5 != 0) {
LAB_00017d02:
            piVar7 = __errno_location();
                    /* WARNING: Subroutine does not return */
            openat_restore_fail(*piVar7);
          }
          free_cwd(&saved_cwd);
        }
      }
      else {
        piVar7 = __errno_location();
        iVar3 = *piVar7;
        free_cwd(&saved_cwd);
        *piVar7 = iVar3;
        iVar3 = -1;
      }
    }
    else {
      free_cwd(&saved_cwd);
      piVar7 = __errno_location();
      iVar3 = -1;
      *piVar7 = 9;
    }
    goto LAB_00017ab0;
  }
  *puVar4 = uVar2;
LAB_00017ab0:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar3;
}



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

uint * FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)

{
  int *piVar1;
  char *__file;
  uint *puVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  uint uVar6;
  uint *puVar7;
  undefined1 *puVar8;
  int in_GS_OFFSET;
  undefined1 auStack_ffc [4];
  uint *local_ff8;
  uint local_ff4;
  uint *local_ff0;
  int local_fe8 [2];
  char local_fe0 [4032];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x179c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_5 & 0xfffffeff) != 0) {
    piVar5 = __errno_location();
    puVar7 = (uint *)0xffffffff;
    *piVar5 = 0x16;
    goto LAB_00017ab0;
  }
  if ((param_1 == -100) || (*param_2 == '/')) {
    if (param_5 == 0x100) {
      puVar7 = (uint *)lchown(param_2,param_3,param_4);
    }
    else {
      puVar7 = (uint *)chown(param_2,param_3,param_4);
    }
    goto LAB_00017ab0;
  }
  __file = (char *)FUN_0001ba00();
  if (__file == (char *)0x0) goto LAB_00017ae8;
  if (param_5 == 0x100) {
    local_ff8 = (uint *)lchown(__file,param_3,param_4);
  }
  else {
    local_ff8 = (uint *)chown(__file,param_3,param_4);
  }
  puVar2 = (uint *)__errno_location();
  uVar6 = *puVar2;
  puVar7 = local_ff8;
  if (__file != local_fe0) {
    local_ff0 = local_ff8;
    local_ff8 = puVar2;
    local_ff4 = *puVar2;
    free(__file);
    puVar2 = local_ff8;
    uVar6 = local_ff4;
    puVar7 = local_ff0;
  }
  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;
  if (uVar6 < 0x15) {
    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;
  }
  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {
LAB_00017ae8:
    puVar8 = auStack_ffc;
    iVar3 = FUN_0001d250();
    if (iVar3 != 0) {
LAB_00017d11:
      *(undefined4 *)(puVar8 + -4) = 0x17d16;
      piVar5 = __errno_location();
      *(int *)(puVar8 + -0x10) = *piVar5;
      *(code **)(puVar8 + -0x14) = FUN_00017d20;
      FUN_0001d190();
      *(int **)(puVar8 + -0x14) = local_fe8;
      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;
      piVar5 = *(int **)(puVar8 + -0xc);
      piVar1 = *(int **)(puVar8 + -8);
      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {
        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),
                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);
      }
      return (uint *)0x0;
    }
    if ((param_1 < 0) || (local_fe8[0] != param_1)) {
      iVar3 = fchdir(param_1);
      if (iVar3 == 0) {
        if (param_5 == 0x100) {
          local_ff8 = (uint *)lchown(param_2,param_3,param_4);
        }
        else {
          local_ff8 = (uint *)chown(param_2,param_3,param_4);
        }
        if (local_ff8 == (uint *)0xffffffff) {
          piVar5 = __errno_location();
          iVar3 = *piVar5;
          iVar4 = FUN_0001d2c0();
          if (iVar4 == 0) {
            FUN_0001d310();
            puVar7 = local_ff8;
            if (iVar3 != 0) {
              *piVar5 = iVar3;
            }
            goto LAB_00017ab0;
          }
        }
        else {
          iVar3 = FUN_0001d2c0();
          if (iVar3 == 0) {
            FUN_0001d310();
            puVar7 = local_ff8;
            goto LAB_00017ab0;
          }
        }
        __errno_location();
        puVar8 = &stack0xffffeff4;
        FUN_0001d1d0();
        goto LAB_00017d11;
      }
      piVar5 = __errno_location();
      iVar3 = *piVar5;
      FUN_0001d310();
      *piVar5 = iVar3;
      puVar7 = (uint *)0xffffffff;
    }
    else {
      FUN_0001d310();
      piVar5 = __errno_location();
      puVar7 = (uint *)0xffffffff;
      *piVar5 = 9;
    }
    goto LAB_00017ab0;
  }
  *puVar2 = uVar6;
LAB_00017ab0:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0001e480();
  }
  return puVar7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012c10
ADD EBX,0xf637
SUB ESP,0xfec
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xfdc],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x1004]
TEST dword ptr [ESP + 0x1010],0xfffffeff
JNZ 0x00017ce8
CMP dword ptr [ESP + 0x1000],-0x64
JZ 0x00017ba8
CMP byte ptr [EDI],0x2f
JZ 0x00017ba8
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x1008]
LEA ESI,[ESP + 0x28]
PUSH ESI
CALL 0x0001ba00
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00017ae8
CMP dword ptr [ESP + 0x1010],0x100
JZ 0x00017c30
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1010]
PUSH dword ptr [ESP + 0x1010]
PUSH EAX
CALL 0x00012070
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESP + 0x4],EDX
CALL 0x00012320
CMP EBP,ESI
MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [EAX]
JZ 0x00017a99
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [ESP + 0x10],EAX
PUSH EBP
CALL 0x00012530
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0x4]
CMP EDX,-0x1
JNZ 0x00017ab0
CMP ECX,0x14
JBE 0x00017ad8
CMP ECX,0x26
JZ 0x00017ae8
CMP ECX,0x5f
JZ 0x00017ae8
MOV dword ptr [EAX],ECX
NOP
MOV ECX,dword ptr [ESP + 0xfdc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x00017cfd
ADD ESP,0xfec
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0x102006
BT ESI,ECX
JNC 0x00017aad
LEA ESI,[ESI]
SUB ESP,0xc
LEA ESI,[ESP + 0x20]
PUSH ESI
CALL 0x0001d250
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017d11
MOV EAX,dword ptr [ESP + 0x1000]
TEST EAX,EAX
JS 0x00017b1c
MOV EAX,dword ptr [ESP + 0x1000]
CMP dword ptr [ESP + 0x14],EAX
JZ 0x00017cc0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x100c]
CALL 0x000123e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017c98
CMP dword ptr [ESP + 0x1010],0x100
JZ 0x00017be0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1010]
PUSH dword ptr [ESP + 0x1010]
PUSH EDI
CALL 0x00012070
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESP + 0x4],EDX
CMP EDX,-0x1
JZ 0x00017c58
SUB ESP,0xc
PUSH ESI
CALL 0x0001d2c0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JNZ 0x00017d02
MOV dword ptr [ESP + 0x4],EDX
SUB ESP,0xc
PUSH ESI
CALL 0x0001d310
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
JMP 0x00017ab0
CMP dword ptr [ESP + 0x1010],0x100
JZ 0x00017c08
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1010]
PUSH dword ptr [ESP + 0x1010]
PUSH EDI
CALL 0x00012070
ADD ESP,0x10
MOV EDX,EAX
JMP 0x00017ab0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1010]
PUSH dword ptr [ESP + 0x1010]
PUSH EDI
CALL 0x000123b0
ADD ESP,0x10
MOV EDX,EAX
JMP 0x00017b63
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1010]
PUSH dword ptr [ESP + 0x1010]
PUSH EDI
CALL 0x000123b0
ADD ESP,0x10
MOV EDX,EAX
JMP 0x00017ab0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1010]
PUSH dword ptr [ESP + 0x1010]
PUSH EAX
CALL 0x000123b0
ADD ESP,0x10
MOV EDX,EAX
JMP 0x00017a62
CALL 0x00012320
SUB ESP,0xc
MOV EBP,dword ptr [EAX]
PUSH ESI
MOV EDI,EAX
CALL 0x0001d2c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017d02
SUB ESP,0xc
PUSH ESI
CALL 0x0001d310
ADD ESP,0x10
TEST EBP,EBP
MOV EDX,dword ptr [ESP + 0x4]
JZ 0x00017ab0
MOV dword ptr [EDI],EBP
JMP 0x00017ab0
CALL 0x00012320
SUB ESP,0xc
MOV EBP,dword ptr [EAX]
PUSH ESI
MOV EDI,EAX
CALL 0x0001d310
MOV dword ptr [EDI],EBP
ADD ESP,0x10
MOV EDX,0xffffffff
JMP 0x00017ab0
SUB ESP,0xc
PUSH ESI
CALL 0x0001d310
CALL 0x00012320
ADD ESP,0x10
MOV EDX,0xffffffff
MOV dword ptr [EAX],0x9
JMP 0x00017ab0
CALL 0x00012320
MOV EDX,0xffffffff
MOV dword ptr [EAX],0x16
JMP 0x00017ab0
CALL 0x0001e480
CALL 0x00012320
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001d1d0
CALL 0x00012320
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001d190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)\n\n{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001e480();\n  }\n  return puVar7;\n}\n\n" comment (function_definition "uint * FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)\n\n{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001e480();\n  }\n  return puVar7;\n}" type_identifier (pointer_declarator "* FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" * (function_declarator "FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" identifier (parameter_list "(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "__uid_t param_3" type_identifier identifier) , (parameter_declaration "__gid_t param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001e480();\n  }\n  return puVar7;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 auStack_ffc [4];" type_identifier (array_declarator "auStack_ffc [4]" identifier [ number_literal ]) ;) (declaration "uint *local_ff8;" type_identifier (pointer_declarator "*local_ff8" * identifier) ;) (declaration "uint local_ff4;" type_identifier identifier ;) (declaration "uint *local_ff0;" type_identifier (pointer_declarator "*local_ff0" * identifier) ;) (declaration "int local_fe8 [2];" primitive_type (array_declarator "local_fe8 [2]" identifier [ number_literal ]) ;) (declaration "char local_fe0 [4032];" primitive_type (array_declarator "local_fe0 [4032]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x179c9;" (assignment_expression "uStack_14 = 0x179c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\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    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*piVar5 = 0x16;" (assignment_expression "*piVar5 = 0x16" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) (if_statement "if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "((param_1 == -100) || (*param_2 == '/'))" ( (binary_expression "(param_1 == -100) || (*param_2 == '/')" (parenthesized_expression "(param_1 == -100)" ( (binary_expression "param_1 == -100" identifier == number_literal) )) || (parenthesized_expression "(*param_2 == '/')" ( (binary_expression "*param_2 == '/'" (pointer_expression "*param_2" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }" { (if_statement "if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" if (parenthesized_expression "(param_5 == 0x100)" ( (binary_expression "param_5 == 0x100" identifier == number_literal) )) (compound_statement "{\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }" { (expression_statement "puVar7 = (uint *)lchown(param_2,param_3,param_4);" (assignment_expression "puVar7 = (uint *)lchown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)lchown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "lchown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }) (else_clause "else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" else (compound_statement "{\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" { (expression_statement "puVar7 = (uint *)chown(param_2,param_3,param_4);" (assignment_expression "puVar7 = (uint *)chown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)chown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "chown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }))) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) (expression_statement "__file = (char *)FUN_0001ba00();" (assignment_expression "__file = (char *)FUN_0001ba00()" identifier = (cast_expression "(char *)FUN_0001ba00()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ba00()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__file == (char *)0x0) goto LAB_00017ae8;" if (parenthesized_expression "(__file == (char *)0x0)" ( (binary_expression "__file == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017ae8;" goto statement_identifier ;)) (if_statement "if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" if (parenthesized_expression "(param_5 == 0x100)" ( (binary_expression "param_5 == 0x100" identifier == number_literal) )) (compound_statement "{\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }" { (expression_statement "local_ff8 = (uint *)lchown(__file,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)lchown(__file,param_3,param_4)" identifier = (cast_expression "(uint *)lchown(__file,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "lchown(__file,param_3,param_4)" identifier (argument_list "(__file,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }) (else_clause "else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" else (compound_statement "{\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" { (expression_statement "local_ff8 = (uint *)chown(__file,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)chown(__file,param_3,param_4)" identifier = (cast_expression "(uint *)chown(__file,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "chown(__file,param_3,param_4)" identifier (argument_list "(__file,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }))) (expression_statement "puVar2 = (uint *)__errno_location();" (assignment_expression "puVar2 = (uint *)__errno_location()" identifier = (cast_expression "(uint *)__errno_location()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__errno_location()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar2;" (assignment_expression "uVar6 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" identifier = identifier) ;) (if_statement "if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }" if (parenthesized_expression "(__file != local_fe0)" ( (binary_expression "__file != local_fe0" identifier != identifier) )) (compound_statement "{\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }" { (expression_statement "local_ff0 = local_ff8;" (assignment_expression "local_ff0 = local_ff8" identifier = identifier) ;) (expression_statement "local_ff8 = puVar2;" (assignment_expression "local_ff8 = puVar2" identifier = identifier) ;) (expression_statement "local_ff4 = *puVar2;" (assignment_expression "local_ff4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "free(__file);" (call_expression "free(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "puVar2 = local_ff8;" (assignment_expression "puVar2 = local_ff8" identifier = identifier) ;) (expression_statement "uVar6 = local_ff4;" (assignment_expression "uVar6 = local_ff4" identifier = identifier) ;) (expression_statement "puVar7 = local_ff0;" (assignment_expression "puVar7 = local_ff0" identifier = identifier) ;) })) (if_statement "if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;" if (parenthesized_expression "(puVar7 != (uint *)0xffffffff)" ( (binary_expression "puVar7 != (uint *)0xffffffff" identifier != (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;)) (if_statement "if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "(uVar6 < 0x15)" ( (binary_expression "uVar6 < 0x15" identifier < number_literal) )) (compound_statement "{\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }" { (if_statement "if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;" if (parenthesized_expression "((0x102006U >> (uVar6 & 0x1f) & 1) != 0)" ( (binary_expression "(0x102006U >> (uVar6 & 0x1f) & 1) != 0" (parenthesized_expression "(0x102006U >> (uVar6 & 0x1f) & 1)" ( (binary_expression "0x102006U >> (uVar6 & 0x1f) & 1" (binary_expression "0x102006U >> (uVar6 & 0x1f)" number_literal >> (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00017ae8;" goto statement_identifier ;)) }) (else_clause "else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" else (if_statement "if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "((uVar6 == 0x26) || (uVar6 == 0x5f))" ( (binary_expression "(uVar6 == 0x26) || (uVar6 == 0x5f)" (parenthesized_expression "(uVar6 == 0x26)" ( (binary_expression "uVar6 == 0x26" identifier == number_literal) )) || (parenthesized_expression "(uVar6 == 0x5f)" ( (binary_expression "uVar6 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" { (labeled_statement "LAB_00017ae8:\n    puVar8 = auStack_ffc;" statement_identifier : (expression_statement "puVar8 = auStack_ffc;" (assignment_expression "puVar8 = auStack_ffc" identifier = identifier) ;)) (expression_statement "iVar3 = FUN_0001d250();" (assignment_expression "iVar3 = FUN_0001d250()" identifier = (call_expression "FUN_0001d250()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }" { (labeled_statement "LAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;" statement_identifier : (expression_statement "*(undefined4 *)(puVar8 + -4) = 0x17d16;" (assignment_expression "*(undefined4 *)(puVar8 + -4) = 0x17d16" (pointer_expression "*(undefined4 *)(puVar8 + -4)" * (cast_expression "(undefined4 *)(puVar8 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -4)" ( (binary_expression "puVar8 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(puVar8 + -0x10) = *piVar5;" (assignment_expression "*(int *)(puVar8 + -0x10) = *piVar5" (pointer_expression "*(int *)(puVar8 + -0x10)" * (cast_expression "(int *)(puVar8 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*(code **)(puVar8 + -0x14) = FUN_00017d20;" (assignment_expression "*(code **)(puVar8 + -0x14) = FUN_00017d20" (pointer_expression "*(code **)(puVar8 + -0x14)" * (cast_expression "(code **)(puVar8 + -0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0001d190();" (call_expression "FUN_0001d190()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int **)(puVar8 + -0x14) = local_fe8;" (assignment_expression "*(int **)(puVar8 + -0x14) = local_fe8" (pointer_expression "*(int **)(puVar8 + -0x14)" * (cast_expression "(int **)(puVar8 + -0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;" (assignment_expression "*(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT" (pointer_expression "*(undefined ***)(puVar8 + -0x18)" * (cast_expression "(undefined ***)(puVar8 + -0x18)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(puVar8 + -0x18)" ( (binary_expression "puVar8 + -0x18" identifier + number_literal) )))) = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "piVar5 = *(int **)(puVar8 + -0xc);" (assignment_expression "piVar5 = *(int **)(puVar8 + -0xc)" identifier = (pointer_expression "*(int **)(puVar8 + -0xc)" * (cast_expression "(int **)(puVar8 + -0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0xc)" ( (binary_expression "puVar8 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = *(int **)(puVar8 + -8);" (assignment_expression "piVar1 = *(int **)(puVar8 + -8)" identifier = (pointer_expression "*(int **)(puVar8 + -8)" * (cast_expression "(int **)(puVar8 + -8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -8)" ( (binary_expression "puVar8 + -8" identifier + number_literal) ))))) ;) (if_statement "if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }" if (parenthesized_expression "(piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2])" ( (binary_expression "piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]" (binary_expression "piVar5[3] == piVar1[3]" (subscript_expression "piVar5[3]" identifier [ number_literal ]) == (subscript_expression "piVar1[3]" identifier [ number_literal ])) && (binary_expression "piVar5[2] == piVar1[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) == (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }" { (return_statement "return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);" return (cast_expression "(uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" identifier (argument_list "((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" ( (call_expression "(int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uint)(piVar5[1] ^ piVar1[1]) >> 8)" ( (binary_expression "(uint)(piVar5[1] ^ piVar1[1]) >> 8" (call_expression "(uint)(piVar5[1] ^ piVar1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar5[1] ^ piVar1[1])" ( (binary_expression "piVar5[1] ^ piVar1[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) ^ (subscript_expression "piVar1[1]" identifier [ number_literal ])) ))) >> number_literal) ))) , (binary_expression "*piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0" (binary_expression "*piVar5 == *piVar1" (pointer_expression "*piVar5" * identifier) == (pointer_expression "*piVar1" * identifier)) && (binary_expression "(piVar5[1] ^ piVar1[1]) == 0" (parenthesized_expression "(piVar5[1] ^ piVar1[1])" ( (binary_expression "piVar5[1] ^ piVar1[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) ^ (subscript_expression "piVar1[1]" identifier [ number_literal ])) )) == number_literal)) )))) ;) })) (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" if (parenthesized_expression "((param_1 < 0) || (local_fe8[0] != param_1))" ( (binary_expression "(param_1 < 0) || (local_fe8[0] != param_1)" (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) || (parenthesized_expression "(local_fe8[0] != param_1)" ( (binary_expression "local_fe8[0] != param_1" (subscript_expression "local_fe8[0]" identifier [ number_literal ]) != identifier) ))) )) (compound_statement "{\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }" { (expression_statement "iVar3 = fchdir(param_1);" (assignment_expression "iVar3 = fchdir(param_1)" identifier = (call_expression "fchdir(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }" { (if_statement "if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" if (parenthesized_expression "(param_5 == 0x100)" ( (binary_expression "param_5 == 0x100" identifier == number_literal) )) (compound_statement "{\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }" { (expression_statement "local_ff8 = (uint *)lchown(param_2,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)lchown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)lchown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "lchown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }) (else_clause "else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" else (compound_statement "{\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" { (expression_statement "local_ff8 = (uint *)chown(param_2,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)chown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)chown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "chown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }))) (if_statement "if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" if (parenthesized_expression "(local_ff8 == (uint *)0xffffffff)" ( (binary_expression "local_ff8 == (uint *)0xffffffff" identifier == (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "iVar4 = FUN_0001d2c0();" (assignment_expression "iVar4 = FUN_0001d2c0()" identifier = (call_expression "FUN_0001d2c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }" { (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              *piVar5 = iVar3;\n            }" { (expression_statement "*piVar5 = iVar3;" (assignment_expression "*piVar5 = iVar3" (pointer_expression "*piVar5" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) }) (else_clause "else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" else (compound_statement "{\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" { (expression_statement "iVar3 = FUN_0001d2c0();" (assignment_expression "iVar3 = FUN_0001d2c0()" identifier = (call_expression "FUN_0001d2c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }" { (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" identifier = identifier) ;) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) }))) (expression_statement "__errno_location();" (call_expression "__errno_location()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar8 = &stack0xffffeff4;" (assignment_expression "puVar8 = &stack0xffffeff4" identifier = (pointer_expression "&stack0xffffeff4" & identifier)) ;) (expression_statement "FUN_0001d1d0();" (call_expression "FUN_0001d1d0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00017d11;" goto statement_identifier ;) })) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar5 = iVar3;" (assignment_expression "*piVar5 = iVar3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" else (compound_statement "{\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" { (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*piVar5 = 9;" (assignment_expression "*piVar5 = 9" (pointer_expression "*piVar5" * identifier) = number_literal) ;) }))) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })))) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (labeled_statement "LAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001e480();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001e480();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0001e480();\n  }" { comment (expression_statement "FUN_0001e480();" (call_expression "FUN_0001e480()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return puVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint rpl_fchownat(int fd,char *file,uid_t owner,gid_t group,int flag)\n\n{\n  int iVar1;\n  uint uVar2;\n  char *__file;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  saved_cwd saved_cwd;\n  char proc_buf [4032];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((flag & 0xfffffeffU) != 0) {\n    piVar7 = __errno_location();\n    iVar3 = -1;\n    *piVar7 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((fd == -100) || (*file == '/')) {\n    if (flag == 0x100) {\n      iVar3 = lchown(file,owner,group);\n    }\n    else {\n      iVar3 = chown(file,owner,group);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = openat_proc_name(proc_buf,fd,file);\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (flag == 0x100) {\n    iVar3 = lchown(__file,owner,group);\n  }\n  else {\n    iVar3 = chown(__file,owner,group);\n  }\n  puVar4 = (uint *)__errno_location();\n  uVar2 = *puVar4;\n  if (__file != proc_buf) {\n    free(__file);\n  }\n  if (iVar3 != -1) goto LAB_00017ab0;\n  if (uVar2 < 0x15) {\n    if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar4 = uVar2;\nLAB_00017ab0:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar3;\n}\n\n" comment comment (function_definition "int rpl_fchownat(int fd,char *file,uid_t owner,gid_t group,int flag)\n\n{\n  int iVar1;\n  uint uVar2;\n  char *__file;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  saved_cwd saved_cwd;\n  char proc_buf [4032];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((flag & 0xfffffeffU) != 0) {\n    piVar7 = __errno_location();\n    iVar3 = -1;\n    *piVar7 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((fd == -100) || (*file == '/')) {\n    if (flag == 0x100) {\n      iVar3 = lchown(file,owner,group);\n    }\n    else {\n      iVar3 = chown(file,owner,group);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = openat_proc_name(proc_buf,fd,file);\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (flag == 0x100) {\n    iVar3 = lchown(__file,owner,group);\n  }\n  else {\n    iVar3 = chown(__file,owner,group);\n  }\n  puVar4 = (uint *)__errno_location();\n  uVar2 = *puVar4;\n  if (__file != proc_buf) {\n    free(__file);\n  }\n  if (iVar3 != -1) goto LAB_00017ab0;\n  if (uVar2 < 0x15) {\n    if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar4 = uVar2;\nLAB_00017ab0:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar3;\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  int iVar1;\n  uint uVar2;\n  char *__file;\n  int iVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  saved_cwd saved_cwd;\n  char proc_buf [4032];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((flag & 0xfffffeffU) != 0) {\n    piVar7 = __errno_location();\n    iVar3 = -1;\n    *piVar7 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((fd == -100) || (*file == '/')) {\n    if (flag == 0x100) {\n      iVar3 = lchown(file,owner,group);\n    }\n    else {\n      iVar3 = chown(file,owner,group);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = openat_proc_name(proc_buf,fd,file);\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (flag == 0x100) {\n    iVar3 = lchown(__file,owner,group);\n  }\n  else {\n    iVar3 = chown(__file,owner,group);\n  }\n  puVar4 = (uint *)__errno_location();\n  uVar2 = *puVar4;\n  if (__file != proc_buf) {\n    free(__file);\n  }\n  if (iVar3 != -1) goto LAB_00017ab0;\n  if (uVar2 < 0x15) {\n    if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar4 = uVar2;\nLAB_00017ab0:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type 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 "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((flag & 0xfffffeffU) != 0) {\n    piVar7 = __errno_location();\n    iVar3 = -1;\n    *piVar7 = 0x16;\n    goto LAB_00017ab0;\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    piVar7 = __errno_location();\n    iVar3 = -1;\n    *piVar7 = 0x16;\n    goto LAB_00017ab0;\n  }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "*piVar7 = 0x16;" (assignment_expression "*piVar7 = 0x16" (pointer_expression "*piVar7" * identifier) = number_literal) ;) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) (if_statement "if ((fd == -100) || (*file == '/')) {\n    if (flag == 0x100) {\n      iVar3 = lchown(file,owner,group);\n    }\n    else {\n      iVar3 = chown(file,owner,group);\n    }\n    goto LAB_00017ab0;\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    if (flag == 0x100) {\n      iVar3 = lchown(file,owner,group);\n    }\n    else {\n      iVar3 = chown(file,owner,group);\n    }\n    goto LAB_00017ab0;\n  }" { (if_statement "if (flag == 0x100) {\n      iVar3 = lchown(file,owner,group);\n    }\n    else {\n      iVar3 = chown(file,owner,group);\n    }" if (parenthesized_expression "(flag == 0x100)" ( (binary_expression "flag == 0x100" identifier == number_literal) )) (compound_statement "{\n      iVar3 = lchown(file,owner,group);\n    }" { (expression_statement "iVar3 = lchown(file,owner,group);" (assignment_expression "iVar3 = lchown(file,owner,group)" identifier = (call_expression "lchown(file,owner,group)" identifier (argument_list "(file,owner,group)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n      iVar3 = chown(file,owner,group);\n    }" else (compound_statement "{\n      iVar3 = chown(file,owner,group);\n    }" { (expression_statement "iVar3 = chown(file,owner,group);" (assignment_expression "iVar3 = chown(file,owner,group)" identifier = (call_expression "chown(file,owner,group)" identifier (argument_list "(file,owner,group)" ( identifier , identifier , identifier )))) ;) }))) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) (expression_statement "__file = openat_proc_name(proc_buf,fd,file);" (assignment_expression "__file = 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 (__file == (char *)0x0) goto LAB_00017ae8;" if (parenthesized_expression "(__file == (char *)0x0)" ( (binary_expression "__file == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017ae8;" goto statement_identifier ;)) (if_statement "if (flag == 0x100) {\n    iVar3 = lchown(__file,owner,group);\n  }\n  else {\n    iVar3 = chown(__file,owner,group);\n  }" if (parenthesized_expression "(flag == 0x100)" ( (binary_expression "flag == 0x100" identifier == number_literal) )) (compound_statement "{\n    iVar3 = lchown(__file,owner,group);\n  }" { (expression_statement "iVar3 = lchown(__file,owner,group);" (assignment_expression "iVar3 = lchown(__file,owner,group)" identifier = (call_expression "lchown(__file,owner,group)" identifier (argument_list "(__file,owner,group)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n    iVar3 = chown(__file,owner,group);\n  }" else (compound_statement "{\n    iVar3 = chown(__file,owner,group);\n  }" { (expression_statement "iVar3 = chown(__file,owner,group);" (assignment_expression "iVar3 = chown(__file,owner,group)" identifier = (call_expression "chown(__file,owner,group)" identifier (argument_list "(__file,owner,group)" ( identifier , identifier , identifier )))) ;) }))) (expression_statement "puVar4 = (uint *)__errno_location();" (assignment_expression "puVar4 = (uint *)__errno_location()" identifier = (cast_expression "(uint *)__errno_location()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__errno_location()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = *puVar4;" (assignment_expression "uVar2 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (if_statement "if (__file != proc_buf) {\n    free(__file);\n  }" if (parenthesized_expression "(__file != proc_buf)" ( (binary_expression "__file != proc_buf" identifier != identifier) )) (compound_statement "{\n    free(__file);\n  }" { (expression_statement "free(__file);" (call_expression "free(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) })) (if_statement "if (iVar3 != -1) goto LAB_00017ab0;" if (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;)) (if_statement "if (uVar2 < 0x15) {\n    if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "(uVar2 < 0x15)" ( (binary_expression "uVar2 < 0x15" identifier < number_literal) )) (compound_statement "{\n    if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }" { (if_statement "if ((0x102006U >> (uVar2 & 0x1f) & 1) != 0) goto LAB_00017ae8;" if (parenthesized_expression "((0x102006U >> (uVar2 & 0x1f) & 1) != 0)" ( (binary_expression "(0x102006U >> (uVar2 & 0x1f) & 1) != 0" (parenthesized_expression "(0x102006U >> (uVar2 & 0x1f) & 1)" ( (binary_expression "0x102006U >> (uVar2 & 0x1f) & 1" (binary_expression "0x102006U >> (uVar2 & 0x1f)" number_literal >> (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00017ae8;" goto statement_identifier ;)) }) (else_clause "else if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }" else (if_statement "if ((uVar2 == 0x26) || (uVar2 == 0x5f)) {\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "((uVar2 == 0x26) || (uVar2 == 0x5f))" ( (binary_expression "(uVar2 == 0x26) || (uVar2 == 0x5f)" (parenthesized_expression "(uVar2 == 0x26)" ( (binary_expression "uVar2 == 0x26" identifier == number_literal) )) || (parenthesized_expression "(uVar2 == 0x5f)" ( (binary_expression "uVar2 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\nLAB_00017ae8:\n    iVar3 = save_cwd(&saved_cwd);\n    if (iVar3 != 0) {\n      piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }\n    if ((fd < 0) || (saved_cwd.desc != fd)) {\n      iVar3 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }\n    goto LAB_00017ab0;\n  }" { (labeled_statement "LAB_00017ae8:\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 = __errno_location();\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 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      openat_save_fail(*piVar7);\n    }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" 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 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }\n    else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 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 = fchdir(fd);\n      if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }\n    }" { (expression_statement "iVar3 = fchdir(fd);" (assignment_expression "iVar3 = fchdir(fd)" identifier = (call_expression "fchdir(fd)" identifier (argument_list "(fd)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }\n      else {\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }\n        if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }\n      }" { (if_statement "if (flag == 0x100) {\n          iVar3 = lchown(file,owner,group);\n        }\n        else {\n          iVar3 = chown(file,owner,group);\n        }" if (parenthesized_expression "(flag == 0x100)" ( (binary_expression "flag == 0x100" identifier == number_literal) )) (compound_statement "{\n          iVar3 = lchown(file,owner,group);\n        }" { (expression_statement "iVar3 = lchown(file,owner,group);" (assignment_expression "iVar3 = lchown(file,owner,group)" identifier = (call_expression "lchown(file,owner,group)" identifier (argument_list "(file,owner,group)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n          iVar3 = chown(file,owner,group);\n        }" else (compound_statement "{\n          iVar3 = chown(file,owner,group);\n        }" { (expression_statement "iVar3 = chown(file,owner,group);" (assignment_expression "iVar3 = chown(file,owner,group)" identifier = (call_expression "chown(file,owner,group)" identifier (argument_list "(file,owner,group)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if (iVar3 == -1) {\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }\n        else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n          piVar7 = __errno_location();\n          iVar5 = *piVar7;\n          iVar6 = restore_cwd(&saved_cwd);\n          if (iVar6 != 0) goto LAB_00017d02;\n          free_cwd(&saved_cwd);\n          if (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }\n        }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = *piVar7;" (assignment_expression "iVar5 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "iVar6 = restore_cwd(&saved_cwd);" (assignment_expression "iVar6 = restore_cwd(&saved_cwd)" identifier = (call_expression "restore_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) )))) ;) (if_statement "if (iVar6 != 0) goto LAB_00017d02;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017d02;" 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 (iVar5 != 0) {\n            *piVar7 = iVar5;\n          }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n            *piVar7 = iVar5;\n          }" { (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" * identifier) = identifier) ;) })) }) (else_clause "else {\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\n          free_cwd(&saved_cwd);\n        }" else (compound_statement "{\n          iVar5 = restore_cwd(&saved_cwd);\n          if (iVar5 != 0) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }\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) {\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00017d02:\n            piVar7 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n            openat_restore_fail(*piVar7);\n          }" { (labeled_statement "LAB_00017d02:\n            piVar7 = __errno_location();" statement_identifier : (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) comment (expression_statement "openat_restore_fail(*piVar7);" (call_expression "openat_restore_fail(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * 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        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }" else (compound_statement "{\n        piVar7 = __errno_location();\n        iVar3 = *piVar7;\n        free_cwd(&saved_cwd);\n        *piVar7 = iVar3;\n        iVar3 = -1;\n      }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" identifier = (pointer_expression "*piVar7" * 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 "*piVar7 = iVar3;" (assignment_expression "*piVar7 = iVar3" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }" else (compound_statement "{\n      free_cwd(&saved_cwd);\n      piVar7 = __errno_location();\n      iVar3 = -1;\n      *piVar7 = 9;\n    }" { (expression_statement "free_cwd(&saved_cwd);" (call_expression "free_cwd(&saved_cwd)" identifier (argument_list "(&saved_cwd)" ( (pointer_expression "&saved_cwd" & identifier) ))) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "*piVar7 = 9;" (assignment_expression "*piVar7 = 9" (pointer_expression "*piVar7" * identifier) = number_literal) ;) }))) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })))) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (labeled_statement "LAB_00017ab0:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "uint * FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)\n\n{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }\n  return puVar7;\n}\n\n" (function_definition "uint * FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)\n\n{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }\n  return puVar7;\n}" type_identifier (pointer_declarator "* FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" * (function_declarator "FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" identifier (parameter_list "(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "__uid_t param_3" type_identifier identifier) , (parameter_declaration "__gid_t param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }\n  return puVar7;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 auStack_ffc [4];" type_identifier (array_declarator "auStack_ffc [4]" identifier [ number_literal ]) ;) (declaration "uint *local_ff8;" type_identifier (pointer_declarator "*local_ff8" * identifier) ;) (declaration "uint local_ff4;" type_identifier identifier ;) (declaration "uint *local_ff0;" type_identifier (pointer_declarator "*local_ff0" * identifier) ;) (declaration "int local_fe8 [2];" primitive_type (array_declarator "local_fe8 [2]" identifier [ number_literal ]) ;) (declaration "char local_fe0 [4032];" primitive_type (array_declarator "local_fe0 [4032]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x179c9;" (assignment_expression "uStack_14 = 0x179c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\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    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*piVar5 = 0x16;" (assignment_expression "*piVar5 = 0x16" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) (if_statement "if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "((param_1 == -100) || (*param_2 == '/'))" ( (binary_expression "(param_1 == -100) || (*param_2 == '/')" (parenthesized_expression "(param_1 == -100)" ( (binary_expression "param_1 == -100" identifier == number_literal) )) || (parenthesized_expression "(*param_2 == '/')" ( (binary_expression "*param_2 == '/'" (pointer_expression "*param_2" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }" { (if_statement "if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" if (parenthesized_expression "(param_5 == 0x100)" ( (binary_expression "param_5 == 0x100" identifier == number_literal) )) (compound_statement "{\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }" { (expression_statement "puVar7 = (uint *)lchown(param_2,param_3,param_4);" (assignment_expression "puVar7 = (uint *)lchown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)lchown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "lchown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }) (else_clause "else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" else (compound_statement "{\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" { (expression_statement "puVar7 = (uint *)chown(param_2,param_3,param_4);" (assignment_expression "puVar7 = (uint *)chown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)chown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "chown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }))) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) (expression_statement "__file = (char *)FUN_0001ba00();" (assignment_expression "__file = (char *)FUN_0001ba00()" identifier = (cast_expression "(char *)FUN_0001ba00()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ba00()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__file == (char *)0x0) goto LAB_00017ae8;" if (parenthesized_expression "(__file == (char *)0x0)" ( (binary_expression "__file == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017ae8;" goto statement_identifier ;)) (if_statement "if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" if (parenthesized_expression "(param_5 == 0x100)" ( (binary_expression "param_5 == 0x100" identifier == number_literal) )) (compound_statement "{\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }" { (expression_statement "local_ff8 = (uint *)lchown(__file,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)lchown(__file,param_3,param_4)" identifier = (cast_expression "(uint *)lchown(__file,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "lchown(__file,param_3,param_4)" identifier (argument_list "(__file,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }) (else_clause "else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" else (compound_statement "{\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" { (expression_statement "local_ff8 = (uint *)chown(__file,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)chown(__file,param_3,param_4)" identifier = (cast_expression "(uint *)chown(__file,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "chown(__file,param_3,param_4)" identifier (argument_list "(__file,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }))) (expression_statement "puVar2 = (uint *)__errno_location();" (assignment_expression "puVar2 = (uint *)__errno_location()" identifier = (cast_expression "(uint *)__errno_location()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__errno_location()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar2;" (assignment_expression "uVar6 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" identifier = identifier) ;) (if_statement "if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }" if (parenthesized_expression "(__file != local_fe0)" ( (binary_expression "__file != local_fe0" identifier != identifier) )) (compound_statement "{\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }" { (expression_statement "local_ff0 = local_ff8;" (assignment_expression "local_ff0 = local_ff8" identifier = identifier) ;) (expression_statement "local_ff8 = puVar2;" (assignment_expression "local_ff8 = puVar2" identifier = identifier) ;) (expression_statement "local_ff4 = *puVar2;" (assignment_expression "local_ff4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "free(__file);" (call_expression "free(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "puVar2 = local_ff8;" (assignment_expression "puVar2 = local_ff8" identifier = identifier) ;) (expression_statement "uVar6 = local_ff4;" (assignment_expression "uVar6 = local_ff4" identifier = identifier) ;) (expression_statement "puVar7 = local_ff0;" (assignment_expression "puVar7 = local_ff0" identifier = identifier) ;) })) (if_statement "if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;" if (parenthesized_expression "(puVar7 != (uint *)0xffffffff)" ( (binary_expression "puVar7 != (uint *)0xffffffff" identifier != (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;)) (if_statement "if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "(uVar6 < 0x15)" ( (binary_expression "uVar6 < 0x15" identifier < number_literal) )) (compound_statement "{\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }" { (if_statement "if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;" if (parenthesized_expression "((0x102006U >> (uVar6 & 0x1f) & 1) != 0)" ( (binary_expression "(0x102006U >> (uVar6 & 0x1f) & 1) != 0" (parenthesized_expression "(0x102006U >> (uVar6 & 0x1f) & 1)" ( (binary_expression "0x102006U >> (uVar6 & 0x1f) & 1" (binary_expression "0x102006U >> (uVar6 & 0x1f)" number_literal >> (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00017ae8;" goto statement_identifier ;)) }) (else_clause "else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" else (if_statement "if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" if (parenthesized_expression "((uVar6 == 0x26) || (uVar6 == 0x5f))" ( (binary_expression "(uVar6 == 0x26) || (uVar6 == 0x5f)" (parenthesized_expression "(uVar6 == 0x26)" ( (binary_expression "uVar6 == 0x26" identifier == number_literal) )) || (parenthesized_expression "(uVar6 == 0x5f)" ( (binary_expression "uVar6 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" { (labeled_statement "LAB_00017ae8:\n    puVar8 = auStack_ffc;" statement_identifier : (expression_statement "puVar8 = auStack_ffc;" (assignment_expression "puVar8 = auStack_ffc" identifier = identifier) ;)) (expression_statement "iVar3 = FUN_0001d250();" (assignment_expression "iVar3 = FUN_0001d250()" identifier = (call_expression "FUN_0001d250()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }" { (labeled_statement "LAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;" statement_identifier : (expression_statement "*(undefined4 *)(puVar8 + -4) = 0x17d16;" (assignment_expression "*(undefined4 *)(puVar8 + -4) = 0x17d16" (pointer_expression "*(undefined4 *)(puVar8 + -4)" * (cast_expression "(undefined4 *)(puVar8 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -4)" ( (binary_expression "puVar8 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(puVar8 + -0x10) = *piVar5;" (assignment_expression "*(int *)(puVar8 + -0x10) = *piVar5" (pointer_expression "*(int *)(puVar8 + -0x10)" * (cast_expression "(int *)(puVar8 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x10)" ( (binary_expression "puVar8 + -0x10" identifier + number_literal) )))) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "*(code **)(puVar8 + -0x14) = FUN_00017d20;" (assignment_expression "*(code **)(puVar8 + -0x14) = FUN_00017d20" (pointer_expression "*(code **)(puVar8 + -0x14)" * (cast_expression "(code **)(puVar8 + -0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0001d190();" (call_expression "FUN_0001d190()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int **)(puVar8 + -0x14) = local_fe8;" (assignment_expression "*(int **)(puVar8 + -0x14) = local_fe8" (pointer_expression "*(int **)(puVar8 + -0x14)" * (cast_expression "(int **)(puVar8 + -0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x14)" ( (binary_expression "puVar8 + -0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;" (assignment_expression "*(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT" (pointer_expression "*(undefined ***)(puVar8 + -0x18)" * (cast_expression "(undefined ***)(puVar8 + -0x18)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(puVar8 + -0x18)" ( (binary_expression "puVar8 + -0x18" identifier + number_literal) )))) = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "piVar5 = *(int **)(puVar8 + -0xc);" (assignment_expression "piVar5 = *(int **)(puVar8 + -0xc)" identifier = (pointer_expression "*(int **)(puVar8 + -0xc)" * (cast_expression "(int **)(puVar8 + -0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0xc)" ( (binary_expression "puVar8 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = *(int **)(puVar8 + -8);" (assignment_expression "piVar1 = *(int **)(puVar8 + -8)" identifier = (pointer_expression "*(int **)(puVar8 + -8)" * (cast_expression "(int **)(puVar8 + -8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -8)" ( (binary_expression "puVar8 + -8" identifier + number_literal) ))))) ;) (if_statement "if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }" if (parenthesized_expression "(piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2])" ( (binary_expression "piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]" (binary_expression "piVar5[3] == piVar1[3]" (subscript_expression "piVar5[3]" identifier [ number_literal ]) == (subscript_expression "piVar1[3]" identifier [ number_literal ])) && (binary_expression "piVar5[2] == piVar1[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) == (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }" { (return_statement "return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);" return (cast_expression "(uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" identifier (argument_list "((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" ( (call_expression "(int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uint)(piVar5[1] ^ piVar1[1]) >> 8)" ( (binary_expression "(uint)(piVar5[1] ^ piVar1[1]) >> 8" (call_expression "(uint)(piVar5[1] ^ piVar1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar5[1] ^ piVar1[1])" ( (binary_expression "piVar5[1] ^ piVar1[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) ^ (subscript_expression "piVar1[1]" identifier [ number_literal ])) ))) >> number_literal) ))) , (binary_expression "*piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0" (binary_expression "*piVar5 == *piVar1" (pointer_expression "*piVar5" * identifier) == (pointer_expression "*piVar1" * identifier)) && (binary_expression "(piVar5[1] ^ piVar1[1]) == 0" (parenthesized_expression "(piVar5[1] ^ piVar1[1])" ( (binary_expression "piVar5[1] ^ piVar1[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) ^ (subscript_expression "piVar1[1]" identifier [ number_literal ])) )) == number_literal)) )))) ;) })) (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" if (parenthesized_expression "((param_1 < 0) || (local_fe8[0] != param_1))" ( (binary_expression "(param_1 < 0) || (local_fe8[0] != param_1)" (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) || (parenthesized_expression "(local_fe8[0] != param_1)" ( (binary_expression "local_fe8[0] != param_1" (subscript_expression "local_fe8[0]" identifier [ number_literal ]) != identifier) ))) )) (compound_statement "{\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }" { (expression_statement "iVar3 = fchdir(param_1);" (assignment_expression "iVar3 = fchdir(param_1)" identifier = (call_expression "fchdir(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }" { (if_statement "if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" if (parenthesized_expression "(param_5 == 0x100)" ( (binary_expression "param_5 == 0x100" identifier == number_literal) )) (compound_statement "{\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }" { (expression_statement "local_ff8 = (uint *)lchown(param_2,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)lchown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)lchown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "lchown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }) (else_clause "else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" else (compound_statement "{\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" { (expression_statement "local_ff8 = (uint *)chown(param_2,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)chown(param_2,param_3,param_4)" identifier = (cast_expression "(uint *)chown(param_2,param_3,param_4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "chown(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier ))))) ;) }))) (if_statement "if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" if (parenthesized_expression "(local_ff8 == (uint *)0xffffffff)" ( (binary_expression "local_ff8 == (uint *)0xffffffff" identifier == (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "iVar4 = FUN_0001d2c0();" (assignment_expression "iVar4 = FUN_0001d2c0()" identifier = (call_expression "FUN_0001d2c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }" { (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              *piVar5 = iVar3;\n            }" { (expression_statement "*piVar5 = iVar3;" (assignment_expression "*piVar5 = iVar3" (pointer_expression "*piVar5" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) }) (else_clause "else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" else (compound_statement "{\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" { (expression_statement "iVar3 = FUN_0001d2c0();" (assignment_expression "iVar3 = FUN_0001d2c0()" identifier = (call_expression "FUN_0001d2c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }" { (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" identifier = identifier) ;) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })) }))) (expression_statement "__errno_location();" (call_expression "__errno_location()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar8 = &stack0xffffeff4;" (assignment_expression "puVar8 = &stack0xffffeff4" identifier = (pointer_expression "&stack0xffffeff4" & identifier)) ;) (expression_statement "FUN_0001d1d0();" (call_expression "FUN_0001d1d0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00017d11;" goto statement_identifier ;) })) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar5 = iVar3;" (assignment_expression "*piVar5 = iVar3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" else (compound_statement "{\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" { (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*piVar5 = 9;" (assignment_expression "*piVar5 = 9" (pointer_expression "*piVar5" * identifier) = number_literal) ;) }))) (goto_statement "goto LAB_00017ab0;" goto statement_identifier ;) })))) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (labeled_statement "LAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0001e480();\n  }" { (expression_statement "FUN_0001e480();" (call_expression "FUN_0001e480()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return puVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator * (abstract_pointer_declarator *)))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) && (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) ^ (subscript_expression IDENT [ LIT ])) ))) >> LIT) ))) , (binary_expression (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) && (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) ^ (subscript_expression IDENT [ LIT ])) )) == LIT)) )))) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) }) (else_clause else (compound_statement { (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)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (goto_statement goto statement_identifier ;) })))) (expression_statement (assignment_expression (pointer_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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint * FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)\n\n{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }\n  return puVar7;\n}" (type_identifier "uint") (pointer_declarator "* FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" (* "*") (function_declarator "FUN_000179c0(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" (identifier "FUN_000179c0") (parameter_list "(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "__uid_t param_3" (type_identifier "__uid_t") (identifier "param_3")) (, ",") (parameter_declaration "__gid_t param_4" (type_identifier "__gid_t") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")")))) (compound_statement "{\n  int *piVar1;\n  char *__file;\n  uint *puVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  uint uVar6;\n  uint *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  undefined1 auStack_ffc [4];\n  uint *local_ff8;\n  uint local_ff4;\n  uint *local_ff0;\n  int local_fe8 [2];\n  char local_fe0 [4032];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }\n  if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }\n  __file = (char *)FUN_0001ba00();\n  if (__file == (char *)0x0) goto LAB_00017ae8;\n  if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }\n  puVar2 = (uint *)__errno_location();\n  uVar6 = *puVar2;\n  puVar7 = local_ff8;\n  if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }\n  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;\n  if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }\n  *puVar2 = uVar6;\nLAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }\n  return puVar7;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *__file;" (primitive_type "char") (pointer_declarator "*__file" (* "*") (identifier "__file")) (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 auStack_ffc [4];" (type_identifier "undefined1") (array_declarator "auStack_ffc [4]" (identifier "auStack_ffc") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "uint *local_ff8;" (type_identifier "uint") (pointer_declarator "*local_ff8" (* "*") (identifier "local_ff8")) (; ";")) (declaration "uint local_ff4;" (type_identifier "uint") (identifier "local_ff4") (; ";")) (declaration "uint *local_ff0;" (type_identifier "uint") (pointer_declarator "*local_ff0" (* "*") (identifier "local_ff0")) (; ";")) (declaration "int local_fe8 [2];" (primitive_type "int") (array_declarator "local_fe8 [2]" (identifier "local_fe8") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "char local_fe0 [4032];" (primitive_type "char") (array_declarator "local_fe0 [4032]" (identifier "local_fe0") ([ "[") (number_literal "4032") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x179c9;" (assignment_expression "uStack_14 = 0x179c9" (identifier "uStack_14") (= "=") (number_literal "0x179c9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((param_5 & 0xfffffeff) != 0) {\n    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\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    piVar5 = __errno_location();\n    puVar7 = (uint *)0xffffffff;\n    *piVar5 = 0x16;\n    goto LAB_00017ab0;\n  }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" (identifier "puVar7") (= "=") (cast_expression "(uint *)0xffffffff" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (expression_statement "*piVar5 = 0x16;" (assignment_expression "*piVar5 = 0x16" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0x16")) (; ";")) (goto_statement "goto LAB_00017ab0;" (goto "goto") (statement_identifier "LAB_00017ab0") (; ";")) (} "}"))) (if_statement "if ((param_1 == -100) || (*param_2 == '/')) {\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }" (if "if") (parenthesized_expression "((param_1 == -100) || (*param_2 == '/'))" (( "(") (binary_expression "(param_1 == -100) || (*param_2 == '/')" (parenthesized_expression "(param_1 == -100)" (( "(") (binary_expression "param_1 == -100" (identifier "param_1") (== "==") (number_literal "-100")) () ")")) (|| "||") (parenthesized_expression "(*param_2 == '/')" (( "(") (binary_expression "*param_2 == '/'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }\n    goto LAB_00017ab0;\n  }" ({ "{") (if_statement "if (param_5 == 0x100) {\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }\n    else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" (if "if") (parenthesized_expression "(param_5 == 0x100)" (( "(") (binary_expression "param_5 == 0x100" (identifier "param_5") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n      puVar7 = (uint *)lchown(param_2,param_3,param_4);\n    }" ({ "{") (expression_statement "puVar7 = (uint *)lchown(param_2,param_3,param_4);" (assignment_expression "puVar7 = (uint *)lchown(param_2,param_3,param_4)" (identifier "puVar7") (= "=") (cast_expression "(uint *)lchown(param_2,param_3,param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "lchown(param_2,param_3,param_4)" (identifier "lchown") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" (else "else") (compound_statement "{\n      puVar7 = (uint *)chown(param_2,param_3,param_4);\n    }" ({ "{") (expression_statement "puVar7 = (uint *)chown(param_2,param_3,param_4);" (assignment_expression "puVar7 = (uint *)chown(param_2,param_3,param_4)" (identifier "puVar7") (= "=") (cast_expression "(uint *)chown(param_2,param_3,param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "chown(param_2,param_3,param_4)" (identifier "chown") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))))) (; ";")) (} "}")))) (goto_statement "goto LAB_00017ab0;" (goto "goto") (statement_identifier "LAB_00017ab0") (; ";")) (} "}"))) (expression_statement "__file = (char *)FUN_0001ba00();" (assignment_expression "__file = (char *)FUN_0001ba00()" (identifier "__file") (= "=") (cast_expression "(char *)FUN_0001ba00()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ba00()" (identifier "FUN_0001ba00") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__file == (char *)0x0) goto LAB_00017ae8;" (if "if") (parenthesized_expression "(__file == (char *)0x0)" (( "(") (binary_expression "__file == (char *)0x0" (identifier "__file") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00017ae8;" (goto "goto") (statement_identifier "LAB_00017ae8") (; ";"))) (if_statement "if (param_5 == 0x100) {\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }\n  else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" (if "if") (parenthesized_expression "(param_5 == 0x100)" (( "(") (binary_expression "param_5 == 0x100" (identifier "param_5") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n    local_ff8 = (uint *)lchown(__file,param_3,param_4);\n  }" ({ "{") (expression_statement "local_ff8 = (uint *)lchown(__file,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)lchown(__file,param_3,param_4)" (identifier "local_ff8") (= "=") (cast_expression "(uint *)lchown(__file,param_3,param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "lchown(__file,param_3,param_4)" (identifier "lchown") (argument_list "(__file,param_3,param_4)" (( "(") (identifier "__file") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" (else "else") (compound_statement "{\n    local_ff8 = (uint *)chown(__file,param_3,param_4);\n  }" ({ "{") (expression_statement "local_ff8 = (uint *)chown(__file,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)chown(__file,param_3,param_4)" (identifier "local_ff8") (= "=") (cast_expression "(uint *)chown(__file,param_3,param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "chown(__file,param_3,param_4)" (identifier "chown") (argument_list "(__file,param_3,param_4)" (( "(") (identifier "__file") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))))) (; ";")) (} "}")))) (expression_statement "puVar2 = (uint *)__errno_location();" (assignment_expression "puVar2 = (uint *)__errno_location()" (identifier "puVar2") (= "=") (cast_expression "(uint *)__errno_location()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar6 = *puVar2;" (assignment_expression "uVar6 = *puVar2" (identifier "uVar6") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" (identifier "puVar7") (= "=") (identifier "local_ff8")) (; ";")) (if_statement "if (__file != local_fe0) {\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }" (if "if") (parenthesized_expression "(__file != local_fe0)" (( "(") (binary_expression "__file != local_fe0" (identifier "__file") (!= "!=") (identifier "local_fe0")) () ")")) (compound_statement "{\n    local_ff0 = local_ff8;\n    local_ff8 = puVar2;\n    local_ff4 = *puVar2;\n    free(__file);\n    puVar2 = local_ff8;\n    uVar6 = local_ff4;\n    puVar7 = local_ff0;\n  }" ({ "{") (expression_statement "local_ff0 = local_ff8;" (assignment_expression "local_ff0 = local_ff8" (identifier "local_ff0") (= "=") (identifier "local_ff8")) (; ";")) (expression_statement "local_ff8 = puVar2;" (assignment_expression "local_ff8 = puVar2" (identifier "local_ff8") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "local_ff4 = *puVar2;" (assignment_expression "local_ff4 = *puVar2" (identifier "local_ff4") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "free(__file);" (call_expression "free(__file)" (identifier "free") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (expression_statement "puVar2 = local_ff8;" (assignment_expression "puVar2 = local_ff8" (identifier "puVar2") (= "=") (identifier "local_ff8")) (; ";")) (expression_statement "uVar6 = local_ff4;" (assignment_expression "uVar6 = local_ff4" (identifier "uVar6") (= "=") (identifier "local_ff4")) (; ";")) (expression_statement "puVar7 = local_ff0;" (assignment_expression "puVar7 = local_ff0" (identifier "puVar7") (= "=") (identifier "local_ff0")) (; ";")) (} "}"))) (if_statement "if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;" (if "if") (parenthesized_expression "(puVar7 != (uint *)0xffffffff)" (( "(") (binary_expression "puVar7 != (uint *)0xffffffff" (identifier "puVar7") (!= "!=") (cast_expression "(uint *)0xffffffff" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) () ")")) (goto_statement "goto LAB_00017ab0;" (goto "goto") (statement_identifier "LAB_00017ab0") (; ";"))) (if_statement "if (uVar6 < 0x15) {\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }\n  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" (if "if") (parenthesized_expression "(uVar6 < 0x15)" (( "(") (binary_expression "uVar6 < 0x15" (identifier "uVar6") (< "<") (number_literal "0x15")) () ")")) (compound_statement "{\n    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;\n  }" ({ "{") (if_statement "if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;" (if "if") (parenthesized_expression "((0x102006U >> (uVar6 & 0x1f) & 1) != 0)" (( "(") (binary_expression "(0x102006U >> (uVar6 & 0x1f) & 1) != 0" (parenthesized_expression "(0x102006U >> (uVar6 & 0x1f) & 1)" (( "(") (binary_expression "0x102006U >> (uVar6 & 0x1f) & 1" (binary_expression "0x102006U >> (uVar6 & 0x1f)" (number_literal "0x102006U") (>> ">>") (parenthesized_expression "(uVar6 & 0x1f)" (( "(") (binary_expression "uVar6 & 0x1f" (identifier "uVar6") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017ae8;" (goto "goto") (statement_identifier "LAB_00017ae8") (; ";"))) (} "}")) (else_clause "else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" (else "else") (if_statement "if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" (if "if") (parenthesized_expression "((uVar6 == 0x26) || (uVar6 == 0x5f))" (( "(") (binary_expression "(uVar6 == 0x26) || (uVar6 == 0x5f)" (parenthesized_expression "(uVar6 == 0x26)" (( "(") (binary_expression "uVar6 == 0x26" (identifier "uVar6") (== "==") (number_literal "0x26")) () ")")) (|| "||") (parenthesized_expression "(uVar6 == 0x5f)" (( "(") (binary_expression "uVar6 == 0x5f" (identifier "uVar6") (== "==") (number_literal "0x5f")) () ")"))) () ")")) (compound_statement "{\nLAB_00017ae8:\n    puVar8 = auStack_ffc;\n    iVar3 = FUN_0001d250();\n    if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }\n    if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }\n    goto LAB_00017ab0;\n  }" ({ "{") (labeled_statement "LAB_00017ae8:\n    puVar8 = auStack_ffc;" (statement_identifier "LAB_00017ae8") (: ":") (expression_statement "puVar8 = auStack_ffc;" (assignment_expression "puVar8 = auStack_ffc" (identifier "puVar8") (= "=") (identifier "auStack_ffc")) (; ";"))) (expression_statement "iVar3 = FUN_0001d250();" (assignment_expression "iVar3 = FUN_0001d250()" (identifier "iVar3") (= "=") (call_expression "FUN_0001d250()" (identifier "FUN_0001d250") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;\n      piVar5 = __errno_location();\n      *(int *)(puVar8 + -0x10) = *piVar5;\n      *(code **)(puVar8 + -0x14) = FUN_00017d20;\n      FUN_0001d190();\n      *(int **)(puVar8 + -0x14) = local_fe8;\n      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;\n      piVar5 = *(int **)(puVar8 + -0xc);\n      piVar1 = *(int **)(puVar8 + -8);\n      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }\n      return (uint *)0x0;\n    }" ({ "{") (labeled_statement "LAB_00017d11:\n      *(undefined4 *)(puVar8 + -4) = 0x17d16;" (statement_identifier "LAB_00017d11") (: ":") (expression_statement "*(undefined4 *)(puVar8 + -4) = 0x17d16;" (assignment_expression "*(undefined4 *)(puVar8 + -4) = 0x17d16" (pointer_expression "*(undefined4 *)(puVar8 + -4)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -4)" (( "(") (binary_expression "puVar8 + -4" (identifier "puVar8") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0x17d16")) (; ";"))) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(puVar8 + -0x10) = *piVar5;" (assignment_expression "*(int *)(puVar8 + -0x10) = *piVar5" (pointer_expression "*(int *)(puVar8 + -0x10)" (* "*") (cast_expression "(int *)(puVar8 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x10)" (( "(") (binary_expression "puVar8 + -0x10" (identifier "puVar8") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "*(code **)(puVar8 + -0x14) = FUN_00017d20;" (assignment_expression "*(code **)(puVar8 + -0x14) = FUN_00017d20" (pointer_expression "*(code **)(puVar8 + -0x14)" (* "*") (cast_expression "(code **)(puVar8 + -0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -0x14)" (( "(") (binary_expression "puVar8 + -0x14" (identifier "puVar8") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (identifier "FUN_00017d20")) (; ";")) (expression_statement "FUN_0001d190();" (call_expression "FUN_0001d190()" (identifier "FUN_0001d190") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int **)(puVar8 + -0x14) = local_fe8;" (assignment_expression "*(int **)(puVar8 + -0x14) = local_fe8" (pointer_expression "*(int **)(puVar8 + -0x14)" (* "*") (cast_expression "(int **)(puVar8 + -0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -0x14)" (( "(") (binary_expression "puVar8 + -0x14" (identifier "puVar8") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (identifier "local_fe8")) (; ";")) (expression_statement "*(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;" (assignment_expression "*(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT" (pointer_expression "*(undefined ***)(puVar8 + -0x18)" (* "*") (cast_expression "(undefined ***)(puVar8 + -0x18)" (( "(") (type_descriptor "undefined ***" (type_identifier "undefined") (abstract_pointer_declarator "***" (* "*") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*"))))) () ")") (parenthesized_expression "(puVar8 + -0x18)" (( "(") (binary_expression "puVar8 + -0x18" (identifier "puVar8") (+ "+") (number_literal "-0x18")) () ")")))) (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (expression_statement "piVar5 = *(int **)(puVar8 + -0xc);" (assignment_expression "piVar5 = *(int **)(puVar8 + -0xc)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(puVar8 + -0xc)" (* "*") (cast_expression "(int **)(puVar8 + -0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -0xc)" (( "(") (binary_expression "puVar8 + -0xc" (identifier "puVar8") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "piVar1 = *(int **)(puVar8 + -8);" (assignment_expression "piVar1 = *(int **)(puVar8 + -8)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(puVar8 + -8)" (* "*") (cast_expression "(int **)(puVar8 + -8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + -8)" (( "(") (binary_expression "puVar8 + -8" (identifier "puVar8") (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (if_statement "if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }" (if "if") (parenthesized_expression "(piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2])" (( "(") (binary_expression "piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]" (binary_expression "piVar5[3] == piVar1[3]" (subscript_expression "piVar5[3]" (identifier "piVar5") ([ "[") (number_literal "3") (] "]")) (== "==") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (&& "&&") (binary_expression "piVar5[2] == piVar1[2]" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (== "==") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);\n      }" ({ "{") (return_statement "return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);" (return "return") (cast_expression "(uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" (identifier "CONCAT31") (argument_list "((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),\n                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0)" (( "(") (call_expression "(int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8)" (parenthesized_expression "(int3)" (( "(") (identifier "int3") () ")")) (argument_list "((uint)(piVar5[1] ^ piVar1[1]) >> 8)" (( "(") (binary_expression "(uint)(piVar5[1] ^ piVar1[1]) >> 8" (call_expression "(uint)(piVar5[1] ^ piVar1[1])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar5[1] ^ piVar1[1])" (( "(") (binary_expression "piVar5[1] ^ piVar1[1]" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (^ "^") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) () ")"))) (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "*piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0" (binary_expression "*piVar5 == *piVar1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (== "==") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (&& "&&") (binary_expression "(piVar5[1] ^ piVar1[1]) == 0" (parenthesized_expression "(piVar5[1] ^ piVar1[1])" (( "(") (binary_expression "piVar5[1] ^ piVar1[1]" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (^ "^") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) () ")")) (== "==") (number_literal "0"))) () ")")))) (; ";")) (} "}"))) (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if ((param_1 < 0) || (local_fe8[0] != param_1)) {\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }\n    else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" (if "if") (parenthesized_expression "((param_1 < 0) || (local_fe8[0] != param_1))" (( "(") (binary_expression "(param_1 < 0) || (local_fe8[0] != param_1)" (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(local_fe8[0] != param_1)" (( "(") (binary_expression "local_fe8[0] != param_1" (subscript_expression "local_fe8[0]" (identifier "local_fe8") ([ "[") (number_literal "0") (] "]")) (!= "!=") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n      iVar3 = fchdir(param_1);\n      if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      FUN_0001d310();\n      *piVar5 = iVar3;\n      puVar7 = (uint *)0xffffffff;\n    }" ({ "{") (expression_statement "iVar3 = fchdir(param_1);" (assignment_expression "iVar3 = fchdir(param_1)" (identifier "iVar3") (= "=") (call_expression "fchdir(param_1)" (identifier "fchdir") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }\n        if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }\n        __errno_location();\n        puVar8 = &stack0xffffeff4;\n        FUN_0001d1d0();\n        goto LAB_00017d11;\n      }" ({ "{") (if_statement "if (param_5 == 0x100) {\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }\n        else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" (if "if") (parenthesized_expression "(param_5 == 0x100)" (( "(") (binary_expression "param_5 == 0x100" (identifier "param_5") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n          local_ff8 = (uint *)lchown(param_2,param_3,param_4);\n        }" ({ "{") (expression_statement "local_ff8 = (uint *)lchown(param_2,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)lchown(param_2,param_3,param_4)" (identifier "local_ff8") (= "=") (cast_expression "(uint *)lchown(param_2,param_3,param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "lchown(param_2,param_3,param_4)" (identifier "lchown") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" (else "else") (compound_statement "{\n          local_ff8 = (uint *)chown(param_2,param_3,param_4);\n        }" ({ "{") (expression_statement "local_ff8 = (uint *)chown(param_2,param_3,param_4);" (assignment_expression "local_ff8 = (uint *)chown(param_2,param_3,param_4)" (identifier "local_ff8") (= "=") (cast_expression "(uint *)chown(param_2,param_3,param_4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "chown(param_2,param_3,param_4)" (identifier "chown") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))))) (; ";")) (} "}")))) (if_statement "if (local_ff8 == (uint *)0xffffffff) {\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }\n        else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" (if "if") (parenthesized_expression "(local_ff8 == (uint *)0xffffffff)" (( "(") (binary_expression "local_ff8 == (uint *)0xffffffff" (identifier "local_ff8") (== "==") (cast_expression "(uint *)0xffffffff" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) () ")")) (compound_statement "{\n          piVar5 = __errno_location();\n          iVar3 = *piVar5;\n          iVar4 = FUN_0001d2c0();\n          if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }\n        }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" (identifier "iVar3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "iVar4 = FUN_0001d2c0();" (assignment_expression "iVar4 = FUN_0001d2c0()" (identifier "iVar4") (= "=") (call_expression "FUN_0001d2c0()" (identifier "FUN_0001d2c0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }\n            goto LAB_00017ab0;\n          }" ({ "{") (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" (identifier "FUN_0001d310") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" (identifier "puVar7") (= "=") (identifier "local_ff8")) (; ";")) (if_statement "if (iVar3 != 0) {\n              *piVar5 = iVar3;\n            }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              *piVar5 = iVar3;\n            }" ({ "{") (expression_statement "*piVar5 = iVar3;" (assignment_expression "*piVar5 = iVar3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (goto_statement "goto LAB_00017ab0;" (goto "goto") (statement_identifier "LAB_00017ab0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" (else "else") (compound_statement "{\n          iVar3 = FUN_0001d2c0();\n          if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }\n        }" ({ "{") (expression_statement "iVar3 = FUN_0001d2c0();" (assignment_expression "iVar3 = FUN_0001d2c0()" (identifier "iVar3") (= "=") (call_expression "FUN_0001d2c0()" (identifier "FUN_0001d2c0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_0001d310();\n            puVar7 = local_ff8;\n            goto LAB_00017ab0;\n          }" ({ "{") (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" (identifier "FUN_0001d310") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar7 = local_ff8;" (assignment_expression "puVar7 = local_ff8" (identifier "puVar7") (= "=") (identifier "local_ff8")) (; ";")) (goto_statement "goto LAB_00017ab0;" (goto "goto") (statement_identifier "LAB_00017ab0") (; ";")) (} "}"))) (} "}")))) (expression_statement "__errno_location();" (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar8 = &stack0xffffeff4;" (assignment_expression "puVar8 = &stack0xffffeff4" (identifier "puVar8") (= "=") (pointer_expression "&stack0xffffeff4" (& "&") (identifier "stack0xffffeff4"))) (; ";")) (expression_statement "FUN_0001d1d0();" (call_expression "FUN_0001d1d0()" (identifier "FUN_0001d1d0") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_00017d11;" (goto "goto") (statement_identifier "LAB_00017d11") (; ";")) (} "}"))) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" (identifier "iVar3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" (identifier "FUN_0001d310") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*piVar5 = iVar3;" (assignment_expression "*piVar5 = iVar3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" (identifier "puVar7") (= "=") (cast_expression "(uint *)0xffffffff" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (} "}")) (else_clause "else {\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" (else "else") (compound_statement "{\n      FUN_0001d310();\n      piVar5 = __errno_location();\n      puVar7 = (uint *)0xffffffff;\n      *piVar5 = 9;\n    }" ({ "{") (expression_statement "FUN_0001d310();" (call_expression "FUN_0001d310()" (identifier "FUN_0001d310") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar7 = (uint *)0xffffffff;" (assignment_expression "puVar7 = (uint *)0xffffffff" (identifier "puVar7") (= "=") (cast_expression "(uint *)0xffffffff" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (expression_statement "*piVar5 = 9;" (assignment_expression "*piVar5 = 9" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "9")) (; ";")) (} "}")))) (goto_statement "goto LAB_00017ab0;" (goto "goto") (statement_identifier "LAB_00017ab0") (; ";")) (} "}"))))) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar6")) (; ";")) (labeled_statement "LAB_00017ab0:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }" (statement_identifier "LAB_00017ab0") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001e480();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0001e480();\n  }" ({ "{") (expression_statement "FUN_0001e480();" (call_expression "FUN_0001e480()" (identifier "FUN_0001e480") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}")))

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

int function_1(int var_4,char *file,type_1 owner,type_2 group,int var_2)

{
  int var_21;
  type_3 var_12;
  char *var_8;
  int var_11;
  type_3 *puVar4;
  int var_19;
  int var_17;
  int *piVar7;
  int var_1;
  type_4 type_4;
  char var_9 [4032];
  
  var_21 = *(int *)(var_1 + 0x14);
  if ((var_2 & 0xfffffeffU) != 0) {
    piVar7 = var_3();
    var_11 = -1;
    *piVar7 = 0x16;
    goto LAB_00017ab0;
  }
  if ((var_4 == -100) || (*file == '/')) {
    if (var_2 == 0x100) {
      var_11 = var_5(file,owner,group);
    }
    else {
      var_11 = var_6(file,owner,group);
    }
    goto LAB_00017ab0;
  }
  var_8 = var_7(var_9,var_4,file);
  if (var_8 == (char *)0x0) goto LAB_00017ae8;
  if (var_2 == 0x100) {
    var_11 = var_5(var_8,owner,group);
  }
  else {
    var_11 = var_6(var_8,owner,group);
  }
  puVar4 = (type_3 *)var_3();
  var_12 = *puVar4;
  if (var_8 != var_9) {
    var_10(var_8);
  }
  if (var_11 != -1) goto LAB_00017ab0;
  if (var_12 < 0x15) {
    if ((0x102006U >> (var_12 & 0x1f) & 1) != 0) goto LAB_00017ae8;
  }
  else if ((var_12 == 0x26) || (var_12 == 0x5f)) {
LAB_00017ae8:
    var_11 = var_13(&type_4);
    if (var_11 != 0) {
      piVar7 = var_3();
                    /* WARNING: Subroutine does not return */
      var_14(*piVar7);
    }
    if ((var_4 < 0) || (type_4.desc != var_4)) {
      var_11 = var_15(var_4);
      if (var_11 == 0) {
        if (var_2 == 0x100) {
          var_11 = var_5(file,owner,group);
        }
        else {
          var_11 = var_6(file,owner,group);
        }
        if (var_11 == -1) {
          piVar7 = var_3();
          var_19 = *piVar7;
          var_17 = var_16(&type_4);
          if (var_17 != 0) goto LAB_00017d02;
          var_18(&type_4);
          if (var_19 != 0) {
            *piVar7 = var_19;
          }
        }
        else {
          var_19 = var_16(&type_4);
          if (var_19 != 0) {
LAB_00017d02:
            piVar7 = var_3();
                    /* WARNING: Subroutine does not return */
            var_20(*piVar7);
          }
          var_18(&type_4);
        }
      }
      else {
        piVar7 = var_3();
        var_11 = *piVar7;
        var_18(&type_4);
        *piVar7 = var_11;
        var_11 = -1;
      }
    }
    else {
      var_18(&type_4);
      piVar7 = var_3();
      var_11 = -1;
      *piVar7 = 9;
    }
    goto LAB_00017ab0;
  }
  *puVar4 = var_12;
LAB_00017ab0:
  if (var_21 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_22();
  }
  return var_11;
}


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

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

uint * MASKED(int param_1,char *param_2,__uid_t param_3,__gid_t param_4,uint param_5)

{
  int *piVar1;
  char *__file;
  uint *puVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  uint uVar6;
  uint *puVar7;
  undefined1 *puVar8;
  int in_GS_OFFSET;
  undefined1 auStack_ffc [4];
  uint *local_ff8;
  uint local_ff4;
  uint *local_ff0;
  int local_fe8 [2];
  char local_fe0 [4032];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x179c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_5 & 0xfffffeff) != 0) {
    piVar5 = __errno_location();
    puVar7 = (uint *)0xffffffff;
    *piVar5 = 0x16;
    goto LAB_00017ab0;
  }
  if ((param_1 == -100) || (*param_2 == '/')) {
    if (param_5 == 0x100) {
      puVar7 = (uint *)lchown(param_2,param_3,param_4);
    }
    else {
      puVar7 = (uint *)chown(param_2,param_3,param_4);
    }
    goto LAB_00017ab0;
  }
  __file = (char *)FUN_0001ba00();
  if (__file == (char *)0x0) goto LAB_00017ae8;
  if (param_5 == 0x100) {
    local_ff8 = (uint *)lchown(__file,param_3,param_4);
  }
  else {
    local_ff8 = (uint *)chown(__file,param_3,param_4);
  }
  puVar2 = (uint *)__errno_location();
  uVar6 = *puVar2;
  puVar7 = local_ff8;
  if (__file != local_fe0) {
    local_ff0 = local_ff8;
    local_ff8 = puVar2;
    local_ff4 = *puVar2;
    free(__file);
    puVar2 = local_ff8;
    uVar6 = local_ff4;
    puVar7 = local_ff0;
  }
  if (puVar7 != (uint *)0xffffffff) goto LAB_00017ab0;
  if (uVar6 < 0x15) {
    if ((0x102006U >> (uVar6 & 0x1f) & 1) != 0) goto LAB_00017ae8;
  }
  else if ((uVar6 == 0x26) || (uVar6 == 0x5f)) {
LAB_00017ae8:
    puVar8 = auStack_ffc;
    iVar3 = FUN_0001d250();
    if (iVar3 != 0) {
LAB_00017d11:
      *(undefined4 *)(puVar8 + -4) = 0x17d16;
      piVar5 = __errno_location();
      *(int *)(puVar8 + -0x10) = *piVar5;
      *(code **)(puVar8 + -0x14) = FUN_00017d20;
      FUN_0001d190();
      *(int **)(puVar8 + -0x14) = local_fe8;
      *(undefined ***)(puVar8 + -0x18) = &__DT_PLTGOT;
      piVar5 = *(int **)(puVar8 + -0xc);
      piVar1 = *(int **)(puVar8 + -8);
      if (piVar5[3] == piVar1[3] && piVar5[2] == piVar1[2]) {
        return (uint *)CONCAT31((int3)((uint)(piVar5[1] ^ piVar1[1]) >> 8),
                                *piVar5 == *piVar1 && (piVar5[1] ^ piVar1[1]) == 0);
      }
      return (uint *)0x0;
    }
    if ((param_1 < 0) || (local_fe8[0] != param_1)) {
      iVar3 = fchdir(param_1);
      if (iVar3 == 0) {
        if (param_5 == 0x100) {
          local_ff8 = (uint *)lchown(param_2,param_3,param_4);
        }
        else {
          local_ff8 = (uint *)chown(param_2,param_3,param_4);
        }
        if (local_ff8 == (uint *)0xffffffff) {
          piVar5 = __errno_location();
          iVar3 = *piVar5;
          iVar4 = FUN_0001d2c0();
          if (iVar4 == 0) {
            FUN_0001d310();
            puVar7 = local_ff8;
            if (iVar3 != 0) {
              *piVar5 = iVar3;
            }
            goto LAB_00017ab0;
          }
        }
        else {
          iVar3 = FUN_0001d2c0();
          if (iVar3 == 0) {
            FUN_0001d310();
            puVar7 = local_ff8;
            goto LAB_00017ab0;
          }
        }
        __errno_location();
        puVar8 = &stack0xffffeff4;
        FUN_0001d1d0();
        goto LAB_00017d11;
      }
      piVar5 = __errno_location();
      iVar3 = *piVar5;
      FUN_0001d310();
      *piVar5 = iVar3;
      puVar7 = (uint *)0xffffffff;
    }
    else {
      FUN_0001d310();
      piVar5 = __errno_location();
      puVar7 = (uint *)0xffffffff;
      *piVar5 = 9;
    }
    goto LAB_00017ab0;
  }
  *puVar2 = uVar6;
LAB_00017ab0:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0001e480();
  }
  return puVar7;
}

