
char * make_dir_and_check_ours(char *dirname)

{
  char cVar1;
  __uid_t _Var2;
  int iVar3;
  int iVar4;
  int *piVar5;
  __uid_t _Var6;
  char *pcVar7;
  undefined4 *puVar8;
  int iVar9;
  undefined4 uVar10;
  undefined4 uVar11;
  char *pcVar12;
  int iVar13;
  int iVar14;
  undefined *puVar15;
  code *pcVar16;
  stat st;
  
  puVar15 = PTR___stack_chk_guard_00112630;
  iVar3 = *(int *)PTR___stack_chk_guard_00112630;
  iVar4 = (*(code *)PTR_mkdir_001126a0)(dirname,0x1c0);
  if ((iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11))
  {
    uVar10 = (*(code *)PTR_strerror_00112184)();
    pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);
  }
  else {
    pcVar12 = dirname;
    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);
    _Var2 = st.st_uid;
    if (iVar4 < 0) {
      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);
      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);
    }
    else {
      _Var6 = (*(code *)PTR_getuid_001125b4)();
      if (_Var2 == _Var6) {
        if ((st.st_mode & 0x3f) == 0) {
          pcVar7 = (char *)0x0;
          dirname = pcVar12;
        }
        else {
          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)
                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);
        }
      }
      else {
        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)
                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);
      }
    }
  }
  if (iVar3 != *(int *)puVar15) {
    puVar15 = PTR___stack_chk_fail_001122c8;
    (*(code *)PTR___stack_chk_fail_001122c8)();
    iVar4 = 0;
    iVar13 = *(int *)(puVar15 + 0x502a4);
    iVar14 = *(int *)(puVar15 + 0x502a4);
    do {
      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);
      iVar4 = iVar4 + iVar9;
      if (iVar4 < 1) {
        pcVar16 = *(code **)(puVar15 + 0x51058);
        cVar1 = *(char *)(iVar3 + iVar4);
      }
      else {
        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);
        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);
        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {
          uVar11 = (**(code **)(puVar15 + 0x51130))();
          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))
                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);
          (**(code **)(puVar15 + 0x5029c))(uVar10);
          return pcVar7;
        }
        (**(code **)(puVar15 + 0x5029c))(uVar10);
        cVar1 = *(char *)(iVar3 + iVar4);
        pcVar16 = *(code **)(puVar15 + 0x51058);
      }
      if (cVar1 == '\0') {
        return (char *)0x0;
      }
      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);
      iVar4 = iVar4 + iVar9;
    } while( true );
  }
  return pcVar7;
}



undefined4 make_dir_and_check_ours(undefined4 param_1)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 uVar8;
  int iVar9;
  int iVar10;
  undefined *puVar11;
  code *pcVar12;
  undefined1 auStack_b8 [24];
  uint local_a0;
  int local_98;
  int local_14;
  
  puVar11 = PTR___stack_chk_guard_00112630;
  local_14 = *(int *)PTR___stack_chk_guard_00112630;
  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);
  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))
  {
    uVar5 = (*(code *)PTR_strerror_00112184)();
    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);
  }
  else {
    uVar8 = param_1;
    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);
    iVar2 = local_98;
    if (iVar4 < 0) {
      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);
      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);
    }
    else {
      iVar4 = (*(code *)PTR_getuid_001125b4)();
      if (iVar2 == iVar4) {
        if ((local_a0 & 0x3f) == 0) {
          uVar5 = 0;
          param_1 = uVar8;
        }
        else {
          uVar5 = (*(code *)PTR_dupprintf_001113a8)
                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);
        }
      }
      else {
        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);
      }
    }
  }
  if (local_14 != *(int *)puVar11) {
    iVar2 = local_14;
    puVar11 = PTR___stack_chk_fail_001122c8;
    (*(code *)PTR___stack_chk_fail_001122c8)();
    iVar4 = 0;
    iVar9 = *(int *)(puVar11 + 0x502a4);
    iVar10 = *(int *)(puVar11 + 0x502a4);
    do {
      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);
      iVar4 = iVar4 + iVar7;
      if (iVar4 < 1) {
        pcVar12 = *(code **)(puVar11 + 0x51058);
        cVar1 = *(char *)(iVar2 + iVar4);
      }
      else {
        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);
        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);
        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {
          uVar8 = (**(code **)(puVar11 + 0x51130))();
          uVar8 = (**(code **)(puVar11 + 0x50354))
                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);
          (**(code **)(puVar11 + 0x5029c))(uVar5);
          return uVar8;
        }
        (**(code **)(puVar11 + 0x5029c))(uVar5);
        cVar1 = *(char *)(iVar2 + iVar4);
        pcVar12 = *(code **)(puVar11 + 0x51058);
      }
      if (cVar1 == '\0') {
        return 0;
      }
      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);
      iVar4 = iVar4 + iVar7;
    } while( true );
  }
  return uVar5;
}


lui gp,0x6
addiu gp,gp,-0x7c1c
addu gp,gp,t9
addiu sp,sp,-0xd0
lw t9,-0x6c10(gp)
li a1,0x1c0
sw s0,0xc0(sp)
lw s0,-0x6c80(gp)
sw gp,0x10(sp)
sw s1,0xc4(sp)
or s1,a0,zero
sw ra,0xcc(sp)
sw s2,0xc8(sp)
lw v0,0x0(s0)
sw v0,0xbc(sp)
jalr t9
_nop
bgez v0,0x000c0f34
_lw gp,0x10(sp)
lw t9,-0x6e50(gp)
jalr t9
_nop
li v1,0x11
lw a0,0x0(v0)
bne a0,v1,0x000c0ffc
_lw gp,0x10(sp)
lw t9,-0x729c(gp)
addiu a2,sp,0x18
li a0,0x3
jalr t9
_or a1,s1,zero
bltz v0,0x000c0f9c
_lw gp,0x10(sp)
lw t9,-0x6cfc(gp)
jalr t9
_lw s2,0x38(sp)
bne s2,v0,0x000c0fdc
_lw gp,0x10(sp)
lw a2,0x30(sp)
andi v0,a2,0x3f
bne v0,zero,0x000c102c
_lw a0,-0x7fbc(gp)
or v0,zero,zero
lw a0,0xbc(sp)
lw v1,0x0(s0)
bne a0,v1,0x000c1048
_lw ra,0xcc(sp)
lw s2,0xc8(sp)
lw s1,0xc4(sp)
lw s0,0xc0(sp)
jr ra
_addiu sp,sp,0xd0
lw t9,-0x6e50(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x712c(gp)
jalr t9
_lw a0,0x0(v0)
or a1,s1,zero
lw gp,0x10(sp)
or a2,v0,zero
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x63d4
b 0x000c0f78
_lw gp,0x10(sp)
lw a0,-0x7fbc(gp)
or a1,s1,zero
lw t9,-0x7f08(gp)
lw a2,0x38(sp)
jalr t9
_addiu a0,a0,-0x63c4
b 0x000c0f78
_lw gp,0x10(sp)
lw t9,-0x712c(gp)
jalr t9
_nop
or a1,s1,zero
lw gp,0x10(sp)
or a2,v0,zero
lw a0,-0x7fbc(gp)
lw t9,-0x7f08(gp)
jalr t9
_addiu a0,a0,-0x63e4
b 0x000c0f78
_lw gp,0x10(sp)
andi a2,a2,0x1ff
lw t9,-0x7f08(gp)
or a1,s1,zero
jalr t9
_addiu a0,a0,-0x6398
b 0x000c0f78
_lw gp,0x10(sp)
lw t9,-0x6fe8(gp)
jalr t9
_nop
(translation_unit "undefined4 make_dir_and_check_ours(undefined4 param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 make_dir_and_check_ours(undefined4 param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}" type_identifier (function_declarator "make_dir_and_check_ours(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined1 auStack_b8 [24];" type_identifier (array_declarator "auStack_b8 [24]" identifier [ number_literal ]) ;) (declaration "uint local_a0;" type_identifier identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar11 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);" (assignment_expression "iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0)" identifier = (call_expression "(*(code *)PTR_mkdir_001126a0)(param_1,0x1c0)" (parenthesized_expression "(*(code *)PTR_mkdir_001126a0)" ( (pointer_expression "*(code *)PTR_mkdir_001126a0" * (cast_expression "(code *)PTR_mkdir_001126a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))" ( (binary_expression "(iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strerror_00112184)();" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00112184)()" identifier = (call_expression "(*(code *)PTR_strerror_00112184)()" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" ( (binary_expression "PTR_DAT_001112f4 + -0x63e4" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" else (compound_statement "{\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" { (expression_statement "uVar8 = param_1;" (assignment_expression "uVar8 = param_1" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);" (assignment_expression "iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8)" identifier = (call_expression "(*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8)" (parenthesized_expression "(*(code *)PTR___xstat64_00112014)" ( (pointer_expression "*(code *)PTR___xstat64_00112014" * (cast_expression "(code *)PTR___xstat64_00112014" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_b8)" ( number_literal , identifier , identifier )))) ;) (expression_statement "iVar2 = local_98;" (assignment_expression "iVar2 = local_98" identifier = identifier) ;) (if_statement "if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" ( (binary_expression "PTR_DAT_001112f4 + -0x63d4" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" else (compound_statement "{\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" { (expression_statement "iVar4 = (*(code *)PTR_getuid_001125b4)();" (assignment_expression "iVar4 = (*(code *)PTR_getuid_001125b4)()" identifier = (call_expression "(*(code *)PTR_getuid_001125b4)()" (parenthesized_expression "(*(code *)PTR_getuid_001125b4)" ( (pointer_expression "*(code *)PTR_getuid_001125b4" * (cast_expression "(code *)PTR_getuid_001125b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" if (parenthesized_expression "(iVar2 == iVar4)" ( (binary_expression "iVar2 == iVar4" identifier == identifier) )) (compound_statement "{\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }" { (if_statement "if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" if (parenthesized_expression "((local_a0 & 0x3f) == 0)" ( (binary_expression "(local_a0 & 0x3f) == 0" (parenthesized_expression "(local_a0 & 0x3f)" ( (binary_expression "local_a0 & 0x3f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar5 = 0;\n          param_1 = uVar8;\n        }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "param_1 = uVar8;" (assignment_expression "param_1 = uVar8" identifier = identifier) ;) }) (else_clause "else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" else (compound_statement "{\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" { (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" ( (binary_expression "PTR_DAT_001112f4 + -0x6398" identifier + number_literal) , identifier , (binary_expression "local_a0 & 0x1ff" identifier & number_literal) )))) ;) }))) }) (else_clause "else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" else (compound_statement "{\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" { (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" ( (binary_expression "PTR_DAT_001112f4 + -0x63c4" identifier + number_literal) , identifier , identifier )))) ;) }))) }))) }))) (if_statement "if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar11)" ( (binary_expression "local_14 != *(int *)puVar11" identifier != (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }" { (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar11 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = *(int *)(puVar11 + 0x502a4);" (assignment_expression "iVar9 = *(int *)(puVar11 + 0x502a4)" identifier = (pointer_expression "*(int *)(puVar11 + 0x502a4)" * (cast_expression "(int *)(puVar11 + 0x502a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x502a4)" ( (binary_expression "puVar11 + 0x502a4" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)(puVar11 + 0x502a4);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x502a4)" identifier = (pointer_expression "*(int *)(puVar11 + 0x502a4)" * (cast_expression "(int *)(puVar11 + 0x502a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x502a4)" ( (binary_expression "puVar11 + 0x502a4" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );" do (compound_statement "{\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    }" { (expression_statement "iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);" (assignment_expression "iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0)" identifier = (call_expression "(**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0)" (parenthesized_expression "(**(code **)(puVar11 + 0x51178))" ( (pointer_expression "**(code **)(puVar11 + 0x51178)" * (pointer_expression "*(code **)(puVar11 + 0x51178)" * (cast_expression "(code **)(puVar11 + 0x51178)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51178)" ( (binary_expression "puVar11 + 0x51178" identifier + number_literal) ))))) )) (argument_list "(iVar2 + iVar4,iVar9 + -0x76e0)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) , (binary_expression "iVar9 + -0x76e0" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) (if_statement "if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }" { (expression_statement "pcVar12 = *(code **)(puVar11 + 0x51058);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x51058)" identifier = (pointer_expression "*(code **)(puVar11 + 0x51058)" * (cast_expression "(code **)(puVar11 + 0x51058)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51058)" ( (binary_expression "puVar11 + 0x51058" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(iVar2 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar2 + iVar4)" identifier = (pointer_expression "*(char *)(iVar2 + iVar4)" * (cast_expression "(char *)(iVar2 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) ))))) ;) }) (else_clause "else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" else (compound_statement "{\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" { (expression_statement "uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);" (assignment_expression "uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2)" identifier = (call_expression "(**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2)" (parenthesized_expression "(**(code **)(puVar11 + 0x50354))" ( (pointer_expression "**(code **)(puVar11 + 0x50354)" * (pointer_expression "*(code **)(puVar11 + 0x50354)" * (cast_expression "(code **)(puVar11 + 0x50354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x50354)" ( (binary_expression "puVar11 + 0x50354" identifier + number_literal) ))))) )) (argument_list "(iVar10 + -0x4720,iVar4,iVar2)" ( (binary_expression "iVar10 + -0x4720" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);" (assignment_expression "iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1)" identifier = (call_expression "(**(code **)(puVar11 + 0x5164c))(uVar5,param_1)" (parenthesized_expression "(**(code **)(puVar11 + 0x5164c))" ( (pointer_expression "**(code **)(puVar11 + 0x5164c)" * (pointer_expression "*(code **)(puVar11 + 0x5164c)" * (cast_expression "(code **)(puVar11 + 0x5164c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5164c)" ( (binary_expression "puVar11 + 0x5164c" identifier + number_literal) ))))) )) (argument_list "(uVar5,param_1)" ( identifier , identifier )))) ;) (if_statement "if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }" if (parenthesized_expression "((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11))" ( (binary_expression "(iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)" (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))()" identifier = (cast_expression "(int *)(**(code **)(puVar11 + 0x5140c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x5140c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x5140c))" ( (pointer_expression "**(code **)(puVar11 + 0x5140c)" * (pointer_expression "*(code **)(puVar11 + 0x5140c)" * (cast_expression "(code **)(puVar11 + 0x5140c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5140c)" ( (binary_expression "puVar11 + 0x5140c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }" { (expression_statement "uVar8 = (**(code **)(puVar11 + 0x51130))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x51130))()" identifier = (call_expression "(**(code **)(puVar11 + 0x51130))()" (parenthesized_expression "(**(code **)(puVar11 + 0x51130))" ( (pointer_expression "**(code **)(puVar11 + 0x51130)" * (pointer_expression "*(code **)(puVar11 + 0x51130)" * (cast_expression "(code **)(puVar11 + 0x51130)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51130)" ( (binary_expression "puVar11 + 0x51130" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" identifier = (call_expression "(**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x50354))" ( (pointer_expression "**(code **)(puVar11 + 0x50354)" * (pointer_expression "*(code **)(puVar11 + 0x50354)" * (cast_expression "(code **)(puVar11 + 0x50354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x50354)" ( (binary_expression "puVar11 + 0x50354" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" ( (binary_expression "*(int *)(puVar11 + 0x502a0) + -0x63e4" (pointer_expression "*(int *)(puVar11 + 0x502a0)" * (cast_expression "(int *)(puVar11 + 0x502a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x502a0)" ( (binary_expression "puVar11 + 0x502a0" identifier + number_literal) )))) + number_literal) , identifier , identifier )))) ;) (expression_statement "(**(code **)(puVar11 + 0x5029c))(uVar5);" (call_expression "(**(code **)(puVar11 + 0x5029c))(uVar5)" (parenthesized_expression "(**(code **)(puVar11 + 0x5029c))" ( (pointer_expression "**(code **)(puVar11 + 0x5029c)" * (pointer_expression "*(code **)(puVar11 + 0x5029c)" * (cast_expression "(code **)(puVar11 + 0x5029c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5029c)" ( (binary_expression "puVar11 + 0x5029c" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier ))) ;) (return_statement "return uVar8;" return identifier ;) })) (expression_statement "(**(code **)(puVar11 + 0x5029c))(uVar5);" (call_expression "(**(code **)(puVar11 + 0x5029c))(uVar5)" (parenthesized_expression "(**(code **)(puVar11 + 0x5029c))" ( (pointer_expression "**(code **)(puVar11 + 0x5029c)" * (pointer_expression "*(code **)(puVar11 + 0x5029c)" * (cast_expression "(code **)(puVar11 + 0x5029c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5029c)" ( (binary_expression "puVar11 + 0x5029c" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "cVar1 = *(char *)(iVar2 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar2 + iVar4)" identifier = (pointer_expression "*(char *)(iVar2 + iVar4)" * (cast_expression "(char *)(iVar2 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) ))))) ;) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x51058);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x51058)" identifier = (pointer_expression "*(code **)(puVar11 + 0x51058)" * (cast_expression "(code **)(puVar11 + 0x51058)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51058)" ( (binary_expression "puVar11 + 0x51058" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);" (assignment_expression "iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0)" identifier = (call_expression "(*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(iVar2 + iVar4,iVar9 + -0x76e0)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) , (binary_expression "iVar9 + -0x76e0" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "char * make_dir_and_check_ours(char *dirname)\n\n{\n  char cVar1;\n  __uid_t _Var2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  __uid_t _Var6;\n  char *pcVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  char *pcVar12;\n  int iVar13;\n  int iVar14;\n  undefined *puVar15;\n  code *pcVar16;\n  stat st;\n  \n  puVar15 = PTR___stack_chk_guard_00112630;\n  iVar3 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar4 = (*(code *)PTR_mkdir_001126a0)(dirname,0x1c0);\n  if ((iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11))\n  {\n    uVar10 = (*(code *)PTR_strerror_00112184)();\n    pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);\n  }\n  else {\n    pcVar12 = dirname;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);\n    _Var2 = st.st_uid;\n    if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }\n  }\n  if (iVar3 != *(int *)puVar15) {\n    puVar15 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar13 = *(int *)(puVar15 + 0x502a4);\n    iVar14 = *(int *)(puVar15 + 0x502a4);\n    do {\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    } while( true );\n  }\n  return pcVar7;\n}\n\n" (function_definition "char * make_dir_and_check_ours(char *dirname)\n\n{\n  char cVar1;\n  __uid_t _Var2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  __uid_t _Var6;\n  char *pcVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  char *pcVar12;\n  int iVar13;\n  int iVar14;\n  undefined *puVar15;\n  code *pcVar16;\n  stat st;\n  \n  puVar15 = PTR___stack_chk_guard_00112630;\n  iVar3 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar4 = (*(code *)PTR_mkdir_001126a0)(dirname,0x1c0);\n  if ((iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11))\n  {\n    uVar10 = (*(code *)PTR_strerror_00112184)();\n    pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);\n  }\n  else {\n    pcVar12 = dirname;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);\n    _Var2 = st.st_uid;\n    if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }\n  }\n  if (iVar3 != *(int *)puVar15) {\n    puVar15 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar13 = *(int *)(puVar15 + 0x502a4);\n    iVar14 = *(int *)(puVar15 + 0x502a4);\n    do {\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    } while( true );\n  }\n  return pcVar7;\n}" primitive_type (pointer_declarator "* make_dir_and_check_ours(char *dirname)" * (function_declarator "make_dir_and_check_ours(char *dirname)" identifier (parameter_list "(char *dirname)" ( (parameter_declaration "char *dirname" primitive_type (pointer_declarator "*dirname" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  __uid_t _Var2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  __uid_t _Var6;\n  char *pcVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  char *pcVar12;\n  int iVar13;\n  int iVar14;\n  undefined *puVar15;\n  code *pcVar16;\n  stat st;\n  \n  puVar15 = PTR___stack_chk_guard_00112630;\n  iVar3 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar4 = (*(code *)PTR_mkdir_001126a0)(dirname,0x1c0);\n  if ((iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11))\n  {\n    uVar10 = (*(code *)PTR_strerror_00112184)();\n    pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);\n  }\n  else {\n    pcVar12 = dirname;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);\n    _Var2 = st.st_uid;\n    if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }\n  }\n  if (iVar3 != *(int *)puVar15) {\n    puVar15 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar13 = *(int *)(puVar15 + 0x502a4);\n    iVar14 = *(int *)(puVar15 + 0x502a4);\n    do {\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    } while( true );\n  }\n  return pcVar7;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "__uid_t _Var2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "__uid_t _Var6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (declaration "stat st;" type_identifier identifier ;) (expression_statement "puVar15 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar15 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = (*(code *)PTR_mkdir_001126a0)(dirname,0x1c0);" (assignment_expression "iVar4 = (*(code *)PTR_mkdir_001126a0)(dirname,0x1c0)" identifier = (call_expression "(*(code *)PTR_mkdir_001126a0)(dirname,0x1c0)" (parenthesized_expression "(*(code *)PTR_mkdir_001126a0)" ( (pointer_expression "*(code *)PTR_mkdir_001126a0" * (cast_expression "(code *)PTR_mkdir_001126a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dirname,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11))\n  {\n    uVar10 = (*(code *)PTR_strerror_00112184)();\n    pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);\n  }\n  else {\n    pcVar12 = dirname;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);\n    _Var2 = st.st_uid;\n    if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }\n  }" if (parenthesized_expression "((iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11))" ( (binary_expression "(iVar4 < 0) && (piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11)" (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11)" ( (comma_expression "piVar5 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar5 != 0x11" (assignment_expression "piVar5 = (int *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar5 != 0x11" (pointer_expression "*piVar5" * identifier) != number_literal)) ))) )) (compound_statement "{\n    uVar10 = (*(code *)PTR_strerror_00112184)();\n    pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);\n  }" { (expression_statement "uVar10 = (*(code *)PTR_strerror_00112184)();" (assignment_expression "uVar10 = (*(code *)PTR_strerror_00112184)()" identifier = (call_expression "(*(code *)PTR_strerror_00112184)()" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63e4,dirname,uVar10)" ( (binary_expression "PTR_DAT_001112f4 + -0x63e4" identifier + number_literal) , identifier , identifier ))))) ;) }) (else_clause "else {\n    pcVar12 = dirname;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);\n    _Var2 = st.st_uid;\n    if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }\n  }" else (compound_statement "{\n    pcVar12 = dirname;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);\n    _Var2 = st.st_uid;\n    if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }\n  }" { (expression_statement "pcVar12 = dirname;" (assignment_expression "pcVar12 = dirname" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st);" (assignment_expression "iVar4 = (*(code *)PTR___xstat64_00112014)(3,dirname,&st)" identifier = (call_expression "(*(code *)PTR___xstat64_00112014)(3,dirname,&st)" (parenthesized_expression "(*(code *)PTR___xstat64_00112014)" ( (pointer_expression "*(code *)PTR___xstat64_00112014" * (cast_expression "(code *)PTR___xstat64_00112014" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,dirname,&st)" ( number_literal , identifier , (pointer_expression "&st" & identifier) )))) ;) (expression_statement "_Var2 = st.st_uid;" (assignment_expression "_Var2 = st.st_uid" identifier = (field_expression "st.st_uid" identifier . field_identifier)) ;) (if_statement "if (iVar4 < 0) {\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }\n    else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);\n      pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);\n    }" { (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8);" (assignment_expression "uVar10 = (*(code *)PTR_strerror_00112184)(*puVar8)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar8)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar8)" ( (pointer_expression "*puVar8" * identifier) )))) ;) (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63d4,dirname,uVar10)" ( (binary_expression "PTR_DAT_001112f4 + -0x63d4" identifier + number_literal) , identifier , identifier ))))) ;) }) (else_clause "else {\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }" else (compound_statement "{\n      _Var6 = (*(code *)PTR_getuid_001125b4)();\n      if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }\n    }" { (expression_statement "_Var6 = (*(code *)PTR_getuid_001125b4)();" (assignment_expression "_Var6 = (*(code *)PTR_getuid_001125b4)()" identifier = (call_expression "(*(code *)PTR_getuid_001125b4)()" (parenthesized_expression "(*(code *)PTR_getuid_001125b4)" ( (pointer_expression "*(code *)PTR_getuid_001125b4" * (cast_expression "(code *)PTR_getuid_001125b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (_Var2 == _Var6) {\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }\n      else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }" if (parenthesized_expression "(_Var2 == _Var6)" ( (binary_expression "_Var2 == _Var6" identifier == identifier) )) (compound_statement "{\n        if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }\n      }" { (if_statement "if ((st.st_mode & 0x3f) == 0) {\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }\n        else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }" if (parenthesized_expression "((st.st_mode & 0x3f) == 0)" ( (binary_expression "(st.st_mode & 0x3f) == 0" (parenthesized_expression "(st.st_mode & 0x3f)" ( (binary_expression "st.st_mode & 0x3f" (field_expression "st.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          pcVar7 = (char *)0x0;\n          dirname = pcVar12;\n        }" { (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "dirname = pcVar12;" (assignment_expression "dirname = pcVar12" identifier = identifier) ;) }) (else_clause "else {\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }" else (compound_statement "{\n          pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);\n        }" { (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                                     (PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x6398,dirname,st.st_mode & 0x1ff)" ( (binary_expression "PTR_DAT_001112f4 + -0x6398" identifier + number_literal) , identifier , (binary_expression "st.st_mode & 0x1ff" (field_expression "st.st_mode" identifier . field_identifier) & number_literal) ))))) ;) }))) }) (else_clause "else {\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }" else (compound_statement "{\n        pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);\n      }" { (expression_statement "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                                   (PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63c4,dirname,st.st_uid)" ( (binary_expression "PTR_DAT_001112f4 + -0x63c4" identifier + number_literal) , identifier , (field_expression "st.st_uid" identifier . field_identifier) ))))) ;) }))) }))) }))) (if_statement "if (iVar3 != *(int *)puVar15) {\n    puVar15 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar13 = *(int *)(puVar15 + 0x502a4);\n    iVar14 = *(int *)(puVar15 + 0x502a4);\n    do {\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    } while( true );\n  }" if (parenthesized_expression "(iVar3 != *(int *)puVar15)" ( (binary_expression "iVar3 != *(int *)puVar15" identifier != (pointer_expression "*(int *)puVar15" * (cast_expression "(int *)puVar15" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar15 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar13 = *(int *)(puVar15 + 0x502a4);\n    iVar14 = *(int *)(puVar15 + 0x502a4);\n    do {\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    } while( true );\n  }" { (expression_statement "puVar15 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar15 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = *(int *)(puVar15 + 0x502a4);" (assignment_expression "iVar13 = *(int *)(puVar15 + 0x502a4)" identifier = (pointer_expression "*(int *)(puVar15 + 0x502a4)" * (cast_expression "(int *)(puVar15 + 0x502a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0x502a4)" ( (binary_expression "puVar15 + 0x502a4" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = *(int *)(puVar15 + 0x502a4);" (assignment_expression "iVar14 = *(int *)(puVar15 + 0x502a4)" identifier = (pointer_expression "*(int *)(puVar15 + 0x502a4)" * (cast_expression "(int *)(puVar15 + 0x502a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0x502a4)" ( (binary_expression "puVar15 + 0x502a4" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    } while( true );" do (compound_statement "{\n      iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n      if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return (char *)0x0;\n      }\n      iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);\n      iVar4 = iVar4 + iVar9;\n    }" { (expression_statement "iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0);" (assignment_expression "iVar9 = (**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0)" identifier = (call_expression "(**(code **)(puVar15 + 0x51178))(iVar3 + iVar4,iVar13 + -0x76e0)" (parenthesized_expression "(**(code **)(puVar15 + 0x51178))" ( (pointer_expression "**(code **)(puVar15 + 0x51178)" * (pointer_expression "*(code **)(puVar15 + 0x51178)" * (cast_expression "(code **)(puVar15 + 0x51178)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x51178)" ( (binary_expression "puVar15 + 0x51178" identifier + number_literal) ))))) )) (argument_list "(iVar3 + iVar4,iVar13 + -0x76e0)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) , (binary_expression "iVar13 + -0x76e0" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + iVar9;" (assignment_expression "iVar4 = iVar4 + iVar9" identifier = (binary_expression "iVar4 + iVar9" identifier + identifier)) ;) (if_statement "if (iVar4 < 1) {\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }\n      else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n        cVar1 = *(char *)(iVar3 + iVar4);\n      }" { (expression_statement "pcVar16 = *(code **)(puVar15 + 0x51058);" (assignment_expression "pcVar16 = *(code **)(puVar15 + 0x51058)" identifier = (pointer_expression "*(code **)(puVar15 + 0x51058)" * (cast_expression "(code **)(puVar15 + 0x51058)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x51058)" ( (binary_expression "puVar15 + 0x51058" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(iVar3 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar4)" identifier = (pointer_expression "*(char *)(iVar3 + iVar4)" * (cast_expression "(char *)(iVar3 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) ))))) ;) }) (else_clause "else {\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }" else (compound_statement "{\n        uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);\n        iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);\n        if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }\n        (**(code **)(puVar15 + 0x5029c))(uVar10);\n        cVar1 = *(char *)(iVar3 + iVar4);\n        pcVar16 = *(code **)(puVar15 + 0x51058);\n      }" { (expression_statement "uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3);" (assignment_expression "uVar10 = (**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3)" identifier = (call_expression "(**(code **)(puVar15 + 0x50354))(iVar14 + -0x4720,iVar4,iVar3)" (parenthesized_expression "(**(code **)(puVar15 + 0x50354))" ( (pointer_expression "**(code **)(puVar15 + 0x50354)" * (pointer_expression "*(code **)(puVar15 + 0x50354)" * (cast_expression "(code **)(puVar15 + 0x50354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x50354)" ( (binary_expression "puVar15 + 0x50354" identifier + number_literal) ))))) )) (argument_list "(iVar14 + -0x4720,iVar4,iVar3)" ( (binary_expression "iVar14 + -0x4720" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname);" (assignment_expression "iVar9 = (**(code **)(puVar15 + 0x5164c))(uVar10,dirname)" identifier = (call_expression "(**(code **)(puVar15 + 0x5164c))(uVar10,dirname)" (parenthesized_expression "(**(code **)(puVar15 + 0x5164c))" ( (pointer_expression "**(code **)(puVar15 + 0x5164c)" * (pointer_expression "*(code **)(puVar15 + 0x5164c)" * (cast_expression "(code **)(puVar15 + 0x5164c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x5164c)" ( (binary_expression "puVar15 + 0x5164c" identifier + number_literal) ))))) )) (argument_list "(uVar10,dirname)" ( identifier , identifier )))) ;) (if_statement "if ((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)) {\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }" if (parenthesized_expression "((iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11))" ( (binary_expression "(iVar9 < 0) && (piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)" (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11)" ( (comma_expression "piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))(), *piVar5 != 0x11" (assignment_expression "piVar5 = (int *)(**(code **)(puVar15 + 0x5140c))()" identifier = (cast_expression "(int *)(**(code **)(puVar15 + 0x5140c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar15 + 0x5140c))()" (parenthesized_expression "(**(code **)(puVar15 + 0x5140c))" ( (pointer_expression "**(code **)(puVar15 + 0x5140c)" * (pointer_expression "*(code **)(puVar15 + 0x5140c)" * (cast_expression "(code **)(puVar15 + 0x5140c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x5140c)" ( (binary_expression "puVar15 + 0x5140c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) , (binary_expression "*piVar5 != 0x11" (pointer_expression "*piVar5" * identifier) != number_literal)) ))) )) (compound_statement "{\n          uVar11 = (**(code **)(puVar15 + 0x51130))();\n          pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);\n          (**(code **)(puVar15 + 0x5029c))(uVar10);\n          return pcVar7;\n        }" { (expression_statement "uVar11 = (**(code **)(puVar15 + 0x51130))();" (assignment_expression "uVar11 = (**(code **)(puVar15 + 0x51130))()" identifier = (call_expression "(**(code **)(puVar15 + 0x51130))()" (parenthesized_expression "(**(code **)(puVar15 + 0x51130))" ( (pointer_expression "**(code **)(puVar15 + 0x51130)" * (pointer_expression "*(code **)(puVar15 + 0x51130)" * (cast_expression "(code **)(puVar15 + 0x51130)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x51130)" ( (binary_expression "puVar15 + 0x51130" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11);" (assignment_expression "pcVar7 = (char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11)" identifier = (cast_expression "(char *)(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar15 + 0x50354))\n                                     (*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11)" (parenthesized_expression "(**(code **)(puVar15 + 0x50354))" ( (pointer_expression "**(code **)(puVar15 + 0x50354)" * (pointer_expression "*(code **)(puVar15 + 0x50354)" * (cast_expression "(code **)(puVar15 + 0x50354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x50354)" ( (binary_expression "puVar15 + 0x50354" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar15 + 0x502a0) + -0x63e4,uVar10,uVar11)" ( (binary_expression "*(int *)(puVar15 + 0x502a0) + -0x63e4" (pointer_expression "*(int *)(puVar15 + 0x502a0)" * (cast_expression "(int *)(puVar15 + 0x502a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0x502a0)" ( (binary_expression "puVar15 + 0x502a0" identifier + number_literal) )))) + number_literal) , identifier , identifier ))))) ;) (expression_statement "(**(code **)(puVar15 + 0x5029c))(uVar10);" (call_expression "(**(code **)(puVar15 + 0x5029c))(uVar10)" (parenthesized_expression "(**(code **)(puVar15 + 0x5029c))" ( (pointer_expression "**(code **)(puVar15 + 0x5029c)" * (pointer_expression "*(code **)(puVar15 + 0x5029c)" * (cast_expression "(code **)(puVar15 + 0x5029c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x5029c)" ( (binary_expression "puVar15 + 0x5029c" identifier + number_literal) ))))) )) (argument_list "(uVar10)" ( identifier ))) ;) (return_statement "return pcVar7;" return identifier ;) })) (expression_statement "(**(code **)(puVar15 + 0x5029c))(uVar10);" (call_expression "(**(code **)(puVar15 + 0x5029c))(uVar10)" (parenthesized_expression "(**(code **)(puVar15 + 0x5029c))" ( (pointer_expression "**(code **)(puVar15 + 0x5029c)" * (pointer_expression "*(code **)(puVar15 + 0x5029c)" * (cast_expression "(code **)(puVar15 + 0x5029c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x5029c)" ( (binary_expression "puVar15 + 0x5029c" identifier + number_literal) ))))) )) (argument_list "(uVar10)" ( identifier ))) ;) (expression_statement "cVar1 = *(char *)(iVar3 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar4)" identifier = (pointer_expression "*(char *)(iVar3 + iVar4)" * (cast_expression "(char *)(iVar3 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) ))))) ;) (expression_statement "pcVar16 = *(code **)(puVar15 + 0x51058);" (assignment_expression "pcVar16 = *(code **)(puVar15 + 0x51058)" identifier = (pointer_expression "*(code **)(puVar15 + 0x51058)" * (cast_expression "(code **)(puVar15 + 0x51058)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0x51058)" ( (binary_expression "puVar15 + 0x51058" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n        return (char *)0x0;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return (char *)0x0;\n      }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0);" (assignment_expression "iVar9 = (*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0)" identifier = (call_expression "(*pcVar16)(iVar3 + iVar4,iVar13 + -0x76e0)" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "(iVar3 + iVar4,iVar13 + -0x76e0)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) , (binary_expression "iVar13 + -0x76e0" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + iVar9;" (assignment_expression "iVar4 = iVar4 + iVar9" identifier = (binary_expression "iVar4 + iVar9" identifier + identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (return_statement "return pcVar7;" return identifier ;) })))
(translation_unit "undefined4 make_dir_and_check_ours(undefined4 param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 make_dir_and_check_ours(undefined4 param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}" type_identifier (function_declarator "make_dir_and_check_ours(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined1 auStack_b8 [24];" type_identifier (array_declarator "auStack_b8 [24]" identifier [ number_literal ]) ;) (declaration "uint local_a0;" type_identifier identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar11 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);" (assignment_expression "iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0)" identifier = (call_expression "(*(code *)PTR_mkdir_001126a0)(param_1,0x1c0)" (parenthesized_expression "(*(code *)PTR_mkdir_001126a0)" ( (pointer_expression "*(code *)PTR_mkdir_001126a0" * (cast_expression "(code *)PTR_mkdir_001126a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))" ( (binary_expression "(iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strerror_00112184)();" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00112184)()" identifier = (call_expression "(*(code *)PTR_strerror_00112184)()" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" ( (binary_expression "PTR_DAT_001112f4 + -0x63e4" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" else (compound_statement "{\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" { (expression_statement "uVar8 = param_1;" (assignment_expression "uVar8 = param_1" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);" (assignment_expression "iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8)" identifier = (call_expression "(*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8)" (parenthesized_expression "(*(code *)PTR___xstat64_00112014)" ( (pointer_expression "*(code *)PTR___xstat64_00112014" * (cast_expression "(code *)PTR___xstat64_00112014" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_b8)" ( number_literal , identifier , identifier )))) ;) (expression_statement "iVar2 = local_98;" (assignment_expression "iVar2 = local_98" identifier = identifier) ;) (if_statement "if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" ( (pointer_expression "*(code *)PTR___errno_location_00112460" * (cast_expression "(code *)PTR___errno_location_00112460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" ( (pointer_expression "*(code *)PTR_strerror_00112184" * (cast_expression "(code *)PTR_strerror_00112184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" ( (binary_expression "PTR_DAT_001112f4 + -0x63d4" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" else (compound_statement "{\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" { (expression_statement "iVar4 = (*(code *)PTR_getuid_001125b4)();" (assignment_expression "iVar4 = (*(code *)PTR_getuid_001125b4)()" identifier = (call_expression "(*(code *)PTR_getuid_001125b4)()" (parenthesized_expression "(*(code *)PTR_getuid_001125b4)" ( (pointer_expression "*(code *)PTR_getuid_001125b4" * (cast_expression "(code *)PTR_getuid_001125b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" if (parenthesized_expression "(iVar2 == iVar4)" ( (binary_expression "iVar2 == iVar4" identifier == identifier) )) (compound_statement "{\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }" { (if_statement "if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" if (parenthesized_expression "((local_a0 & 0x3f) == 0)" ( (binary_expression "(local_a0 & 0x3f) == 0" (parenthesized_expression "(local_a0 & 0x3f)" ( (binary_expression "local_a0 & 0x3f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar5 = 0;\n          param_1 = uVar8;\n        }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "param_1 = uVar8;" (assignment_expression "param_1 = uVar8" identifier = identifier) ;) }) (else_clause "else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" else (compound_statement "{\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" { (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" ( (binary_expression "PTR_DAT_001112f4 + -0x6398" identifier + number_literal) , identifier , (binary_expression "local_a0 & 0x1ff" identifier & number_literal) )))) ;) }))) }) (else_clause "else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" else (compound_statement "{\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" { (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" ( (binary_expression "PTR_DAT_001112f4 + -0x63c4" identifier + number_literal) , identifier , identifier )))) ;) }))) }))) }))) (if_statement "if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar11)" ( (binary_expression "local_14 != *(int *)puVar11" identifier != (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }" { (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar11 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = *(int *)(puVar11 + 0x502a4);" (assignment_expression "iVar9 = *(int *)(puVar11 + 0x502a4)" identifier = (pointer_expression "*(int *)(puVar11 + 0x502a4)" * (cast_expression "(int *)(puVar11 + 0x502a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x502a4)" ( (binary_expression "puVar11 + 0x502a4" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)(puVar11 + 0x502a4);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x502a4)" identifier = (pointer_expression "*(int *)(puVar11 + 0x502a4)" * (cast_expression "(int *)(puVar11 + 0x502a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x502a4)" ( (binary_expression "puVar11 + 0x502a4" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );" do (compound_statement "{\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    }" { (expression_statement "iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);" (assignment_expression "iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0)" identifier = (call_expression "(**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0)" (parenthesized_expression "(**(code **)(puVar11 + 0x51178))" ( (pointer_expression "**(code **)(puVar11 + 0x51178)" * (pointer_expression "*(code **)(puVar11 + 0x51178)" * (cast_expression "(code **)(puVar11 + 0x51178)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51178)" ( (binary_expression "puVar11 + 0x51178" identifier + number_literal) ))))) )) (argument_list "(iVar2 + iVar4,iVar9 + -0x76e0)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) , (binary_expression "iVar9 + -0x76e0" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) (if_statement "if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }" { (expression_statement "pcVar12 = *(code **)(puVar11 + 0x51058);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x51058)" identifier = (pointer_expression "*(code **)(puVar11 + 0x51058)" * (cast_expression "(code **)(puVar11 + 0x51058)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51058)" ( (binary_expression "puVar11 + 0x51058" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(iVar2 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar2 + iVar4)" identifier = (pointer_expression "*(char *)(iVar2 + iVar4)" * (cast_expression "(char *)(iVar2 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) ))))) ;) }) (else_clause "else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" else (compound_statement "{\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" { (expression_statement "uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);" (assignment_expression "uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2)" identifier = (call_expression "(**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2)" (parenthesized_expression "(**(code **)(puVar11 + 0x50354))" ( (pointer_expression "**(code **)(puVar11 + 0x50354)" * (pointer_expression "*(code **)(puVar11 + 0x50354)" * (cast_expression "(code **)(puVar11 + 0x50354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x50354)" ( (binary_expression "puVar11 + 0x50354" identifier + number_literal) ))))) )) (argument_list "(iVar10 + -0x4720,iVar4,iVar2)" ( (binary_expression "iVar10 + -0x4720" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);" (assignment_expression "iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1)" identifier = (call_expression "(**(code **)(puVar11 + 0x5164c))(uVar5,param_1)" (parenthesized_expression "(**(code **)(puVar11 + 0x5164c))" ( (pointer_expression "**(code **)(puVar11 + 0x5164c)" * (pointer_expression "*(code **)(puVar11 + 0x5164c)" * (cast_expression "(code **)(puVar11 + 0x5164c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5164c)" ( (binary_expression "puVar11 + 0x5164c" identifier + number_literal) ))))) )) (argument_list "(uVar5,param_1)" ( identifier , identifier )))) ;) (if_statement "if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }" if (parenthesized_expression "((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11))" ( (binary_expression "(iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)" (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))()" identifier = (cast_expression "(int *)(**(code **)(puVar11 + 0x5140c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x5140c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x5140c))" ( (pointer_expression "**(code **)(puVar11 + 0x5140c)" * (pointer_expression "*(code **)(puVar11 + 0x5140c)" * (cast_expression "(code **)(puVar11 + 0x5140c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5140c)" ( (binary_expression "puVar11 + 0x5140c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }" { (expression_statement "uVar8 = (**(code **)(puVar11 + 0x51130))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x51130))()" identifier = (call_expression "(**(code **)(puVar11 + 0x51130))()" (parenthesized_expression "(**(code **)(puVar11 + 0x51130))" ( (pointer_expression "**(code **)(puVar11 + 0x51130)" * (pointer_expression "*(code **)(puVar11 + 0x51130)" * (cast_expression "(code **)(puVar11 + 0x51130)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51130)" ( (binary_expression "puVar11 + 0x51130" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" identifier = (call_expression "(**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x50354))" ( (pointer_expression "**(code **)(puVar11 + 0x50354)" * (pointer_expression "*(code **)(puVar11 + 0x50354)" * (cast_expression "(code **)(puVar11 + 0x50354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x50354)" ( (binary_expression "puVar11 + 0x50354" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" ( (binary_expression "*(int *)(puVar11 + 0x502a0) + -0x63e4" (pointer_expression "*(int *)(puVar11 + 0x502a0)" * (cast_expression "(int *)(puVar11 + 0x502a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x502a0)" ( (binary_expression "puVar11 + 0x502a0" identifier + number_literal) )))) + number_literal) , identifier , identifier )))) ;) (expression_statement "(**(code **)(puVar11 + 0x5029c))(uVar5);" (call_expression "(**(code **)(puVar11 + 0x5029c))(uVar5)" (parenthesized_expression "(**(code **)(puVar11 + 0x5029c))" ( (pointer_expression "**(code **)(puVar11 + 0x5029c)" * (pointer_expression "*(code **)(puVar11 + 0x5029c)" * (cast_expression "(code **)(puVar11 + 0x5029c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5029c)" ( (binary_expression "puVar11 + 0x5029c" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier ))) ;) (return_statement "return uVar8;" return identifier ;) })) (expression_statement "(**(code **)(puVar11 + 0x5029c))(uVar5);" (call_expression "(**(code **)(puVar11 + 0x5029c))(uVar5)" (parenthesized_expression "(**(code **)(puVar11 + 0x5029c))" ( (pointer_expression "**(code **)(puVar11 + 0x5029c)" * (pointer_expression "*(code **)(puVar11 + 0x5029c)" * (cast_expression "(code **)(puVar11 + 0x5029c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5029c)" ( (binary_expression "puVar11 + 0x5029c" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "cVar1 = *(char *)(iVar2 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar2 + iVar4)" identifier = (pointer_expression "*(char *)(iVar2 + iVar4)" * (cast_expression "(char *)(iVar2 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) ))))) ;) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x51058);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x51058)" identifier = (pointer_expression "*(code **)(puVar11 + 0x51058)" * (cast_expression "(code **)(puVar11 + 0x51058)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x51058)" ( (binary_expression "puVar11 + 0x51058" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);" (assignment_expression "iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0)" identifier = (call_expression "(*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(iVar2 + iVar4,iVar9 + -0x76e0)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) , (binary_expression "iVar9 + -0x76e0" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) , (binary_expression (pointer_expression * IDENT) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT & LIT) )))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) }))) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) , (binary_expression (pointer_expression * IDENT) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 make_dir_and_check_ours(undefined4 param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}" (type_identifier "undefined4") (function_declarator "make_dir_and_check_ours(undefined4 param_1)" (identifier "make_dir_and_check_ours") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_98;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  local_14 = *(int *)PTR___stack_chk_guard_00112630;\n  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);\n  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }\n  if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }\n  return uVar5;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "code *pcVar12;" (type_identifier "code") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "undefined1 auStack_b8 [24];" (type_identifier "undefined1") (array_declarator "auStack_b8 [24]" (identifier "auStack_b8") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "uint local_a0;" (type_identifier "uint") (identifier "local_a0") (; ";")) (declaration "int local_98;" (primitive_type "int") (identifier "local_98") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar11 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar11 = PTR___stack_chk_guard_00112630" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_guard_00112630")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00112630" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00112630" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00112630")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);" (assignment_expression "iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_mkdir_001126a0)(param_1,0x1c0)" (parenthesized_expression "(*(code *)PTR_mkdir_001126a0)" (( "(") (pointer_expression "*(code *)PTR_mkdir_001126a0" (* "*") (cast_expression "(code *)PTR_mkdir_001126a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mkdir_001126a0"))) () ")")) (argument_list "(param_1,0x1c0)" (( "(") (identifier "param_1") (, ",") (number_literal "0x1c0") () ")")))) (; ";")) (if_statement "if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))\n  {\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }\n  else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))" (( "(") (binary_expression "(iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11)" (( "(") (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00112460)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00112460)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00112460" (* "*") (cast_expression "(code *)PTR___errno_location_00112460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00112460"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0x11"))) () ")"))) () ")")) (compound_statement "{\n    uVar5 = (*(code *)PTR_strerror_00112184)();\n    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);\n  }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_strerror_00112184)();" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00112184)()" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_strerror_00112184)()" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" (( "(") (pointer_expression "*(code *)PTR_strerror_00112184" (* "*") (cast_expression "(code *)PTR_strerror_00112184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_00112184"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x63e4" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x63e4")) (, ",") (identifier "param_1") (, ",") (identifier "uVar5") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar8 = param_1;\n    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);\n    iVar2 = local_98;\n    if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }\n  }" ({ "{") (expression_statement "uVar8 = param_1;" (assignment_expression "uVar8 = param_1" (identifier "uVar8") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);" (assignment_expression "iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8)" (parenthesized_expression "(*(code *)PTR___xstat64_00112014)" (( "(") (pointer_expression "*(code *)PTR___xstat64_00112014" (* "*") (cast_expression "(code *)PTR___xstat64_00112014" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___xstat64_00112014"))) () ")")) (argument_list "(3,param_1,auStack_b8)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (identifier "auStack_b8") () ")")))) (; ";")) (expression_statement "iVar2 = local_98;" (assignment_expression "iVar2 = local_98" (identifier "iVar2") (= "=") (identifier "local_98")) (; ";")) (if_statement "if (iVar4 < 0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }\n    else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();\n      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);\n      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);\n    }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)()" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00112460)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00112460)()" (parenthesized_expression "(*(code *)PTR___errno_location_00112460)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00112460" (* "*") (cast_expression "(code *)PTR___errno_location_00112460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00112460"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_strerror_00112184)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_00112184)" (( "(") (pointer_expression "*(code *)PTR_strerror_00112184" (* "*") (cast_expression "(code *)PTR_strerror_00112184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_00112184"))) () ")")) (argument_list "(*puVar6)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) () ")")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x63d4" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x63d4")) (, ",") (identifier "param_1") (, ",") (identifier "uVar5") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" (else "else") (compound_statement "{\n      iVar4 = (*(code *)PTR_getuid_001125b4)();\n      if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }\n    }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_getuid_001125b4)();" (assignment_expression "iVar4 = (*(code *)PTR_getuid_001125b4)()" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_getuid_001125b4)()" (parenthesized_expression "(*(code *)PTR_getuid_001125b4)" (( "(") (pointer_expression "*(code *)PTR_getuid_001125b4" (* "*") (cast_expression "(code *)PTR_getuid_001125b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getuid_001125b4"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == iVar4) {\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }\n      else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" (if "if") (parenthesized_expression "(iVar2 == iVar4)" (( "(") (binary_expression "iVar2 == iVar4" (identifier "iVar2") (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\n        if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }\n      }" ({ "{") (if_statement "if ((local_a0 & 0x3f) == 0) {\n          uVar5 = 0;\n          param_1 = uVar8;\n        }\n        else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" (if "if") (parenthesized_expression "((local_a0 & 0x3f) == 0)" (( "(") (binary_expression "(local_a0 & 0x3f) == 0" (parenthesized_expression "(local_a0 & 0x3f)" (( "(") (binary_expression "local_a0 & 0x3f" (identifier "local_a0") (& "&") (number_literal "0x3f")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar5 = 0;\n          param_1 = uVar8;\n        }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1 = uVar8;" (assignment_expression "param_1 = uVar8" (identifier "param_1") (= "=") (identifier "uVar8")) (; ";")) (} "}")) (else_clause "else {\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" (else "else") (compound_statement "{\n          uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);\n        }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x6398" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x6398")) (, ",") (identifier "param_1") (, ",") (binary_expression "local_a0 & 0x1ff" (identifier "local_a0") (& "&") (number_literal "0x1ff")) () ")")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" (else "else") (compound_statement "{\n        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);\n      }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x63c4,param_1,local_98)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x63c4" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x63c4")) (, ",") (identifier "param_1") (, ",") (identifier "local_98") () ")")))) (; ";")) (} "}")))) (} "}")))) (} "}")))) (if_statement "if (local_14 != *(int *)puVar11) {\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }" (if "if") (parenthesized_expression "(local_14 != *(int *)puVar11)" (( "(") (binary_expression "local_14 != *(int *)puVar11" (identifier "local_14") (!= "!=") (pointer_expression "*(int *)puVar11" (* "*") (cast_expression "(int *)puVar11" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar11")))) () ")")) (compound_statement "{\n    iVar2 = local_14;\n    puVar11 = PTR___stack_chk_fail_001122c8;\n    (*(code *)PTR___stack_chk_fail_001122c8)();\n    iVar4 = 0;\n    iVar9 = *(int *)(puVar11 + 0x502a4);\n    iVar10 = *(int *)(puVar11 + 0x502a4);\n    do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );\n  }" ({ "{") (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar11 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar11 = PTR___stack_chk_fail_001122c8" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_001122c8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001122c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001122c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = *(int *)(puVar11 + 0x502a4);" (assignment_expression "iVar9 = *(int *)(puVar11 + 0x502a4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(puVar11 + 0x502a4)" (* "*") (cast_expression "(int *)(puVar11 + 0x502a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 0x502a4)" (( "(") (binary_expression "puVar11 + 0x502a4" (identifier "puVar11") (+ "+") (number_literal "0x502a4")) () ")"))))) (; ";")) (expression_statement "iVar10 = *(int *)(puVar11 + 0x502a4);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x502a4)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(puVar11 + 0x502a4)" (* "*") (cast_expression "(int *)(puVar11 + 0x502a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 0x502a4)" (( "(") (binary_expression "puVar11 + 0x502a4" (identifier "puVar11") (+ "+") (number_literal "0x502a4")) () ")"))))) (; ";")) (do_statement "do {\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    } while( true );" (do "do") (compound_statement "{\n      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n      if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);\n      iVar4 = iVar4 + iVar7;\n    }" ({ "{") (expression_statement "iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);" (assignment_expression "iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0)" (identifier "iVar7") (= "=") (call_expression "(**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0)" (parenthesized_expression "(**(code **)(puVar11 + 0x51178))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x51178)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x51178)" (* "*") (cast_expression "(code **)(puVar11 + 0x51178)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x51178)" (( "(") (binary_expression "puVar11 + 0x51178" (identifier "puVar11") (+ "+") (number_literal "0x51178")) () ")"))))) () ")")) (argument_list "(iVar2 + iVar4,iVar9 + -0x76e0)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) (, ",") (binary_expression "iVar9 + -0x76e0" (identifier "iVar9") (+ "+") (number_literal "-0x76e0")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar7" (identifier "iVar4") (+ "+") (identifier "iVar7"))) (; ";")) (if_statement "if (iVar4 < 1) {\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }\n      else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" (if "if") (parenthesized_expression "(iVar4 < 1)" (( "(") (binary_expression "iVar4 < 1" (identifier "iVar4") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n        cVar1 = *(char *)(iVar2 + iVar4);\n      }" ({ "{") (expression_statement "pcVar12 = *(code **)(puVar11 + 0x51058);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x51058)" (identifier "pcVar12") (= "=") (pointer_expression "*(code **)(puVar11 + 0x51058)" (* "*") (cast_expression "(code **)(puVar11 + 0x51058)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x51058)" (( "(") (binary_expression "puVar11 + 0x51058" (identifier "puVar11") (+ "+") (number_literal "0x51058")) () ")"))))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar2 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar2 + iVar4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar2 + iVar4)" (* "*") (cast_expression "(char *)(iVar2 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" (else "else") (compound_statement "{\n        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);\n        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);\n        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }\n        (**(code **)(puVar11 + 0x5029c))(uVar5);\n        cVar1 = *(char *)(iVar2 + iVar4);\n        pcVar12 = *(code **)(puVar11 + 0x51058);\n      }" ({ "{") (expression_statement "uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);" (assignment_expression "uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2)" (parenthesized_expression "(**(code **)(puVar11 + 0x50354))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x50354)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x50354)" (* "*") (cast_expression "(code **)(puVar11 + 0x50354)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x50354)" (( "(") (binary_expression "puVar11 + 0x50354" (identifier "puVar11") (+ "+") (number_literal "0x50354")) () ")"))))) () ")")) (argument_list "(iVar10 + -0x4720,iVar4,iVar2)" (( "(") (binary_expression "iVar10 + -0x4720" (identifier "iVar10") (+ "+") (number_literal "-0x4720")) (, ",") (identifier "iVar4") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);" (assignment_expression "iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1)" (identifier "iVar7") (= "=") (call_expression "(**(code **)(puVar11 + 0x5164c))(uVar5,param_1)" (parenthesized_expression "(**(code **)(puVar11 + 0x5164c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x5164c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x5164c)" (* "*") (cast_expression "(code **)(puVar11 + 0x5164c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x5164c)" (( "(") (binary_expression "puVar11 + 0x5164c" (identifier "puVar11") (+ "+") (number_literal "0x5164c")) () ")"))))) () ")")) (argument_list "(uVar5,param_1)" (( "(") (identifier "uVar5") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }" (if "if") (parenthesized_expression "((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11))" (( "(") (binary_expression "(iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)" (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)" (( "(") (comma_expression "piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))()" (identifier "piVar3") (= "=") (cast_expression "(int *)(**(code **)(puVar11 + 0x5140c))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar11 + 0x5140c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x5140c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x5140c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x5140c)" (* "*") (cast_expression "(code **)(puVar11 + 0x5140c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x5140c)" (( "(") (binary_expression "puVar11 + 0x5140c" (identifier "puVar11") (+ "+") (number_literal "0x5140c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0x11"))) () ")"))) () ")")) (compound_statement "{\n          uVar8 = (**(code **)(puVar11 + 0x51130))();\n          uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);\n          (**(code **)(puVar11 + 0x5029c))(uVar5);\n          return uVar8;\n        }" ({ "{") (expression_statement "uVar8 = (**(code **)(puVar11 + 0x51130))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x51130))()" (identifier "uVar8") (= "=") (call_expression "(**(code **)(puVar11 + 0x51130))()" (parenthesized_expression "(**(code **)(puVar11 + 0x51130))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x51130)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x51130)" (* "*") (cast_expression "(code **)(puVar11 + 0x51130)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x51130)" (( "(") (binary_expression "puVar11 + 0x51130" (identifier "puVar11") (+ "+") (number_literal "0x51130")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" (identifier "uVar8") (= "=") (call_expression "(**(code **)(puVar11 + 0x50354))\n                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x50354))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x50354)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x50354)" (* "*") (cast_expression "(code **)(puVar11 + 0x50354)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x50354)" (( "(") (binary_expression "puVar11 + 0x50354" (identifier "puVar11") (+ "+") (number_literal "0x50354")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8)" (( "(") (binary_expression "*(int *)(puVar11 + 0x502a0) + -0x63e4" (pointer_expression "*(int *)(puVar11 + 0x502a0)" (* "*") (cast_expression "(int *)(puVar11 + 0x502a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 0x502a0)" (( "(") (binary_expression "puVar11 + 0x502a0" (identifier "puVar11") (+ "+") (number_literal "0x502a0")) () ")")))) (+ "+") (number_literal "-0x63e4")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar8") () ")")))) (; ";")) (expression_statement "(**(code **)(puVar11 + 0x5029c))(uVar5);" (call_expression "(**(code **)(puVar11 + 0x5029c))(uVar5)" (parenthesized_expression "(**(code **)(puVar11 + 0x5029c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x5029c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x5029c)" (* "*") (cast_expression "(code **)(puVar11 + 0x5029c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x5029c)" (( "(") (binary_expression "puVar11 + 0x5029c" (identifier "puVar11") (+ "+") (number_literal "0x5029c")) () ")"))))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar11 + 0x5029c))(uVar5);" (call_expression "(**(code **)(puVar11 + 0x5029c))(uVar5)" (parenthesized_expression "(**(code **)(puVar11 + 0x5029c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x5029c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x5029c)" (* "*") (cast_expression "(code **)(puVar11 + 0x5029c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x5029c)" (( "(") (binary_expression "puVar11 + 0x5029c" (identifier "puVar11") (+ "+") (number_literal "0x5029c")) () ")"))))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar2 + iVar4);" (assignment_expression "cVar1 = *(char *)(iVar2 + iVar4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar2 + iVar4)" (* "*") (cast_expression "(char *)(iVar2 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x51058);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x51058)" (identifier "pcVar12") (= "=") (pointer_expression "*(code **)(puVar11 + 0x51058)" (* "*") (cast_expression "(code **)(puVar11 + 0x51058)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x51058)" (( "(") (binary_expression "puVar11 + 0x51058" (identifier "puVar11") (+ "+") (number_literal "0x51058")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);" (assignment_expression "iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0)" (identifier "iVar7") (= "=") (call_expression "(*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0)" (parenthesized_expression "(*pcVar12)" (( "(") (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) () ")")) (argument_list "(iVar2 + iVar4,iVar9 + -0x76e0)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) (, ",") (binary_expression "iVar9 + -0x76e0" (identifier "iVar9") (+ "+") (number_literal "-0x76e0")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar7" (identifier "iVar4") (+ "+") (identifier "iVar7"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

char * function_1(char *dirname)

{
  char var_10;
  type_1 var_3;
  int var_5;
  int var_1;
  int *piVar5;
  type_1 var_4;
  char *pcVar7;
  type_2 *puVar8;
  int var_8;
  type_2 uVar10;
  type_2 uVar11;
  char *pcVar12;
  int var_7;
  int var_9;
  type_3 *var_6;
  type_4 *pcVar16;
  type_5 st;
  
  var_6 = PTR___stack_chk_guard_00112630;
  var_5 = *(int *)PTR___stack_chk_guard_00112630;
  var_1 = (*(type_4 *)PTR_mkdir_001126a0)(dirname,0x1c0);
  if ((var_1 < 0) && (piVar5 = (int *)(*(type_4 *)PTR___errno_location_00112460)(), *piVar5 != 0x11))
  {
    uVar10 = (*(type_4 *)PTR_strerror_00112184)();
    pcVar7 = (char *)(*(type_4 *)PTR_dupprintf_001113a8)(var_2 + -0x63e4,dirname,uVar10);
  }
  else {
    pcVar12 = dirname;
    var_1 = (*(type_4 *)PTR___xstat64_00112014)(3,dirname,&st);
    var_3 = st.st_uid;
    if (var_1 < 0) {
      puVar8 = (type_2 *)(*(type_4 *)PTR___errno_location_00112460)();
      uVar10 = (*(type_4 *)PTR_strerror_00112184)(*puVar8);
      pcVar7 = (char *)(*(type_4 *)PTR_dupprintf_001113a8)(var_2 + -0x63d4,dirname,uVar10);
    }
    else {
      var_4 = (*(type_4 *)PTR_getuid_001125b4)();
      if (var_3 == var_4) {
        if ((st.st_mode & 0x3f) == 0) {
          pcVar7 = (char *)0x0;
          dirname = pcVar12;
        }
        else {
          pcVar7 = (char *)(*(type_4 *)PTR_dupprintf_001113a8)
                                     (var_2 + -0x6398,dirname,st.st_mode & 0x1ff);
        }
      }
      else {
        pcVar7 = (char *)(*(type_4 *)PTR_dupprintf_001113a8)
                                   (var_2 + -0x63c4,dirname,st.st_uid);
      }
    }
  }
  if (var_5 != *(int *)var_6) {
    var_6 = PTR___stack_chk_fail_001122c8;
    (*(type_4 *)PTR___stack_chk_fail_001122c8)();
    var_1 = 0;
    var_7 = *(int *)(var_6 + 0x502a4);
    var_9 = *(int *)(var_6 + 0x502a4);
    do {
      var_8 = (**(type_4 **)(var_6 + 0x51178))(var_5 + var_1,var_7 + -0x76e0);
      var_1 = var_1 + var_8;
      if (var_1 < 1) {
        pcVar16 = *(type_4 **)(var_6 + 0x51058);
        var_10 = *(char *)(var_5 + var_1);
      }
      else {
        uVar10 = (**(type_4 **)(var_6 + 0x50354))(var_9 + -0x4720,var_1,var_5);
        var_8 = (**(type_4 **)(var_6 + 0x5164c))(uVar10,dirname);
        if ((var_8 < 0) && (piVar5 = (int *)(**(type_4 **)(var_6 + 0x5140c))(), *piVar5 != 0x11)) {
          uVar11 = (**(type_4 **)(var_6 + 0x51130))();
          pcVar7 = (char *)(**(type_4 **)(var_6 + 0x50354))
                                     (*(int *)(var_6 + 0x502a0) + -0x63e4,uVar10,uVar11);
          (**(type_4 **)(var_6 + 0x5029c))(uVar10);
          return pcVar7;
        }
        (**(type_4 **)(var_6 + 0x5029c))(uVar10);
        var_10 = *(char *)(var_5 + var_1);
        pcVar16 = *(type_4 **)(var_6 + 0x51058);
      }
      if (var_10 == '\0') {
        return (char *)0x0;
      }
      var_8 = (*pcVar16)(var_5 + var_1,var_7 + -0x76e0);
      var_1 = var_1 + var_8;
    } while( true );
  }
  return pcVar7;
}


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

undefined4 MASKED(undefined4 param_1)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 uVar8;
  int iVar9;
  int iVar10;
  undefined *puVar11;
  code *pcVar12;
  undefined1 auStack_b8 [24];
  uint local_a0;
  int local_98;
  int local_14;
  
  puVar11 = PTR___stack_chk_guard_00112630;
  local_14 = *(int *)PTR___stack_chk_guard_00112630;
  iVar2 = (*(code *)PTR_mkdir_001126a0)(param_1,0x1c0);
  if ((iVar2 < 0) && (piVar3 = (int *)(*(code *)PTR___errno_location_00112460)(), *piVar3 != 0x11))
  {
    uVar5 = (*(code *)PTR_strerror_00112184)();
    uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63e4,param_1,uVar5);
  }
  else {
    uVar8 = param_1;
    iVar4 = (*(code *)PTR___xstat64_00112014)(3,param_1,auStack_b8);
    iVar2 = local_98;
    if (iVar4 < 0) {
      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00112460)();
      uVar5 = (*(code *)PTR_strerror_00112184)(*puVar6);
      uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63d4,param_1,uVar5);
    }
    else {
      iVar4 = (*(code *)PTR_getuid_001125b4)();
      if (iVar2 == iVar4) {
        if ((local_a0 & 0x3f) == 0) {
          uVar5 = 0;
          param_1 = uVar8;
        }
        else {
          uVar5 = (*(code *)PTR_dupprintf_001113a8)
                            (PTR_DAT_001112f4 + -0x6398,param_1,local_a0 & 0x1ff);
        }
      }
      else {
        uVar5 = (*(code *)PTR_dupprintf_001113a8)(PTR_DAT_001112f4 + -0x63c4,param_1,local_98);
      }
    }
  }
  if (local_14 != *(int *)puVar11) {
    iVar2 = local_14;
    puVar11 = PTR___stack_chk_fail_001122c8;
    (*(code *)PTR___stack_chk_fail_001122c8)();
    iVar4 = 0;
    iVar9 = *(int *)(puVar11 + 0x502a4);
    iVar10 = *(int *)(puVar11 + 0x502a4);
    do {
      iVar7 = (**(code **)(puVar11 + 0x51178))(iVar2 + iVar4,iVar9 + -0x76e0);
      iVar4 = iVar4 + iVar7;
      if (iVar4 < 1) {
        pcVar12 = *(code **)(puVar11 + 0x51058);
        cVar1 = *(char *)(iVar2 + iVar4);
      }
      else {
        uVar5 = (**(code **)(puVar11 + 0x50354))(iVar10 + -0x4720,iVar4,iVar2);
        iVar7 = (**(code **)(puVar11 + 0x5164c))(uVar5,param_1);
        if ((iVar7 < 0) && (piVar3 = (int *)(**(code **)(puVar11 + 0x5140c))(), *piVar3 != 0x11)) {
          uVar8 = (**(code **)(puVar11 + 0x51130))();
          uVar8 = (**(code **)(puVar11 + 0x50354))
                            (*(int *)(puVar11 + 0x502a0) + -0x63e4,uVar5,uVar8);
          (**(code **)(puVar11 + 0x5029c))(uVar5);
          return uVar8;
        }
        (**(code **)(puVar11 + 0x5029c))(uVar5);
        cVar1 = *(char *)(iVar2 + iVar4);
        pcVar12 = *(code **)(puVar11 + 0x51058);
      }
      if (cVar1 == '\0') {
        return 0;
      }
      iVar7 = (*pcVar12)(iVar2 + iVar4,iVar9 + -0x76e0);
      iVar4 = iVar4 + iVar7;
    } while( true );
  }
  return uVar5;
}

