
int renameatu(int fd1,char *src,int fd2,char *dst,uint flags)

{
  char cVar1;
  long lVar2;
  bool bVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  ulong uVar7;
  ulong uVar8;
  char *pcVar9;
  long in_FS_OFFSET;
  bool bVar10;
  byte bVar11;
  stat src_st;
  stat dst_st;
  
  bVar11 = 0;
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  iVar4 = renameat2();
  if (iVar4 < 0) {
    piVar6 = __errno_location();
    iVar5 = *piVar6;
    bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;
    bVar3 = bVar10 && iVar5 != 0x5f;
    if (!bVar10 || iVar5 == 0x5f) {
      if (flags != 0) {
        if ((flags & 0xfffffffe) != 0) {
          *piVar6 = 0x5f;
          iVar4 = -1;
          goto LAB_00112778;
        }
        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);
        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {
          *piVar6 = 0x11;
          iVar4 = -1;
          goto LAB_00112778;
        }
        iVar4 = -1;
        if (*piVar6 != 2) goto LAB_00112778;
        bVar3 = true;
      }
      uVar7 = 0xffffffffffffffff;
      pcVar9 = src;
      do {
        if (uVar7 == 0) break;
        uVar7 = uVar7 - 1;
        cVar1 = *pcVar9;
        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;
      } while (cVar1 != '\0');
      uVar8 = 0xffffffffffffffff;
      pcVar9 = dst;
      do {
        if (uVar8 == 0) break;
        uVar8 = uVar8 - 1;
        cVar1 = *pcVar9;
        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;
      } while (cVar1 != '\0');
      if ((~uVar7 == 1) || (~uVar8 == 1)) {
        iVar4 = renameat(fd1,src,fd2,dst);
      }
      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {
        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);
        iVar4 = -1;
        if (iVar5 == 0) {
          if (bVar3) {
            if ((src_st.st_mode & 0xf000) != 0x4000) {
              *piVar6 = 2;
              goto LAB_00112778;
            }
          }
          else {
            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);
            if (iVar4 == 0) {
              if ((dst_st.st_mode & 0xf000) != 0x4000) {
                *piVar6 = 0x14;
                iVar4 = -1;
                goto LAB_00112778;
              }
              if ((src_st.st_mode & 0xf000) != 0x4000) {
                *piVar6 = 0x15;
                iVar4 = -1;
                goto LAB_00112778;
              }
            }
            else {
              iVar4 = -1;
              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;
            }
          }
          iVar4 = renameat(fd1,src,fd2,dst);
        }
      }
      else {
        iVar4 = renameat(fd1,src,fd2,dst);
      }
    }
  }
LAB_00112778:
  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar4;
}



int FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)

{
  char cVar1;
  bool bVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  ulong uVar6;
  ulong uVar7;
  char *pcVar8;
  long in_FS_OFFSET;
  bool bVar9;
  byte bVar10;
  stat local_168;
  stat local_d8;
  long local_40;
  
  bVar10 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar3 = renameat2();
  if (iVar3 < 0) {
    piVar5 = __errno_location();
    iVar4 = *piVar5;
    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;
    bVar2 = bVar9 && iVar4 != 0x5f;
    if (!bVar9 || iVar4 == 0x5f) {
      if (param_5 != 0) {
        if ((param_5 & 0xfffffffe) != 0) {
          *piVar5 = 0x5f;
          iVar3 = -1;
          goto LAB_00112778;
        }
        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);
        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {
          *piVar5 = 0x11;
          iVar3 = -1;
          goto LAB_00112778;
        }
        iVar3 = -1;
        if (*piVar5 != 2) goto LAB_00112778;
        bVar2 = true;
      }
      uVar6 = 0xffffffffffffffff;
      pcVar8 = param_2;
      do {
        if (uVar6 == 0) break;
        uVar6 = uVar6 - 1;
        cVar1 = *pcVar8;
        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;
      } while (cVar1 != '\0');
      uVar7 = 0xffffffffffffffff;
      pcVar8 = param_4;
      do {
        if (uVar7 == 0) break;
        uVar7 = uVar7 - 1;
        cVar1 = *pcVar8;
        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;
      } while (cVar1 != '\0');
      if ((~uVar6 == 1) || (~uVar7 == 1)) {
        iVar3 = renameat(param_1,param_2,param_3,param_4);
      }
      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {
        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);
        iVar3 = -1;
        if (iVar4 == 0) {
          if (bVar2) {
            if ((local_168.st_mode & 0xf000) != 0x4000) {
              *piVar5 = 2;
              goto LAB_00112778;
            }
          }
          else {
            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);
            if (iVar3 == 0) {
              if ((local_d8.st_mode & 0xf000) != 0x4000) {
                *piVar5 = 0x14;
                iVar3 = -1;
                goto LAB_00112778;
              }
              if ((local_168.st_mode & 0xf000) != 0x4000) {
                *piVar5 = 0x15;
                iVar3 = -1;
                goto LAB_00112778;
              }
            }
            else {
              iVar3 = -1;
              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;
            }
          }
          iVar3 = renameat(param_1,param_2,param_3,param_4);
        }
      }
      else {
        iVar3 = renameat(param_1,param_2,param_3,param_4);
      }
    }
  }
LAB_00112778:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar3;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x148
MOV dword ptr [RSP + 0x8],EDI
MOV RBP,RSI
MOV R14D,EDX
MOV R12,RCX
MOV R13D,R8D
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x138],RAX
XOR EAX,EAX
CALL 0x001046d0
MOV EBX,EAX
TEST EAX,EAX
JNS 0x00112778
CALL 0x001040b0
MOV R15,RAX
MOV EAX,dword ptr [RAX]
LEA EDX,[RAX + -0x16]
TEST EDX,0xffffffef
SETNZ DL
CMP EAX,0x5f
SETNZ AL
AND DL,AL
MOV byte ptr [RSP + 0xf],DL
JNZ 0x00112778
TEST R13D,R13D
JZ 0x0011270d
TEST R13D,0xfffffffe
JNZ 0x0011276c
LEA RCX,[RSP + 0xa0]
MOV R8D,0x100
MOV RDX,R12
MOV ESI,R14D
MOV EDI,0x1
CALL 0x00104340
TEST EAX,EAX
JZ 0x001127a3
MOV EAX,dword ptr [R15]
CMP EAX,0x4b
JZ 0x001127a3
MOV EBX,0xffffffff
CMP EAX,0x2
JNZ 0x00112778
MOV byte ptr [RSP + 0xf],0x1
MOV RSI,-0x1
MOV EAX,0x0
MOV RCX,RSI
MOV RDI,RBP
SCASB.REPNE RDI
NOT RCX
MOV RDX,RCX
MOV RCX,RSI
MOV RDI,R12
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
ADD RAX,RSI
LEA RCX,[RDX + -0x1]
CMP RDX,0x1
JZ 0x001127b1
TEST RAX,RAX
JZ 0x001127b1
CMP byte ptr [RBP + RCX*0x1 + -0x1],0x2f
JZ 0x001127c7
CMP byte ptr [R12 + RAX*0x1 + -0x1],0x2f
JZ 0x001127c7
MOV RCX,R12
MOV EDX,R14D
MOV RSI,RBP
MOV EDI,dword ptr [RSP + 0x8]
CALL 0x00104910
MOV EBX,EAX
JMP 0x00112778
MOV dword ptr [R15],0x5f
MOV EBX,0xffffffff
MOV EAX,EBX
MOV RSI,qword ptr [RSP + 0x138]
XOR RSI,qword ptr FS:[0x28]
JNZ 0x001128b8
ADD RSP,0x148
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV dword ptr [R15],0x11
MOV EBX,0xffffffff
JMP 0x00112778
MOV RCX,R12
MOV EDX,R14D
MOV RSI,RBP
MOV EDI,dword ptr [RSP + 0x8]
CALL 0x00104910
MOV EBX,EAX
JMP 0x00112778
LEA RCX,[RSP + 0x10]
MOV R8D,0x100
MOV RDX,RBP
MOV ESI,dword ptr [RSP + 0x8]
MOV EDI,0x1
CALL 0x00104340
MOV EBX,0xffffffff
TEST EAX,EAX
JNZ 0x00112778
CMP byte ptr [RSP + 0xf],0x0
JZ 0x00112828
MOV EAX,dword ptr [RSP + 0x28]
AND EAX,0xf000
CMP EAX,0x4000
JNZ 0x0011281c
MOV RCX,R12
MOV EDX,R14D
MOV RSI,RBP
MOV EDI,dword ptr [RSP + 0x8]
CALL 0x00104910
MOV EBX,EAX
JMP 0x00112778
MOV dword ptr [R15],0x2
JMP 0x00112778
LEA RCX,[RSP + 0xa0]
MOV R8D,0x100
MOV RDX,R12
MOV ESI,R14D
MOV EDI,0x1
CALL 0x00104340
TEST EAX,EAX
JZ 0x0011286f
MOV EBX,0xffffffff
CMP dword ptr [R15],0x2
JNZ 0x00112778
MOV EAX,dword ptr [RSP + 0x28]
AND EAX,0xf000
CMP EAX,0x4000
JNZ 0x00112778
JMP 0x00112803
MOV EAX,dword ptr [RSP + 0xb8]
AND EAX,0xf000
CMP EAX,0x4000
JNZ 0x001128a7
MOV EAX,dword ptr [RSP + 0x28]
AND EAX,0xf000
CMP EAX,0x4000
JZ 0x00112803
MOV dword ptr [R15],0x15
MOV EBX,0xffffffff
JMP 0x00112778
MOV dword ptr [R15],0x14
MOV EBX,0xffffffff
JMP 0x00112778
CALL 0x001042e0
(translation_unit "int FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)" identifier (parameter_list "(int param_1,char *param_2,int param_3,char *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 "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (declaration "stat local_168;" type_identifier identifier ;) (declaration "stat local_d8;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = renameat2();" (assignment_expression "iVar3 = renameat2()" identifier = (call_expression "renameat2()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;" (assignment_expression "bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0" identifier = (binary_expression "(iVar4 - 0x16U & 0xffffffef) != 0" (parenthesized_expression "(iVar4 - 0x16U & 0xffffffef)" ( (binary_expression "iVar4 - 0x16U & 0xffffffef" (binary_expression "iVar4 - 0x16U" identifier - number_literal) & number_literal) )) != number_literal)) ;) (expression_statement "bVar2 = bVar9 && iVar4 != 0x5f;" (assignment_expression "bVar2 = bVar9 && iVar4 != 0x5f" identifier = (binary_expression "bVar9 && iVar4 != 0x5f" identifier && (binary_expression "iVar4 != 0x5f" identifier != number_literal))) ;) (if_statement "if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }" if (parenthesized_expression "(!bVar9 || iVar4 == 0x5f)" ( (binary_expression "!bVar9 || iVar4 == 0x5f" (unary_expression "!bVar9" ! identifier) || (binary_expression "iVar4 == 0x5f" identifier == number_literal)) )) (compound_statement "{\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }" { (if_statement "if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }" { (if_statement "if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" if (parenthesized_expression "((param_5 & 0xfffffffe) != 0)" ( (binary_expression "(param_5 & 0xfffffffe) != 0" (parenthesized_expression "(param_5 & 0xfffffffe)" ( (binary_expression "param_5 & 0xfffffffe" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" { (expression_statement "*piVar5 = 0x5f;" (assignment_expression "*piVar5 = 0x5f" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (expression_statement "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);" (assignment_expression "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier = (call_expression "__fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier (argument_list "(1,param_3,param_4,&local_d8,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_d8" & identifier) , number_literal )))) ;) (if_statement "if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" if (parenthesized_expression "((iVar3 == 0) || (*piVar5 == 0x4b))" ( (binary_expression "(iVar3 == 0) || (*piVar5 == 0x4b)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(*piVar5 == 0x4b)" ( (binary_expression "*piVar5 == 0x4b" (pointer_expression "*piVar5" * identifier) == number_literal) ))) )) (compound_statement "{\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" { (expression_statement "*piVar5 = 0x11;" (assignment_expression "*piVar5 = 0x11" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (*piVar5 != 2) goto LAB_00112778;" if (parenthesized_expression "(*piVar5 != 2)" ( (binary_expression "*piVar5 != 2" (pointer_expression "*piVar5" * identifier) != number_literal) )) (goto_statement "goto LAB_00112778;" goto statement_identifier ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) })) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = param_2;" (assignment_expression "pcVar8 = param_2" identifier = identifier) ;) (do_statement "do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar7 = 0xffffffffffffffff;" (assignment_expression "uVar7 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = param_4;" (assignment_expression "pcVar8 = param_4" identifier = identifier) ;) (do_statement "do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      }" { (if_statement "if (uVar7 == 0) break;" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" if (parenthesized_expression "((~uVar6 == 1) || (~uVar7 == 1))" ( (binary_expression "(~uVar6 == 1) || (~uVar7 == 1)" (parenthesized_expression "(~uVar6 == 1)" ( (binary_expression "~uVar6 == 1" (unary_expression "~uVar6" ~ identifier) == number_literal) )) || (parenthesized_expression "(~uVar7 == 1)" ( (binary_expression "~uVar7 == 1" (unary_expression "~uVar7" ~ identifier) == number_literal) ))) )) (compound_statement "{\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" { (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" identifier = (call_expression "renameat(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) }) (else_clause "else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" else (if_statement "if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" if (parenthesized_expression "((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/'))" ( (binary_expression "(param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')" (parenthesized_expression "(param_2[~uVar6 - 2] == '/')" ( (binary_expression "param_2[~uVar6 - 2] == '/'" (subscript_expression "param_2[~uVar6 - 2]" identifier [ (binary_expression "~uVar6 - 2" (unary_expression "~uVar6" ~ identifier) - number_literal) ]) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(param_4[~uVar7 - 2] == '/')" ( (binary_expression "param_4[~uVar7 - 2] == '/'" (subscript_expression "param_4[~uVar7 - 2]" identifier [ (binary_expression "~uVar7 - 2" (unary_expression "~uVar7" ~ identifier) - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }" { (expression_statement "iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);" (assignment_expression "iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100)" identifier = (call_expression "__fxstatat(1,param_1,param_2,&local_168,0x100)" identifier (argument_list "(1,param_1,param_2,&local_168,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_168" & identifier) , number_literal )))) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }" { (if_statement "if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }" { (if_statement "if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }" if (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" ( (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }" { (expression_statement "*piVar5 = 2;" (assignment_expression "*piVar5 = 2" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) }) (else_clause "else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" else (compound_statement "{\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" { (expression_statement "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);" (assignment_expression "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier = (call_expression "__fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier (argument_list "(1,param_3,param_4,&local_d8,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_d8" & identifier) , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }" { (if_statement "if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" if (parenthesized_expression "((local_d8.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_d8.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_d8.st_mode & 0xf000)" ( (binary_expression "local_d8.st_mode & 0xf000" (field_expression "local_d8.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" { (expression_statement "*piVar5 = 0x14;" (assignment_expression "*piVar5 = 0x14" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (if_statement "if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" if (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" ( (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" { (expression_statement "*piVar5 = 0x15;" (assignment_expression "*piVar5 = 0x15" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) }) (else_clause "else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" else (compound_statement "{\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;" if (parenthesized_expression "((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000))" ( (binary_expression "(*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)" (parenthesized_expression "(*piVar5 != 2)" ( (binary_expression "*piVar5 != 2" (pointer_expression "*piVar5" * identifier) != number_literal) )) || (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" ( (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_00112778;" goto statement_identifier ;)) }))) }))) (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" identifier = (call_expression "renameat(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) })) }) (else_clause "else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" else (compound_statement "{\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" { (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" identifier = (call_expression "renameat(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) }))))) })) })) (labeled_statement "LAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int renameatu(int fd1,char *src,int fd2,char *dst,uint flags)\n\n{\n  char cVar1;\n  long lVar2;\n  bool bVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  ulong uVar7;\n  ulong uVar8;\n  char *pcVar9;\n  long in_FS_OFFSET;\n  bool bVar10;\n  byte bVar11;\n  stat src_st;\n  stat dst_st;\n  \n  bVar11 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = renameat2();\n  if (iVar4 < 0) {\n    piVar6 = __errno_location();\n    iVar5 = *piVar6;\n    bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;\n    bVar3 = bVar10 && iVar5 != 0x5f;\n    if (!bVar10 || iVar5 == 0x5f) {\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }\n  }\nLAB_00112778:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar4;\n}\n\n" (function_definition "int renameatu(int fd1,char *src,int fd2,char *dst,uint flags)\n\n{\n  char cVar1;\n  long lVar2;\n  bool bVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  ulong uVar7;\n  ulong uVar8;\n  char *pcVar9;\n  long in_FS_OFFSET;\n  bool bVar10;\n  byte bVar11;\n  stat src_st;\n  stat dst_st;\n  \n  bVar11 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = renameat2();\n  if (iVar4 < 0) {\n    piVar6 = __errno_location();\n    iVar5 = *piVar6;\n    bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;\n    bVar3 = bVar10 && iVar5 != 0x5f;\n    if (!bVar10 || iVar5 == 0x5f) {\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }\n  }\nLAB_00112778:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar4;\n}" primitive_type (function_declarator "renameatu(int fd1,char *src,int fd2,char *dst,uint flags)" identifier (parameter_list "(int fd1,char *src,int fd2,char *dst,uint flags)" ( (parameter_declaration "int fd1" primitive_type identifier) , (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) , (parameter_declaration "int fd2" primitive_type identifier) , (parameter_declaration "char *dst" primitive_type (pointer_declarator "*dst" * identifier)) , (parameter_declaration "uint flags" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  bool bVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  ulong uVar7;\n  ulong uVar8;\n  char *pcVar9;\n  long in_FS_OFFSET;\n  bool bVar10;\n  byte bVar11;\n  stat src_st;\n  stat dst_st;\n  \n  bVar11 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = renameat2();\n  if (iVar4 < 0) {\n    piVar6 = __errno_location();\n    iVar5 = *piVar6;\n    bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;\n    bVar3 = bVar10 && iVar5 != 0x5f;\n    if (!bVar10 || iVar5 == 0x5f) {\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }\n  }\nLAB_00112778:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar4;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "byte bVar11;" type_identifier identifier ;) (declaration "stat src_st;" type_identifier identifier ;) (declaration "stat dst_st;" type_identifier identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = renameat2();" (assignment_expression "iVar4 = renameat2()" identifier = (call_expression "renameat2()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 < 0) {\n    piVar6 = __errno_location();\n    iVar5 = *piVar6;\n    bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;\n    bVar3 = bVar10 && iVar5 != 0x5f;\n    if (!bVar10 || iVar5 == 0x5f) {\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    iVar5 = *piVar6;\n    bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;\n    bVar3 = bVar10 && iVar5 != 0x5f;\n    if (!bVar10 || iVar5 == 0x5f) {\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0;" (assignment_expression "bVar10 = (iVar5 - 0x16U & 0xffffffef) != 0" identifier = (binary_expression "(iVar5 - 0x16U & 0xffffffef) != 0" (parenthesized_expression "(iVar5 - 0x16U & 0xffffffef)" ( (binary_expression "iVar5 - 0x16U & 0xffffffef" (binary_expression "iVar5 - 0x16U" identifier - number_literal) & number_literal) )) != number_literal)) ;) (expression_statement "bVar3 = bVar10 && iVar5 != 0x5f;" (assignment_expression "bVar3 = bVar10 && iVar5 != 0x5f" identifier = (binary_expression "bVar10 && iVar5 != 0x5f" identifier && (binary_expression "iVar5 != 0x5f" identifier != number_literal))) ;) (if_statement "if (!bVar10 || iVar5 == 0x5f) {\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }" if (parenthesized_expression "(!bVar10 || iVar5 == 0x5f)" ( (binary_expression "!bVar10 || iVar5 == 0x5f" (unary_expression "!bVar10" ! identifier) || (binary_expression "iVar5 == 0x5f" identifier == number_literal)) )) (compound_statement "{\n      if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }\n      uVar7 = 0xffffffffffffffff;\n      pcVar9 = src;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = dst;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n    }" { (if_statement "if (flags != 0) {\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }" if (parenthesized_expression "(flags != 0)" ( (binary_expression "flags != 0" identifier != number_literal) )) (compound_statement "{\n        if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n        if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }\n        iVar4 = -1;\n        if (*piVar6 != 2) goto LAB_00112778;\n        bVar3 = true;\n      }" { (if_statement "if ((flags & 0xfffffffe) != 0) {\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }" if (parenthesized_expression "((flags & 0xfffffffe) != 0)" ( (binary_expression "(flags & 0xfffffffe) != 0" (parenthesized_expression "(flags & 0xfffffffe)" ( (binary_expression "flags & 0xfffffffe" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          *piVar6 = 0x5f;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }" { (expression_statement "*piVar6 = 0x5f;" (assignment_expression "*piVar6 = 0x5f" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (expression_statement "iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);" (assignment_expression "iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100)" identifier = (call_expression "__fxstatat(1,fd2,dst,(stat *)&dst_st,0x100)" identifier (argument_list "(1,fd2,dst,(stat *)&dst_st,0x100)" ( number_literal , identifier , identifier , (cast_expression "(stat *)&dst_st" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dst_st" & identifier)) , number_literal )))) ;) (if_statement "if ((iVar4 == 0) || (*piVar6 == 0x4b)) {\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }" if (parenthesized_expression "((iVar4 == 0) || (*piVar6 == 0x4b))" ( (binary_expression "(iVar4 == 0) || (*piVar6 == 0x4b)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(*piVar6 == 0x4b)" ( (binary_expression "*piVar6 == 0x4b" (pointer_expression "*piVar6" * identifier) == number_literal) ))) )) (compound_statement "{\n          *piVar6 = 0x11;\n          iVar4 = -1;\n          goto LAB_00112778;\n        }" { (expression_statement "*piVar6 = 0x11;" (assignment_expression "*piVar6 = 0x11" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (if_statement "if (*piVar6 != 2) goto LAB_00112778;" if (parenthesized_expression "(*piVar6 != 2)" ( (binary_expression "*piVar6 != 2" (pointer_expression "*piVar6" * identifier) != number_literal) )) (goto_statement "goto LAB_00112778;" goto statement_identifier ;)) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) })) (expression_statement "uVar7 = 0xffffffffffffffff;" (assignment_expression "uVar7 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar9 = src;" (assignment_expression "pcVar9 = src" identifier = identifier) ;) (do_statement "do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      }" { (if_statement "if (uVar7 == 0) break;" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) (expression_statement "pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar9 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar9 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar9 = dst;" (assignment_expression "pcVar9 = dst" identifier = identifier) ;) (do_statement "do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar1 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) (expression_statement "pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar9 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar9 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if ((~uVar7 == 1) || (~uVar8 == 1)) {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }\n      else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }" if (parenthesized_expression "((~uVar7 == 1) || (~uVar8 == 1))" ( (binary_expression "(~uVar7 == 1) || (~uVar8 == 1)" (parenthesized_expression "(~uVar7 == 1)" ( (binary_expression "~uVar7 == 1" (unary_expression "~uVar7" ~ identifier) == number_literal) )) || (parenthesized_expression "(~uVar8 == 1)" ( (binary_expression "~uVar8 == 1" (unary_expression "~uVar8" ~ identifier) == number_literal) ))) )) (compound_statement "{\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }" { (expression_statement "iVar4 = renameat(fd1,src,fd2,dst);" (assignment_expression "iVar4 = renameat(fd1,src,fd2,dst)" identifier = (call_expression "renameat(fd1,src,fd2,dst)" identifier (argument_list "(fd1,src,fd2,dst)" ( identifier , identifier , identifier , identifier )))) ;) }) (else_clause "else if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }" else (if_statement "if ((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')) {\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }\n      else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }" if (parenthesized_expression "((src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/'))" ( (binary_expression "(src[~uVar7 - 2] == '/') || (dst[~uVar8 - 2] == '/')" (parenthesized_expression "(src[~uVar7 - 2] == '/')" ( (binary_expression "src[~uVar7 - 2] == '/'" (subscript_expression "src[~uVar7 - 2]" identifier [ (binary_expression "~uVar7 - 2" (unary_expression "~uVar7" ~ identifier) - number_literal) ]) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(dst[~uVar8 - 2] == '/')" ( (binary_expression "dst[~uVar8 - 2] == '/'" (subscript_expression "dst[~uVar8 - 2]" identifier [ (binary_expression "~uVar8 - 2" (unary_expression "~uVar8" ~ identifier) - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n        iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);\n        iVar4 = -1;\n        if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }\n      }" { (expression_statement "iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100);" (assignment_expression "iVar5 = __fxstatat(1,fd1,src,(stat *)&src_st,0x100)" identifier = (call_expression "__fxstatat(1,fd1,src,(stat *)&src_st,0x100)" identifier (argument_list "(1,fd1,src,(stat *)&src_st,0x100)" ( number_literal , identifier , identifier , (cast_expression "(stat *)&src_st" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&src_st" & identifier)) , number_literal )))) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (if_statement "if (iVar5 == 0) {\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar4 = renameat(fd1,src,fd2,dst);\n        }" { (if_statement "if (bVar3) {\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n            if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }\n          }" { (if_statement "if ((src_st.st_mode & 0xf000) != 0x4000) {\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }" if (parenthesized_expression "((src_st.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(src_st.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(src_st.st_mode & 0xf000)" ( (binary_expression "src_st.st_mode & 0xf000" (field_expression "src_st.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n              *piVar6 = 2;\n              goto LAB_00112778;\n            }" { (expression_statement "*piVar6 = 2;" (assignment_expression "*piVar6 = 2" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) }) (else_clause "else {\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" else (compound_statement "{\n            iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);\n            if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" { (expression_statement "iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100);" (assignment_expression "iVar4 = __fxstatat(1,fd2,dst,(stat *)&dst_st,0x100)" identifier = (call_expression "__fxstatat(1,fd2,dst,(stat *)&dst_st,0x100)" identifier (argument_list "(1,fd2,dst,(stat *)&dst_st,0x100)" ( number_literal , identifier , identifier , (cast_expression "(stat *)&dst_st" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dst_st" & identifier)) , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n              if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }\n            }" { (if_statement "if ((dst_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }" if (parenthesized_expression "((dst_st.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(dst_st.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(dst_st.st_mode & 0xf000)" ( (binary_expression "dst_st.st_mode & 0xf000" (field_expression "dst_st.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                *piVar6 = 0x14;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }" { (expression_statement "*piVar6 = 0x14;" (assignment_expression "*piVar6 = 0x14" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (if_statement "if ((src_st.st_mode & 0xf000) != 0x4000) {\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }" if (parenthesized_expression "((src_st.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(src_st.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(src_st.st_mode & 0xf000)" ( (binary_expression "src_st.st_mode & 0xf000" (field_expression "src_st.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                *piVar6 = 0x15;\n                iVar4 = -1;\n                goto LAB_00112778;\n              }" { (expression_statement "*piVar6 = 0x15;" (assignment_expression "*piVar6 = 0x15" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) }) (else_clause "else {\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" else (compound_statement "{\n              iVar4 = -1;\n              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (if_statement "if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;" if (parenthesized_expression "((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000))" ( (binary_expression "(*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)" (parenthesized_expression "(*piVar6 != 2)" ( (binary_expression "*piVar6 != 2" (pointer_expression "*piVar6" * identifier) != number_literal) )) || (parenthesized_expression "((src_st.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(src_st.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(src_st.st_mode & 0xf000)" ( (binary_expression "src_st.st_mode & 0xf000" (field_expression "src_st.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_00112778;" goto statement_identifier ;)) }))) }))) (expression_statement "iVar4 = renameat(fd1,src,fd2,dst);" (assignment_expression "iVar4 = renameat(fd1,src,fd2,dst)" identifier = (call_expression "renameat(fd1,src,fd2,dst)" identifier (argument_list "(fd1,src,fd2,dst)" ( identifier , identifier , identifier , identifier )))) ;) })) }) (else_clause "else {\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }" else (compound_statement "{\n        iVar4 = renameat(fd1,src,fd2,dst);\n      }" { (expression_statement "iVar4 = renameat(fd1,src,fd2,dst);" (assignment_expression "iVar4 = renameat(fd1,src,fd2,dst)" identifier = (call_expression "renameat(fd1,src,fd2,dst)" identifier (argument_list "(fd1,src,fd2,dst)" ( identifier , identifier , identifier , identifier )))) ;) }))))) })) })) (labeled_statement "LAB_00112778:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar2 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)" identifier (parameter_list "(int param_1,char *param_2,int param_3,char *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 "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (declaration "stat local_168;" type_identifier identifier ;) (declaration "stat local_d8;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = renameat2();" (assignment_expression "iVar3 = renameat2()" identifier = (call_expression "renameat2()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;" (assignment_expression "bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0" identifier = (binary_expression "(iVar4 - 0x16U & 0xffffffef) != 0" (parenthesized_expression "(iVar4 - 0x16U & 0xffffffef)" ( (binary_expression "iVar4 - 0x16U & 0xffffffef" (binary_expression "iVar4 - 0x16U" identifier - number_literal) & number_literal) )) != number_literal)) ;) (expression_statement "bVar2 = bVar9 && iVar4 != 0x5f;" (assignment_expression "bVar2 = bVar9 && iVar4 != 0x5f" identifier = (binary_expression "bVar9 && iVar4 != 0x5f" identifier && (binary_expression "iVar4 != 0x5f" identifier != number_literal))) ;) (if_statement "if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }" if (parenthesized_expression "(!bVar9 || iVar4 == 0x5f)" ( (binary_expression "!bVar9 || iVar4 == 0x5f" (unary_expression "!bVar9" ! identifier) || (binary_expression "iVar4 == 0x5f" identifier == number_literal)) )) (compound_statement "{\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }" { (if_statement "if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }" { (if_statement "if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" if (parenthesized_expression "((param_5 & 0xfffffffe) != 0)" ( (binary_expression "(param_5 & 0xfffffffe) != 0" (parenthesized_expression "(param_5 & 0xfffffffe)" ( (binary_expression "param_5 & 0xfffffffe" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" { (expression_statement "*piVar5 = 0x5f;" (assignment_expression "*piVar5 = 0x5f" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (expression_statement "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);" (assignment_expression "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier = (call_expression "__fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier (argument_list "(1,param_3,param_4,&local_d8,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_d8" & identifier) , number_literal )))) ;) (if_statement "if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" if (parenthesized_expression "((iVar3 == 0) || (*piVar5 == 0x4b))" ( (binary_expression "(iVar3 == 0) || (*piVar5 == 0x4b)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(*piVar5 == 0x4b)" ( (binary_expression "*piVar5 == 0x4b" (pointer_expression "*piVar5" * identifier) == number_literal) ))) )) (compound_statement "{\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" { (expression_statement "*piVar5 = 0x11;" (assignment_expression "*piVar5 = 0x11" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (*piVar5 != 2) goto LAB_00112778;" if (parenthesized_expression "(*piVar5 != 2)" ( (binary_expression "*piVar5 != 2" (pointer_expression "*piVar5" * identifier) != number_literal) )) (goto_statement "goto LAB_00112778;" goto statement_identifier ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) })) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = param_2;" (assignment_expression "pcVar8 = param_2" identifier = identifier) ;) (do_statement "do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar7 = 0xffffffffffffffff;" (assignment_expression "uVar7 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = param_4;" (assignment_expression "pcVar8 = param_4" identifier = identifier) ;) (do_statement "do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      }" { (if_statement "if (uVar7 == 0) break;" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" if (parenthesized_expression "((~uVar6 == 1) || (~uVar7 == 1))" ( (binary_expression "(~uVar6 == 1) || (~uVar7 == 1)" (parenthesized_expression "(~uVar6 == 1)" ( (binary_expression "~uVar6 == 1" (unary_expression "~uVar6" ~ identifier) == number_literal) )) || (parenthesized_expression "(~uVar7 == 1)" ( (binary_expression "~uVar7 == 1" (unary_expression "~uVar7" ~ identifier) == number_literal) ))) )) (compound_statement "{\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" { (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" identifier = (call_expression "renameat(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) }) (else_clause "else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" else (if_statement "if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" if (parenthesized_expression "((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/'))" ( (binary_expression "(param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')" (parenthesized_expression "(param_2[~uVar6 - 2] == '/')" ( (binary_expression "param_2[~uVar6 - 2] == '/'" (subscript_expression "param_2[~uVar6 - 2]" identifier [ (binary_expression "~uVar6 - 2" (unary_expression "~uVar6" ~ identifier) - number_literal) ]) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(param_4[~uVar7 - 2] == '/')" ( (binary_expression "param_4[~uVar7 - 2] == '/'" (subscript_expression "param_4[~uVar7 - 2]" identifier [ (binary_expression "~uVar7 - 2" (unary_expression "~uVar7" ~ identifier) - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }" { (expression_statement "iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);" (assignment_expression "iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100)" identifier = (call_expression "__fxstatat(1,param_1,param_2,&local_168,0x100)" identifier (argument_list "(1,param_1,param_2,&local_168,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_168" & identifier) , number_literal )))) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }" { (if_statement "if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }" { (if_statement "if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }" if (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" ( (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }" { (expression_statement "*piVar5 = 2;" (assignment_expression "*piVar5 = 2" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) }) (else_clause "else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" else (compound_statement "{\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" { (expression_statement "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);" (assignment_expression "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier = (call_expression "__fxstatat(1,param_3,param_4,&local_d8,0x100)" identifier (argument_list "(1,param_3,param_4,&local_d8,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_d8" & identifier) , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }" { (if_statement "if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" if (parenthesized_expression "((local_d8.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_d8.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_d8.st_mode & 0xf000)" ( (binary_expression "local_d8.st_mode & 0xf000" (field_expression "local_d8.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" { (expression_statement "*piVar5 = 0x14;" (assignment_expression "*piVar5 = 0x14" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) (if_statement "if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" if (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" ( (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" { (expression_statement "*piVar5 = 0x15;" (assignment_expression "*piVar5 = 0x15" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112778;" goto statement_identifier ;) })) }) (else_clause "else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" else (compound_statement "{\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;" if (parenthesized_expression "((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000))" ( (binary_expression "(*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)" (parenthesized_expression "(*piVar5 != 2)" ( (binary_expression "*piVar5 != 2" (pointer_expression "*piVar5" * identifier) != number_literal) )) || (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" ( (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" ( (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_00112778;" goto statement_identifier ;)) }))) }))) (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" identifier = (call_expression "renameat(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) })) }) (else_clause "else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" else (compound_statement "{\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" { (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" identifier = (call_expression "renameat(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) }))))) })) })) (labeled_statement "LAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < 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 = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) != LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT && (binary_expression IDENT != LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) || (binary_expression IDENT == LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) == LIT) )) || (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (unary_expression ~ IDENT) - LIT) ]) == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (unary_expression ~ IDENT) - LIT) ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) != LIT) ))) )) (goto_statement goto statement_identifier ;)) }))) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) }))))) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_0011264f(int param_1,char *param_2,int param_3,char *param_4,uint param_5)" (identifier "FUN_0011264f") (parameter_list "(int param_1,char *param_2,int param_3,char *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 "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  ulong uVar6;\n  ulong uVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  bool bVar9;\n  byte bVar10;\n  stat local_168;\n  stat local_d8;\n  long local_40;\n  \n  bVar10 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar3 = renameat2();\n  if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }\nLAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (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 "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (declaration "byte bVar10;" (type_identifier "byte") (identifier "bVar10") (; ";")) (declaration "stat local_168;" (type_identifier "stat") (identifier "local_168") (; ";")) (declaration "stat local_d8;" (type_identifier "stat") (identifier "local_d8") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" (identifier "bVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar3 = renameat2();" (assignment_expression "iVar3 = renameat2()" (identifier "iVar3") (= "=") (call_expression "renameat2()" (identifier "renameat2") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar5 = __errno_location();\n    iVar4 = *piVar5;\n    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;\n    bVar2 = bVar9 && iVar4 != 0x5f;\n    if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;" (assignment_expression "bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0" (identifier "bVar9") (= "=") (binary_expression "(iVar4 - 0x16U & 0xffffffef) != 0" (parenthesized_expression "(iVar4 - 0x16U & 0xffffffef)" (( "(") (binary_expression "iVar4 - 0x16U & 0xffffffef" (binary_expression "iVar4 - 0x16U" (identifier "iVar4") (- "-") (number_literal "0x16U")) (& "&") (number_literal "0xffffffef")) () ")")) (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "bVar2 = bVar9 && iVar4 != 0x5f;" (assignment_expression "bVar2 = bVar9 && iVar4 != 0x5f" (identifier "bVar2") (= "=") (binary_expression "bVar9 && iVar4 != 0x5f" (identifier "bVar9") (&& "&&") (binary_expression "iVar4 != 0x5f" (identifier "iVar4") (!= "!=") (number_literal "0x5f")))) (; ";")) (if_statement "if (!bVar9 || iVar4 == 0x5f) {\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }" (if "if") (parenthesized_expression "(!bVar9 || iVar4 == 0x5f)" (( "(") (binary_expression "!bVar9 || iVar4 == 0x5f" (unary_expression "!bVar9" (! "!") (identifier "bVar9")) (|| "||") (binary_expression "iVar4 == 0x5f" (identifier "iVar4") (== "==") (number_literal "0x5f"))) () ")")) (compound_statement "{\n      if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar8 = param_2;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      uVar7 = 0xffffffffffffffff;\n      pcVar8 = param_4;\n      do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n    }" ({ "{") (if_statement "if (param_5 != 0) {\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }\n        iVar3 = -1;\n        if (*piVar5 != 2) goto LAB_00112778;\n        bVar2 = true;\n      }" ({ "{") (if_statement "if ((param_5 & 0xfffffffe) != 0) {\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" (if "if") (parenthesized_expression "((param_5 & 0xfffffffe) != 0)" (( "(") (binary_expression "(param_5 & 0xfffffffe) != 0" (parenthesized_expression "(param_5 & 0xfffffffe)" (( "(") (binary_expression "param_5 & 0xfffffffe" (identifier "param_5") (& "&") (number_literal "0xfffffffe")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *piVar5 = 0x5f;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" ({ "{") (expression_statement "*piVar5 = 0x5f;" (assignment_expression "*piVar5 = 0x5f" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0x5f")) (; ";")) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";")) (} "}"))) (expression_statement "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);" (assignment_expression "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100)" (identifier "iVar3") (= "=") (call_expression "__fxstatat(1,param_3,param_4,&local_d8,0x100)" (identifier "__fxstatat") (argument_list "(1,param_3,param_4,&local_d8,0x100)" (( "(") (number_literal "1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (pointer_expression "&local_d8" (& "&") (identifier "local_d8")) (, ",") (number_literal "0x100") () ")")))) (; ";")) (if_statement "if ((iVar3 == 0) || (*piVar5 == 0x4b)) {\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" (if "if") (parenthesized_expression "((iVar3 == 0) || (*piVar5 == 0x4b))" (( "(") (binary_expression "(iVar3 == 0) || (*piVar5 == 0x4b)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*piVar5 == 0x4b)" (( "(") (binary_expression "*piVar5 == 0x4b" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (== "==") (number_literal "0x4b")) () ")"))) () ")")) (compound_statement "{\n          *piVar5 = 0x11;\n          iVar3 = -1;\n          goto LAB_00112778;\n        }" ({ "{") (expression_statement "*piVar5 = 0x11;" (assignment_expression "*piVar5 = 0x11" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0x11")) (; ";")) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";")) (} "}"))) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (if_statement "if (*piVar5 != 2) goto LAB_00112778;" (if "if") (parenthesized_expression "(*piVar5 != 2)" (( "(") (binary_expression "*piVar5 != 2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "2")) () ")")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";"))) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}"))) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" (identifier "uVar6") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar8 = param_2;" (assignment_expression "pcVar8 = param_2" (identifier "pcVar8") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      }" ({ "{") (if_statement "if (uVar6 == 0) break;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" (identifier "cVar1") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar10 * -2" (identifier "pcVar8") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "uVar7 = 0xffffffffffffffff;" (assignment_expression "uVar7 = 0xffffffffffffffff" (identifier "uVar7") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar8 = param_4;" (assignment_expression "pcVar8 = param_4" (identifier "pcVar8") (= "=") (identifier "param_4")) (; ";")) (do_statement "do {\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (uVar7 == 0) break;\n        uVar7 = uVar7 - 1;\n        cVar1 = *pcVar8;\n        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;\n      }" ({ "{") (if_statement "if (uVar7 == 0) break;" (if "if") (parenthesized_expression "(uVar7 == 0)" (( "(") (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 - 1" (identifier "uVar7") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" (identifier "cVar1") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar10 * -2" (identifier "pcVar8") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (if_statement "if ((~uVar6 == 1) || (~uVar7 == 1)) {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }\n      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" (if "if") (parenthesized_expression "((~uVar6 == 1) || (~uVar7 == 1))" (( "(") (binary_expression "(~uVar6 == 1) || (~uVar7 == 1)" (parenthesized_expression "(~uVar6 == 1)" (( "(") (binary_expression "~uVar6 == 1" (unary_expression "~uVar6" (~ "~") (identifier "uVar6")) (== "==") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(~uVar7 == 1)" (( "(") (binary_expression "~uVar7 == 1" (unary_expression "~uVar7" (~ "~") (identifier "uVar7")) (== "==") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" ({ "{") (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" (identifier "iVar3") (= "=") (call_expression "renameat(param_1,param_2,param_3,param_4)" (identifier "renameat") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (} "}")) (else_clause "else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" (else "else") (if_statement "if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }\n      else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" (if "if") (parenthesized_expression "((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/'))" (( "(") (binary_expression "(param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')" (parenthesized_expression "(param_2[~uVar6 - 2] == '/')" (( "(") (binary_expression "param_2[~uVar6 - 2] == '/'" (subscript_expression "param_2[~uVar6 - 2]" (identifier "param_2") ([ "[") (binary_expression "~uVar6 - 2" (unary_expression "~uVar6" (~ "~") (identifier "uVar6")) (- "-") (number_literal "2")) (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_4[~uVar7 - 2] == '/')" (( "(") (binary_expression "param_4[~uVar7 - 2] == '/'" (subscript_expression "param_4[~uVar7 - 2]" (identifier "param_4") ([ "[") (binary_expression "~uVar7 - 2" (unary_expression "~uVar7" (~ "~") (identifier "uVar7")) (- "-") (number_literal "2")) (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);\n        iVar3 = -1;\n        if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }\n      }" ({ "{") (expression_statement "iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);" (assignment_expression "iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100)" (identifier "iVar4") (= "=") (call_expression "__fxstatat(1,param_1,param_2,&local_168,0x100)" (identifier "__fxstatat") (argument_list "(1,param_1,param_2,&local_168,0x100)" (( "(") (number_literal "1") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_168" (& "&") (identifier "local_168")) (, ",") (number_literal "0x100") () ")")))) (; ";")) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (if_statement "if (iVar4 == 0) {\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }\n          iVar3 = renameat(param_1,param_2,param_3,param_4);\n        }" ({ "{") (if_statement "if (bVar2) {\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }\n          else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n            if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }\n          }" ({ "{") (if_statement "if ((local_168.st_mode & 0xf000) != 0x4000) {\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }" (if "if") (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" (( "(") (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" (( "(") (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" (identifier "local_168") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0x4000")) () ")")) (compound_statement "{\n              *piVar5 = 2;\n              goto LAB_00112778;\n            }" ({ "{") (expression_statement "*piVar5 = 2;" (assignment_expression "*piVar5 = 2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" (else "else") (compound_statement "{\n            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);\n            if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }\n          }" ({ "{") (expression_statement "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);" (assignment_expression "iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100)" (identifier "iVar3") (= "=") (call_expression "__fxstatat(1,param_3,param_4,&local_d8,0x100)" (identifier "__fxstatat") (argument_list "(1,param_3,param_4,&local_d8,0x100)" (( "(") (number_literal "1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (pointer_expression "&local_d8" (& "&") (identifier "local_d8")) (, ",") (number_literal "0x100") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }\n            else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n              if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }\n            }" ({ "{") (if_statement "if ((local_d8.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" (if "if") (parenthesized_expression "((local_d8.st_mode & 0xf000) != 0x4000)" (( "(") (binary_expression "(local_d8.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_d8.st_mode & 0xf000)" (( "(") (binary_expression "local_d8.st_mode & 0xf000" (field_expression "local_d8.st_mode" (identifier "local_d8") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0x4000")) () ")")) (compound_statement "{\n                *piVar5 = 0x14;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" ({ "{") (expression_statement "*piVar5 = 0x14;" (assignment_expression "*piVar5 = 0x14" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0x14")) (; ";")) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";")) (} "}"))) (if_statement "if ((local_168.st_mode & 0xf000) != 0x4000) {\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" (if "if") (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" (( "(") (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" (( "(") (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" (identifier "local_168") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0x4000")) () ")")) (compound_statement "{\n                *piVar5 = 0x15;\n                iVar3 = -1;\n                goto LAB_00112778;\n              }" ({ "{") (expression_statement "*piVar5 = 0x15;" (assignment_expression "*piVar5 = 0x15" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0x15")) (; ";")) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" (else "else") (compound_statement "{\n              iVar3 = -1;\n              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;\n            }" ({ "{") (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (if_statement "if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;" (if "if") (parenthesized_expression "((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000))" (( "(") (binary_expression "(*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)" (parenthesized_expression "(*piVar5 != 2)" (( "(") (binary_expression "*piVar5 != 2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "((local_168.st_mode & 0xf000) != 0x4000)" (( "(") (binary_expression "(local_168.st_mode & 0xf000) != 0x4000" (parenthesized_expression "(local_168.st_mode & 0xf000)" (( "(") (binary_expression "local_168.st_mode & 0xf000" (field_expression "local_168.st_mode" (identifier "local_168") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0x4000")) () ")"))) () ")")) (goto_statement "goto LAB_00112778;" (goto "goto") (statement_identifier "LAB_00112778") (; ";"))) (} "}")))) (} "}")))) (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" (identifier "iVar3") (= "=") (call_expression "renameat(param_1,param_2,param_3,param_4)" (identifier "renameat") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" (else "else") (compound_statement "{\n        iVar3 = renameat(param_1,param_2,param_3,param_4);\n      }" ({ "{") (expression_statement "iVar3 = renameat(param_1,param_2,param_3,param_4);" (assignment_expression "iVar3 = renameat(param_1,param_2,param_3,param_4)" (identifier "iVar3") (= "=") (call_expression "renameat(param_1,param_2,param_3,param_4)" (identifier "renameat") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (} "}")))))) (} "}"))) (} "}"))) (labeled_statement "LAB_00112778:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_00112778") (: ":") (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

int function_1(int fd1,char *src,int fd2,char *dst,type_1 var_7)

{
  char var_11;
  long var_14;
  bool bVar3;
  int var_3;
  int var_5;
  int *piVar6;
  type_2 var_9;
  type_2 var_12;
  char *var_10;
  long var_1;
  bool var_6;
  type_3 bVar11;
  type_4 src_st;
  type_4 dst_st;
  
  bVar11 = 0;
  var_14 = *(long *)(var_1 + 0x28);
  var_3 = var_2();
  if (var_3 < 0) {
    piVar6 = var_4();
    var_5 = *piVar6;
    var_6 = (var_5 - 0x16U & 0xffffffef) != 0;
    bVar3 = var_6 && var_5 != 0x5f;
    if (!var_6 || var_5 == 0x5f) {
      if (var_7 != 0) {
        if ((var_7 & 0xfffffffe) != 0) {
          *piVar6 = 0x5f;
          var_3 = -1;
          goto LAB_00112778;
        }
        var_3 = var_8(1,fd2,dst,(type_4 *)&dst_st,0x100);
        if ((var_3 == 0) || (*piVar6 == 0x4b)) {
          *piVar6 = 0x11;
          var_3 = -1;
          goto LAB_00112778;
        }
        var_3 = -1;
        if (*piVar6 != 2) goto LAB_00112778;
        bVar3 = true;
      }
      var_9 = 0xffffffffffffffff;
      var_10 = src;
      do {
        if (var_9 == 0) break;
        var_9 = var_9 - 1;
        var_11 = *var_10;
        var_10 = var_10 + (type_2)bVar11 * -2 + 1;
      } while (var_11 != '\0');
      var_12 = 0xffffffffffffffff;
      var_10 = dst;
      do {
        if (var_12 == 0) break;
        var_12 = var_12 - 1;
        var_11 = *var_10;
        var_10 = var_10 + (type_2)bVar11 * -2 + 1;
      } while (var_11 != '\0');
      if ((~var_9 == 1) || (~var_12 == 1)) {
        var_3 = var_13(fd1,src,fd2,dst);
      }
      else if ((src[~var_9 - 2] == '/') || (dst[~var_12 - 2] == '/')) {
        var_5 = var_8(1,fd1,src,(type_4 *)&src_st,0x100);
        var_3 = -1;
        if (var_5 == 0) {
          if (bVar3) {
            if ((src_st.st_mode & 0xf000) != 0x4000) {
              *piVar6 = 2;
              goto LAB_00112778;
            }
          }
          else {
            var_3 = var_8(1,fd2,dst,(type_4 *)&dst_st,0x100);
            if (var_3 == 0) {
              if ((dst_st.st_mode & 0xf000) != 0x4000) {
                *piVar6 = 0x14;
                var_3 = -1;
                goto LAB_00112778;
              }
              if ((src_st.st_mode & 0xf000) != 0x4000) {
                *piVar6 = 0x15;
                var_3 = -1;
                goto LAB_00112778;
              }
            }
            else {
              var_3 = -1;
              if ((*piVar6 != 2) || ((src_st.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;
            }
          }
          var_3 = var_13(fd1,src,fd2,dst);
        }
      }
      else {
        var_3 = var_13(fd1,src,fd2,dst);
      }
    }
  }
LAB_00112778:
  if (var_14 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_15();
  }
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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 (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: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (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 (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (pointer_expression argument: (identifier)) (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: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (true))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (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: (sized_type_specifier) 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)))))

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

{
  char cVar1;
  bool bVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  ulong uVar6;
  ulong uVar7;
  char *pcVar8;
  long in_FS_OFFSET;
  bool bVar9;
  byte bVar10;
  stat local_168;
  stat local_d8;
  long local_40;
  
  bVar10 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar3 = renameat2();
  if (iVar3 < 0) {
    piVar5 = __errno_location();
    iVar4 = *piVar5;
    bVar9 = (iVar4 - 0x16U & 0xffffffef) != 0;
    bVar2 = bVar9 && iVar4 != 0x5f;
    if (!bVar9 || iVar4 == 0x5f) {
      if (param_5 != 0) {
        if ((param_5 & 0xfffffffe) != 0) {
          *piVar5 = 0x5f;
          iVar3 = -1;
          goto LAB_00112778;
        }
        iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);
        if ((iVar3 == 0) || (*piVar5 == 0x4b)) {
          *piVar5 = 0x11;
          iVar3 = -1;
          goto LAB_00112778;
        }
        iVar3 = -1;
        if (*piVar5 != 2) goto LAB_00112778;
        bVar2 = true;
      }
      uVar6 = 0xffffffffffffffff;
      pcVar8 = param_2;
      do {
        if (uVar6 == 0) break;
        uVar6 = uVar6 - 1;
        cVar1 = *pcVar8;
        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;
      } while (cVar1 != '\0');
      uVar7 = 0xffffffffffffffff;
      pcVar8 = param_4;
      do {
        if (uVar7 == 0) break;
        uVar7 = uVar7 - 1;
        cVar1 = *pcVar8;
        pcVar8 = pcVar8 + (ulong)bVar10 * -2 + 1;
      } while (cVar1 != '\0');
      if ((~uVar6 == 1) || (~uVar7 == 1)) {
        iVar3 = renameat(param_1,param_2,param_3,param_4);
      }
      else if ((param_2[~uVar6 - 2] == '/') || (param_4[~uVar7 - 2] == '/')) {
        iVar4 = __fxstatat(1,param_1,param_2,&local_168,0x100);
        iVar3 = -1;
        if (iVar4 == 0) {
          if (bVar2) {
            if ((local_168.st_mode & 0xf000) != 0x4000) {
              *piVar5 = 2;
              goto LAB_00112778;
            }
          }
          else {
            iVar3 = __fxstatat(1,param_3,param_4,&local_d8,0x100);
            if (iVar3 == 0) {
              if ((local_d8.st_mode & 0xf000) != 0x4000) {
                *piVar5 = 0x14;
                iVar3 = -1;
                goto LAB_00112778;
              }
              if ((local_168.st_mode & 0xf000) != 0x4000) {
                *piVar5 = 0x15;
                iVar3 = -1;
                goto LAB_00112778;
              }
            }
            else {
              iVar3 = -1;
              if ((*piVar5 != 2) || ((local_168.st_mode & 0xf000) != 0x4000)) goto LAB_00112778;
            }
          }
          iVar3 = renameat(param_1,param_2,param_3,param_4);
        }
      }
      else {
        iVar3 = renameat(param_1,param_2,param_3,param_4);
      }
    }
  }
LAB_00112778:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar3;
}

