
int chdir_long(char *dir)

{
  FILE *stream;
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined1 *puVar4;
  undefined4 uVar5;
  char cVar6;
  char *dir_00;
  char *pcVar7;
  int iVar8;
  code *pcVar9;
  undefined *puVar10;
  longlong lVar11;
  cd_buf cdb;
  
  stream = *(FILE **)PTR___stack_chk_guard_000333c4;
  iVar1 = (*(code *)PTR_chdir_000333b4)();
  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))
  {
    uVar3 = (*(code *)PTR_strlen_00033354)(dir);
    cdb.fd = -100;
    if (uVar3 == 0) {
      iVar1 = (*(code *)PTR___assert_fail_000332b0)
                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,
                         PTR_LAB_00033108 + 0x2dbc);
      return iVar1;
    }
    if (uVar3 < 0x1000) {
      iVar1 = (*(code *)PTR___assert_fail_000332b0)
                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,
                         PTR_LAB_00033108 + 0x2dbc);
      return iVar1;
    }
    iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);
    if (iVar1 == 2) {
      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);
      if (puVar4 != (undefined1 *)0x0) {
        *puVar4 = 0;
        iVar1 = cdb_advance_fd(&cdb,dir);
        *puVar4 = 0x2f;
        if (iVar1 != 0) goto LAB_0001f050;
        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);
        dir_00 = puVar4 + 1 + iVar1;
        goto LAB_0001ef44;
      }
      *piVar2 = 0x4e;
      iVar1 = -1;
    }
    else {
      dir_00 = dir;
      if (iVar1 == 0) {
LAB_0001ef44:
        cVar6 = *dir_00;
LAB_0001ef48:
        if (cVar6 == '/') {
          iVar1 = (*(code *)PTR___assert_fail_000332b0)
                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,
                             PTR_LAB_00033108 + 0x2dbc);
          return iVar1;
        }
        pcVar7 = dir + uVar3;
        if (pcVar7 < dir_00) {
          iVar1 = (*(code *)PTR___assert_fail_000332b0)
                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,
                             PTR_LAB_00033108 + 0x2dbc);
          return iVar1;
        }
        if (0xfff < (int)pcVar7 - (int)dir_00) {
          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);
          puVar10 = PTR_LAB_00033108 + 0x2bcc;
          do {
            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);
            if (puVar4 == (undefined1 *)0x0) {
              *piVar2 = 0x4e;
              iVar1 = -1;
              goto LAB_0001eeac;
            }
            *puVar4 = 0;
            if (0xfff < (int)puVar4 - (int)dir_00) {
              iVar1 = (*(code *)PTR___assert_fail_000332b0)
                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,
                                 PTR_LAB_00033108 + 0x2dbc);
              return iVar1;
            }
            iVar1 = (*pcVar9)(&cdb,dir_00);
            *puVar4 = 0x2f;
            if (iVar1 != 0) goto LAB_0001f050;
            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);
            dir_00 = puVar4 + 1 + iVar1;
          } while (0xfff < (int)pcVar7 - (int)dir_00);
        }
        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&
           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {
          cdb_free(&cdb);
          iVar1 = 0;
          goto LAB_0001eeac;
        }
      }
      else {
        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);
        dir_00 = dir + iVar1;
        if (iVar8 == 0) {
          cVar6 = *dir_00;
          goto LAB_0001ef48;
        }
      }
LAB_0001f050:
      iVar1 = *piVar2;
      cdb_free(&cdb);
      *piVar2 = iVar1;
      iVar1 = -1;
    }
  }
LAB_0001eeac:
  if (stream == *(FILE **)PTR___stack_chk_guard_000333c4) {
    return iVar1;
  }
  puVar10 = PTR___stack_chk_fail_000333a8;
  (*(code *)PTR___stack_chk_fail_000333a8)();
  iVar1 = (**(code **)(puVar10 + 0x140fc))();
  if (iVar1 < 0) {
    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);
    return iVar1;
  }
  iVar1 = (**(code **)(puVar10 + 0x1413c))();
  if (iVar1 != 0) {
    uVar5 = (**(code **)(puVar10 + 0x140fc))();
    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);
    if (lVar11 == -1) goto LAB_0001f344;
  }
  iVar1 = rpl_fflush(stream);
  if (iVar1 != 0) {
    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();
    iVar8 = *piVar2;
    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);
    if (iVar8 == 0) {
      return iVar1;
    }
    *piVar2 = iVar8;
    return -1;
  }
LAB_0001f344:
  iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);
  return iVar1;
}



int chdir_long(char *param_1)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined1 *puVar4;
  int iVar5;
  undefined4 uVar6;
  char cVar7;
  char *pcVar8;
  code *pcVar9;
  undefined *puVar10;
  longlong lVar11;
  undefined4 local_28;
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_000333c4;
  iVar1 = (*(code *)PTR_chdir_000333b4)();
  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))
  {
    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);
    local_28 = 0xffffff9c;
    if (uVar3 == 0) {
      iVar1 = (*(code *)PTR___assert_fail_000332b0)
                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,
                         PTR_LAB_00033108 + 0x2dbc);
      return iVar1;
    }
    if (uVar3 < 0x1000) {
      iVar1 = (*(code *)PTR___assert_fail_000332b0)
                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,
                         PTR_LAB_00033108 + 0x2dbc);
      return iVar1;
    }
    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);
    if (iVar1 == 2) {
      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);
      if (puVar4 != (undefined1 *)0x0) {
        *puVar4 = 0;
        iVar1 = FUN_0001eda4(&local_28,param_1);
        *puVar4 = 0x2f;
        if (iVar1 != 0) goto LAB_0001f050;
        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);
        pcVar8 = puVar4 + 1 + iVar1;
        goto LAB_0001ef44;
      }
      *piVar2 = 0x4e;
      iVar1 = -1;
    }
    else {
      pcVar8 = param_1;
      if (iVar1 == 0) {
LAB_0001ef44:
        cVar7 = *pcVar8;
LAB_0001ef48:
        if (cVar7 == '/') {
          iVar1 = (*(code *)PTR___assert_fail_000332b0)
                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,
                             PTR_LAB_00033108 + 0x2dbc);
          return iVar1;
        }
        param_1 = param_1 + uVar3;
        if (param_1 < pcVar8) {
          iVar1 = (*(code *)PTR___assert_fail_000332b0)
                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,
                             PTR_LAB_00033108 + 0x2dbc);
          return iVar1;
        }
        if (0xfff < (int)param_1 - (int)pcVar8) {
          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);
          puVar10 = PTR_LAB_00033108 + 0x2bcc;
          do {
            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);
            if (puVar4 == (undefined1 *)0x0) {
              *piVar2 = 0x4e;
              iVar1 = -1;
              goto LAB_0001eeac;
            }
            *puVar4 = 0;
            if (0xfff < (int)puVar4 - (int)pcVar8) {
              iVar1 = (*(code *)PTR___assert_fail_000332b0)
                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,
                                 PTR_LAB_00033108 + 0x2dbc);
              return iVar1;
            }
            iVar1 = (*pcVar9)(&local_28,pcVar8);
            *puVar4 = 0x2f;
            if (iVar1 != 0) goto LAB_0001f050;
            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);
            pcVar8 = puVar4 + 1 + iVar1;
          } while (0xfff < (int)param_1 - (int)pcVar8);
        }
        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&
           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {
          FUN_0001ed30(&local_28);
          iVar1 = 0;
          goto LAB_0001eeac;
        }
      }
      else {
        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);
        pcVar8 = param_1 + iVar1;
        if (iVar5 == 0) {
          cVar7 = *pcVar8;
          goto LAB_0001ef48;
        }
      }
LAB_0001f050:
      iVar1 = *piVar2;
      FUN_0001ed30(&local_28);
      *piVar2 = iVar1;
      iVar1 = -1;
    }
  }
LAB_0001eeac:
  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {
    return iVar1;
  }
  iVar1 = local_24;
  puVar10 = PTR___stack_chk_fail_000333a8;
  (*(code *)PTR___stack_chk_fail_000333a8)();
  iVar5 = (**(code **)(puVar10 + 0x140fc))();
  if (iVar5 < 0) {
    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);
    return iVar1;
  }
  iVar5 = (**(code **)(puVar10 + 0x1413c))();
  if (iVar5 != 0) {
    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);
    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);
    if (lVar11 == -1) goto LAB_0001f344;
  }
  iVar5 = rpl_fflush(iVar1);
  if (iVar5 != 0) {
    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();
    iVar5 = *piVar2;
    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);
    if (iVar5 == 0) {
      return iVar1;
    }
    *piVar2 = iVar5;
    return -1;
  }
LAB_0001f344:
  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);
  return iVar1;
}


lui gp,0x2
addiu gp,gp,-0x3d58
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
or s2,a0,zero
lw v0,-0x7d0c(gp)
lw v0,0x0(v0)
sw v0,0x1c(sp)
lw t9,-0x7d1c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001eea8
_or s0,v0,zero
lw t9,-0x7da0(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s6,v0,zero
lw v1,0x0(v0)
li v0,0x4e
beq v1,v0,0x0001eee4
_or a0,s2,zero
or v0,s0,zero
lw a0,0x1c(sp)
lw v1,-0x7d0c(gp)
lw v1,0x0(v1)
bne a0,v1,0x0001f218
_lw ra,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7d7c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s3,v0,zero
li v0,-0x64
beq s3,zero,0x0001f078
_sw v0,0x18(sp)
sltiu v0,s3,0x1000
bne v0,zero,0x0001f0a0
_lw a1,-0x7fc8(gp)
addiu a1,a1,0x2bcc
or a0,s2,zero
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
li v0,0x2
beq s1,v0,0x0001f0c8
_addiu a2,s3,-0x3
bne s1,zero,0x0001f14c
_lw a1,-0x7fc8(gp)
or s1,s2,zero
lb v1,0x0(s1)
li v0,0x2f
beq v1,v0,0x0001f178
_lw a3,-0x7fc8(gp)
addu s2,s2,s3
sltu v0,s2,s1
bne v0,zero,0x0001f19c
_subu v0,s2,s1
slti v0,v0,0x1000
bne v0,zero,0x0001f008
_li a2,0x1000
addiu s5,sp,0x18
lw s3,-0x7fc8(gp)
addiu s3,s3,-0x125c
lw s4,-0x7fc8(gp)
addiu s4,s4,0x2bcc
li a1,0x2f
or a0,s1,zero
lw t9,-0x7d78(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001f1c0
_or s0,v0,zero
subu v1,v0,s1
slti v1,v1,0x1000
beq v1,zero,0x0001f1d0
_sb zero,0x0(v0)
or a1,s1,zero
or a0,s5,zero
or t9,s3,zero
jalr t9
_nop
lw gp,0x10(sp)
li v1,0x2f
bne v0,zero,0x0001f050
_sb v1,0x0(s0)
addiu s0,s0,0x1
or a1,s4,zero
or a0,s0,zero
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x10(sp)
addu s1,s0,v0
subu v0,s2,s1
slti v0,v0,0x1000
beq v0,zero,0x0001ef84
_li a2,0x1000
sltu s2,s1,s2
beq s2,zero,0x0001f038
_lw a0,0x18(sp)
or a1,s1,zero
addiu a0,sp,0x18
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x125c
bal 0x0001eda4
_nop
lw gp,0x10(sp)
bne v0,zero,0x0001f050
_lw a0,0x18(sp)
lw t9,-0x7ddc(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001f1f8
_or s0,v0,zero
lw s0,0x0(s6)
addiu a0,sp,0x18
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x12d0
bal 0x0001ed30
_nop
lw gp,0x10(sp)
sw s0,0x0(s6)
b 0x0001eea8
_li s0,-0x1
lw a3,-0x7fc8(gp)
addiu a3,a3,0x2dbc
li a2,0x7e
lw a1,-0x7fc8(gp)
addiu a1,a1,0x2d44
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2d68
lw t9,-0x7e20(gp)
jalr t9
_nop
lw a3,-0x7fc8(gp)
addiu a3,a3,0x2dbc
li a2,0x7f
lw a1,-0x7fc8(gp)
addiu a1,a1,0x2d44
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2d70
lw t9,-0x7e20(gp)
jalr t9
_nop
li a1,0x2f
addiu a0,s2,0x3
lw t9,-0x7e54(gp)
bal 0x0001fdf0
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001f13c
_or s0,v0,zero
sb zero,0x0(v0)
or a1,s2,zero
addiu a0,sp,0x18
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x125c
bal 0x0001eda4
_nop
lw gp,0x10(sp)
li v1,0x2f
bne v0,zero,0x0001f050
_sb v1,0x0(s0)
addiu s0,s0,0x1
lw a1,-0x7fc8(gp)
addiu a1,a1,0x2bcc
or a0,s0,zero
lw t9,-0x7e18(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0001ef44
_addu s1,s0,v0
li v0,0x4e
sw v0,0x0(s6)
b 0x0001eea8
_li s0,-0x1
addiu a1,a1,0x2bcc
addiu a0,sp,0x18
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x125c
bal 0x0001eda4
_nop
lw gp,0x10(sp)
bne v0,zero,0x0001f050
_addu s1,s2,s1
b 0x0001ef48
_lb v1,0x0(s1)
addiu a3,a3,0x2dbc
li a2,0xa2
lw a1,-0x7fc8(gp)
addiu a1,a1,0x2d44
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2d7c
lw t9,-0x7e20(gp)
jalr t9
_nop
addiu a3,a3,0x2dbc
li a2,0xa3
lw a1,-0x7fc8(gp)
addiu a1,a1,0x2d44
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2d88
lw t9,-0x7e20(gp)
jalr t9
_nop
li v0,0x4e
sw v0,0x0(s6)
b 0x0001eea8
_li s0,-0x1
lw a3,-0x7fc8(gp)
addiu a3,a3,0x2dbc
li a2,0xb3
lw a1,-0x7fc8(gp)
addiu a1,a1,0x2d44
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2d98
lw t9,-0x7e20(gp)
jalr t9
_nop
addiu a0,sp,0x18
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x12d0
bal 0x0001ed30
_nop
lw gp,0x10(sp)
b 0x0001eeac
_or v0,s0,zero
lw t9,-0x7d28(gp)
jalr t9
_nop
nop
nop
nop
(translation_unit "int chdir_long(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}\n\n" (function_definition "int chdir_long(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}" primitive_type (function_declarator "chdir_long(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "longlong lVar11;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_chdir_000333b4)();" (assignment_expression "iVar1 = (*(code *)PTR_chdir_000333b4)()" identifier = (call_expression "(*(code *)PTR_chdir_000333b4)()" (parenthesized_expression "(*(code *)PTR_chdir_000333b4)" ( (pointer_expression "*(code *)PTR_chdir_000333b4" * (cast_expression "(code *)PTR_chdir_000333b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))" ( (binary_expression "(iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 == 0x4e" (pointer_expression "*piVar2" * identifier) == number_literal)) ))) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" { (expression_statement "uVar3 = (*(code *)PTR_strlen_00033354)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_00033354)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00033354)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00033354)" ( (pointer_expression "*(code *)PTR_strlen_00033354" * (cast_expression "(code *)PTR_strlen_00033354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_28 = 0xffffff9c;" (assignment_expression "local_28 = 0xffffff9c" identifier = number_literal) ;) (if_statement "if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d68" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" if (parenthesized_expression "(uVar3 < 0x1000)" ( (binary_expression "uVar3 < 0x1000" identifier < number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d70" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_00033108 + 0x2bcc)" ( identifier , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }" { (expression_statement "puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);" (assignment_expression "puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" identifier = (cast_expression "(undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" identifier (argument_list "(param_1 + 3,0x2f,uVar3 - 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) , number_literal , (binary_expression "uVar3 - 3" identifier - number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "iVar1 = FUN_0001eda4(&local_28,param_1);" (assignment_expression "iVar1 = FUN_0001eda4(&local_28,param_1)" identifier = (call_expression "FUN_0001eda4(&local_28,param_1)" identifier (argument_list "(&local_28,param_1)" ( (pointer_expression "&local_28" & identifier) , identifier )))) ;) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001f050;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" ( (binary_expression "puVar4 + 1" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (expression_statement "pcVar8 = puVar4 + 1 + iVar1;" (assignment_expression "pcVar8 = puVar4 + 1 + iVar1" identifier = (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" identifier + number_literal) + identifier)) ;) (goto_statement "goto LAB_0001ef44;" goto statement_identifier ;) })) (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" else (compound_statement "{\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" { (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }" { (labeled_statement "LAB_0001ef44:\n        cVar7 = *pcVar8;" statement_identifier : (expression_statement "cVar7 = *pcVar8;" (assignment_expression "cVar7 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;)) (labeled_statement "LAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" statement_identifier : (if_statement "if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" if (parenthesized_expression "(cVar7 == '/')" ( (binary_expression "cVar7 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d7c" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "param_1 = param_1 + uVar3;" (assignment_expression "param_1 = param_1 + uVar3" identifier = (binary_expression "param_1 + uVar3" identifier + identifier)) ;) (if_statement "if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" if (parenthesized_expression "(param_1 < pcVar8)" ( (binary_expression "param_1 < pcVar8" identifier < identifier) )) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d88" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }" if (parenthesized_expression "(0xfff < (int)param_1 - (int)pcVar8)" ( (binary_expression "0xfff < (int)param_1 - (int)pcVar8" number_literal < (binary_expression "(int)param_1 - (int)pcVar8" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }" { (expression_statement "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c)" identifier = (cast_expression "(code *)(PTR_LAB_00033108 + -0x125c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00033108 + -0x125c)" ( (binary_expression "PTR_LAB_00033108 + -0x125c" identifier + number_literal) )))) ;) (expression_statement "puVar10 = PTR_LAB_00033108 + 0x2bcc;" (assignment_expression "puVar10 = PTR_LAB_00033108 + 0x2bcc" identifier = (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal)) ;) (do_statement "do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);" do (compound_statement "{\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          }" { (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" (parenthesized_expression "(*(code *)PTR_memrchr_00033358)" ( (pointer_expression "*(code *)PTR_memrchr_00033358" * (cast_expression "(code *)PTR_memrchr_00033358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,0x2f,0x1000)" ( identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" if (parenthesized_expression "(puVar4 == (undefined1 *)0x0)" ( (binary_expression "puVar4 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" { (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0001eeac;" goto statement_identifier ;) })) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" if (parenthesized_expression "(0xfff < (int)puVar4 - (int)pcVar8)" ( (binary_expression "0xfff < (int)puVar4 - (int)pcVar8" number_literal < (binary_expression "(int)puVar4 - (int)pcVar8" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d98" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*pcVar9)(&local_28,pcVar8);" (assignment_expression "iVar1 = (*pcVar9)(&local_28,pcVar8)" identifier = (call_expression "(*pcVar9)(&local_28,pcVar8)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(&local_28,pcVar8)" ( (pointer_expression "&local_28" & identifier) , identifier )))) ;) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001f050;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1,puVar10)" ( (binary_expression "puVar4 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "pcVar8 = puVar4 + 1 + iVar1;" (assignment_expression "pcVar8 = puVar4 + 1 + iVar1" identifier = (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" identifier + number_literal) + identifier)) ;) }) while (parenthesized_expression "(0xfff < (int)param_1 - (int)pcVar8)" ( (binary_expression "0xfff < (int)param_1 - (int)pcVar8" number_literal < (binary_expression "(int)param_1 - (int)pcVar8" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) ;) })) (if_statement "if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" if (parenthesized_expression "(((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0))" ( (binary_expression "((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)" (parenthesized_expression "((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0))" ( (binary_expression "(param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)" (parenthesized_expression "(param_1 <= pcVar8)" ( (binary_expression "param_1 <= pcVar8" identifier <= identifier) )) || (parenthesized_expression "(iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001eda4(&local_28,pcVar8)" identifier = (call_expression "FUN_0001eda4(&local_28,pcVar8)" identifier (argument_list "(&local_28,pcVar8)" ( (pointer_expression "&local_28" & identifier) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(local_28)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_28)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" { (expression_statement "FUN_0001ed30(&local_28);" (call_expression "FUN_0001ed30(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001eeac;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" else (compound_statement "{\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" { (expression_statement "iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc)" identifier (argument_list "(&local_28,PTR_LAB_00033108 + 0x2bcc)" ( (pointer_expression "&local_28" & identifier) , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (expression_statement "pcVar8 = param_1 + iVar1;" (assignment_expression "pcVar8 = param_1 + iVar1" identifier = (binary_expression "param_1 + iVar1" identifier + identifier)) ;) (if_statement "if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }" { (expression_statement "cVar7 = *pcVar8;" (assignment_expression "cVar7 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (goto_statement "goto LAB_0001ef48;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_0001f050:\n      iVar1 = *piVar2;" statement_identifier : (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;)) (expression_statement "FUN_0001ed30(&local_28);" (call_expression "FUN_0001ed30(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) })) (labeled_statement "LAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_000333c4)" ( (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_000333c4" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "iVar1 = local_24;" (assignment_expression "iVar1 = local_24" identifier = identifier) ;) (expression_statement "puVar10 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar10 = PTR___stack_chk_fail_000333a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = (**(code **)(puVar10 + 0x140fc))();" (assignment_expression "iVar5 = (**(code **)(puVar10 + 0x140fc))()" identifier = (call_expression "(**(code **)(puVar10 + 0x140fc))()" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" ( (pointer_expression "**(code **)(puVar10 + 0x140fc)" * (pointer_expression "*(code **)(puVar10 + 0x140fc)" * (cast_expression "(code **)(puVar10 + 0x140fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140fc)" ( (binary_expression "puVar10 + 0x140fc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }" { (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar5 = (**(code **)(puVar10 + 0x1413c))();" (assignment_expression "iVar5 = (**(code **)(puVar10 + 0x1413c))()" identifier = (call_expression "(**(code **)(puVar10 + 0x1413c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1413c))" ( (pointer_expression "**(code **)(puVar10 + 0x1413c)" * (pointer_expression "*(code **)(puVar10 + 0x1413c)" * (cast_expression "(code **)(puVar10 + 0x1413c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1413c)" ( (binary_expression "puVar10 + 0x1413c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" { (expression_statement "uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);" (assignment_expression "uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140fc))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" ( (pointer_expression "**(code **)(puVar10 + 0x140fc)" * (pointer_expression "*(code **)(puVar10 + 0x140fc)" * (cast_expression "(code **)(puVar10 + 0x140fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140fc)" ( (binary_expression "puVar10 + 0x140fc" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);" (assignment_expression "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6)" identifier = (call_expression "(**(code **)(puVar10 + 0x14154))(uVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x14154))" ( (pointer_expression "**(code **)(puVar10 + 0x14154)" * (pointer_expression "*(code **)(puVar10 + 0x14154)" * (cast_expression "(code **)(puVar10 + 0x14154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x14154)" ( (binary_expression "puVar10 + 0x14154" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if (lVar11 == -1) goto LAB_0001f344;" if (parenthesized_expression "(lVar11 == -1)" ( (binary_expression "lVar11 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0001f344;" goto statement_identifier ;)) })) (expression_statement "iVar5 = rpl_fflush(iVar1);" (assignment_expression "iVar5 = rpl_fflush(iVar1)" identifier = (call_expression "rpl_fflush(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }" { (expression_statement "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))()" identifier = (cast_expression "(int *)(**(code **)(puVar10 + 0x14100))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x14100))()" (parenthesized_expression "(**(code **)(puVar10 + 0x14100))" ( (pointer_expression "**(code **)(puVar10 + 0x14100)" * (pointer_expression "*(code **)(puVar10 + 0x14100)" * (cast_expression "(code **)(puVar10 + 0x14100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x14100)" ( (binary_expression "puVar10 + 0x14100" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return -1;" return number_literal ;) })) (labeled_statement "LAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" statement_identifier : (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int chdir_long(char *dir)\n\n{\n  FILE *stream;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  undefined4 uVar5;\n  char cVar6;\n  char *dir_00;\n  char *pcVar7;\n  int iVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  cd_buf cdb;\n  \n  stream = *(FILE **)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(dir);\n    cdb.fd = -100;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (stream == *(FILE **)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar1 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar1 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    return iVar1;\n  }\n  iVar1 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar1 != 0) {\n    uVar5 = (**(code **)(puVar10 + 0x140fc))();\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar1 = rpl_fflush(stream);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar8 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    if (iVar8 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar8;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n  return iVar1;\n}\n\n" (function_definition "int chdir_long(char *dir)\n\n{\n  FILE *stream;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  undefined4 uVar5;\n  char cVar6;\n  char *dir_00;\n  char *pcVar7;\n  int iVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  cd_buf cdb;\n  \n  stream = *(FILE **)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(dir);\n    cdb.fd = -100;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (stream == *(FILE **)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar1 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar1 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    return iVar1;\n  }\n  iVar1 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar1 != 0) {\n    uVar5 = (**(code **)(puVar10 + 0x140fc))();\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar1 = rpl_fflush(stream);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar8 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    if (iVar8 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar8;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n  return iVar1;\n}" primitive_type (function_declarator "chdir_long(char *dir)" identifier (parameter_list "(char *dir)" ( (parameter_declaration "char *dir" primitive_type (pointer_declarator "*dir" * identifier)) ))) (compound_statement "{\n  FILE *stream;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  undefined4 uVar5;\n  char cVar6;\n  char *dir_00;\n  char *pcVar7;\n  int iVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  cd_buf cdb;\n  \n  stream = *(FILE **)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(dir);\n    cdb.fd = -100;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (stream == *(FILE **)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar1 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar1 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    return iVar1;\n  }\n  iVar1 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar1 != 0) {\n    uVar5 = (**(code **)(puVar10 + 0x140fc))();\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar1 = rpl_fflush(stream);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar8 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    if (iVar8 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar8;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n  return iVar1;\n}" { (declaration "FILE *stream;" type_identifier (pointer_declarator "*stream" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "char *dir_00;" primitive_type (pointer_declarator "*dir_00" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "longlong lVar11;" type_identifier identifier ;) (declaration "cd_buf cdb;" type_identifier identifier ;) (expression_statement "stream = *(FILE **)PTR___stack_chk_guard_000333c4;" (assignment_expression "stream = *(FILE **)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(FILE **)PTR___stack_chk_guard_000333c4" * (cast_expression "(FILE **)PTR___stack_chk_guard_000333c4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_chdir_000333b4)();" (assignment_expression "iVar1 = (*(code *)PTR_chdir_000333b4)()" identifier = (call_expression "(*(code *)PTR_chdir_000333b4)()" (parenthesized_expression "(*(code *)PTR_chdir_000333b4)" ( (pointer_expression "*(code *)PTR_chdir_000333b4" * (cast_expression "(code *)PTR_chdir_000333b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(dir);\n    cdb.fd = -100;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))" ( (binary_expression "(iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 == 0x4e" (pointer_expression "*piVar2" * identifier) == number_literal)) ))) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_strlen_00033354)(dir);\n    cdb.fd = -100;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" { (expression_statement "uVar3 = (*(code *)PTR_strlen_00033354)(dir);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_00033354)(dir)" identifier = (call_expression "(*(code *)PTR_strlen_00033354)(dir)" (parenthesized_expression "(*(code *)PTR_strlen_00033354)" ( (pointer_expression "*(code *)PTR_strlen_00033354" * (cast_expression "(code *)PTR_strlen_00033354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dir)" ( identifier )))) ;) (expression_statement "cdb.fd = -100;" (assignment_expression "cdb.fd = -100" (field_expression "cdb.fd" identifier . field_identifier) = number_literal) ;) (if_statement "if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d68" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" if (parenthesized_expression "(uVar3 < 0x1000)" ( (binary_expression "uVar3 < 0x1000" identifier < number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d70" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(dir,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dir,PTR_LAB_00033108 + 0x2bcc)" ( identifier , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }" { (expression_statement "puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3);" (assignment_expression "puVar4 = (undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3)" identifier = (cast_expression "(undefined1 *)rpl_memchr(dir + 3,0x2f,uVar3 - 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "rpl_memchr(dir + 3,0x2f,uVar3 - 3)" identifier (argument_list "(dir + 3,0x2f,uVar3 - 3)" ( (binary_expression "dir + 3" identifier + number_literal) , number_literal , (binary_expression "uVar3 - 3" identifier - number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *puVar4 = 0;\n        iVar1 = cdb_advance_fd(&cdb,dir);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "iVar1 = cdb_advance_fd(&cdb,dir);" (assignment_expression "iVar1 = cdb_advance_fd(&cdb,dir)" identifier = (call_expression "cdb_advance_fd(&cdb,dir)" identifier (argument_list "(&cdb,dir)" ( (pointer_expression "&cdb" & identifier) , identifier )))) ;) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001f050;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" ( (binary_expression "puVar4 + 1" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (expression_statement "dir_00 = puVar4 + 1 + iVar1;" (assignment_expression "dir_00 = puVar4 + 1 + iVar1" identifier = (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" identifier + number_literal) + identifier)) ;) (goto_statement "goto LAB_0001ef44;" goto statement_identifier ;) })) (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" else (compound_statement "{\n      dir_00 = dir;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      cdb_free(&cdb);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" { (expression_statement "dir_00 = dir;" (assignment_expression "dir_00 = dir" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0001ef44:\n        cVar6 = *dir_00;\nLAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        pcVar7 = dir + uVar3;\n        if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }\n        if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }" { (labeled_statement "LAB_0001ef44:\n        cVar6 = *dir_00;" statement_identifier : (expression_statement "cVar6 = *dir_00;" (assignment_expression "cVar6 = *dir_00" identifier = (pointer_expression "*dir_00" * identifier)) ;)) (labeled_statement "LAB_0001ef48:\n        if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" statement_identifier : (if_statement "if (cVar6 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" if (parenthesized_expression "(cVar6 == '/')" ( (binary_expression "cVar6 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d7c" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "pcVar7 = dir + uVar3;" (assignment_expression "pcVar7 = dir + uVar3" identifier = (binary_expression "dir + uVar3" identifier + identifier)) ;) (if_statement "if (pcVar7 < dir_00) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" if (parenthesized_expression "(pcVar7 < dir_00)" ( (binary_expression "pcVar7 < dir_00" identifier < identifier) )) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d88" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (0xfff < (int)pcVar7 - (int)dir_00) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }" if (parenthesized_expression "(0xfff < (int)pcVar7 - (int)dir_00)" ( (binary_expression "0xfff < (int)pcVar7 - (int)dir_00" number_literal < (binary_expression "(int)pcVar7 - (int)dir_00" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dir_00" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);\n        }" { (expression_statement "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c)" identifier = (cast_expression "(code *)(PTR_LAB_00033108 + -0x125c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00033108 + -0x125c)" ( (binary_expression "PTR_LAB_00033108 + -0x125c" identifier + number_literal) )))) ;) (expression_statement "puVar10 = PTR_LAB_00033108 + 0x2bcc;" (assignment_expression "puVar10 = PTR_LAB_00033108 + 0x2bcc" identifier = (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal)) ;) (do_statement "do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)pcVar7 - (int)dir_00);" do (compound_statement "{\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&cdb,dir_00);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            dir_00 = puVar4 + 1 + iVar1;\n          }" { (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memrchr_00033358)(dir_00,0x2f,0x1000)" (parenthesized_expression "(*(code *)PTR_memrchr_00033358)" ( (pointer_expression "*(code *)PTR_memrchr_00033358" * (cast_expression "(code *)PTR_memrchr_00033358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dir_00,0x2f,0x1000)" ( identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" if (parenthesized_expression "(puVar4 == (undefined1 *)0x0)" ( (binary_expression "puVar4 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" { (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0001eeac;" goto statement_identifier ;) })) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (0xfff < (int)puVar4 - (int)dir_00) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" if (parenthesized_expression "(0xfff < (int)puVar4 - (int)dir_00)" ( (binary_expression "0xfff < (int)puVar4 - (int)dir_00" number_literal < (binary_expression "(int)puVar4 - (int)dir_00" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dir_00" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d98" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*pcVar9)(&cdb,dir_00);" (assignment_expression "iVar1 = (*pcVar9)(&cdb,dir_00)" identifier = (call_expression "(*pcVar9)(&cdb,dir_00)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(&cdb,dir_00)" ( (pointer_expression "&cdb" & identifier) , identifier )))) ;) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001f050;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1,puVar10)" ( (binary_expression "puVar4 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "dir_00 = puVar4 + 1 + iVar1;" (assignment_expression "dir_00 = puVar4 + 1 + iVar1" identifier = (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" identifier + number_literal) + identifier)) ;) }) while (parenthesized_expression "(0xfff < (int)pcVar7 - (int)dir_00)" ( (binary_expression "0xfff < (int)pcVar7 - (int)dir_00" number_literal < (binary_expression "(int)pcVar7 - (int)dir_00" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dir_00" ( (type_descriptor "int" primitive_type) ) identifier))) )) ;) })) (if_statement "if (((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)) {\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" if (parenthesized_expression "(((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0))" ( (binary_expression "((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)" (parenthesized_expression "((pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0))" ( (binary_expression "(pcVar7 <= dir_00) || (iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)" (parenthesized_expression "(pcVar7 <= dir_00)" ( (binary_expression "pcVar7 <= dir_00" identifier <= identifier) )) || (parenthesized_expression "(iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0)" ( (comma_expression "iVar1 = cdb_advance_fd(&cdb,dir_00), iVar1 == 0" (assignment_expression "iVar1 = cdb_advance_fd(&cdb,dir_00)" identifier = (call_expression "cdb_advance_fd(&cdb,dir_00)" identifier (argument_list "(&cdb,dir_00)" ( (pointer_expression "&cdb" & identifier) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(cdb.fd)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(cdb.fd)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cdb.fd)" ( (field_expression "cdb.fd" identifier . field_identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          cdb_free(&cdb);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" { (expression_statement "cdb_free(&cdb);" (call_expression "cdb_free(&cdb)" identifier (argument_list "(&cdb)" ( (pointer_expression "&cdb" & identifier) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001eeac;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }" else (compound_statement "{\n        iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);\n        dir_00 = dir + iVar1;\n        if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }\n      }" { (expression_statement "iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar8 = cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "cdb_advance_fd(&cdb,PTR_LAB_00033108 + 0x2bcc)" identifier (argument_list "(&cdb,PTR_LAB_00033108 + 0x2bcc)" ( (pointer_expression "&cdb" & identifier) , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (expression_statement "dir_00 = dir + iVar1;" (assignment_expression "dir_00 = dir + iVar1" identifier = (binary_expression "dir + iVar1" identifier + identifier)) ;) (if_statement "if (iVar8 == 0) {\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n          cVar6 = *dir_00;\n          goto LAB_0001ef48;\n        }" { (expression_statement "cVar6 = *dir_00;" (assignment_expression "cVar6 = *dir_00" identifier = (pointer_expression "*dir_00" * identifier)) ;) (goto_statement "goto LAB_0001ef48;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_0001f050:\n      iVar1 = *piVar2;" statement_identifier : (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;)) (expression_statement "cdb_free(&cdb);" (call_expression "cdb_free(&cdb)" identifier (argument_list "(&cdb)" ( (pointer_expression "&cdb" & identifier) ))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) })) (labeled_statement "LAB_0001eeac:\n  if (stream == *(FILE **)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (stream == *(FILE **)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" if (parenthesized_expression "(stream == *(FILE **)PTR___stack_chk_guard_000333c4)" ( (binary_expression "stream == *(FILE **)PTR___stack_chk_guard_000333c4" identifier == (pointer_expression "*(FILE **)PTR___stack_chk_guard_000333c4" * (cast_expression "(FILE **)PTR___stack_chk_guard_000333c4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "puVar10 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar10 = PTR___stack_chk_fail_000333a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140fc))();" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140fc))()" identifier = (call_expression "(**(code **)(puVar10 + 0x140fc))()" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" ( (pointer_expression "**(code **)(puVar10 + 0x140fc)" * (pointer_expression "*(code **)(puVar10 + 0x140fc)" * (cast_expression "(code **)(puVar10 + 0x140fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140fc)" ( (binary_expression "puVar10 + 0x140fc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    return iVar1;\n  }" { (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(stream)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(stream)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(stream)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (**(code **)(puVar10 + 0x1413c))();" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x1413c))()" identifier = (call_expression "(**(code **)(puVar10 + 0x1413c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1413c))" ( (pointer_expression "**(code **)(puVar10 + 0x1413c)" * (pointer_expression "*(code **)(puVar10 + 0x1413c)" * (cast_expression "(code **)(puVar10 + 0x1413c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1413c)" ( (binary_expression "puVar10 + 0x1413c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    uVar5 = (**(code **)(puVar10 + 0x140fc))();\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = (**(code **)(puVar10 + 0x140fc))();\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" { (expression_statement "uVar5 = (**(code **)(puVar10 + 0x140fc))();" (assignment_expression "uVar5 = (**(code **)(puVar10 + 0x140fc))()" identifier = (call_expression "(**(code **)(puVar10 + 0x140fc))()" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" ( (pointer_expression "**(code **)(puVar10 + 0x140fc)" * (pointer_expression "*(code **)(puVar10 + 0x140fc)" * (cast_expression "(code **)(puVar10 + 0x140fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140fc)" ( (binary_expression "puVar10 + 0x140fc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5);" (assignment_expression "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar5)" identifier = (call_expression "(**(code **)(puVar10 + 0x14154))(uVar5)" (parenthesized_expression "(**(code **)(puVar10 + 0x14154))" ( (pointer_expression "**(code **)(puVar10 + 0x14154)" * (pointer_expression "*(code **)(puVar10 + 0x14154)" * (cast_expression "(code **)(puVar10 + 0x14154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x14154)" ( (binary_expression "puVar10 + 0x14154" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier )))) ;) (if_statement "if (lVar11 == -1) goto LAB_0001f344;" if (parenthesized_expression "(lVar11 == -1)" ( (binary_expression "lVar11 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0001f344;" goto statement_identifier ;)) })) (expression_statement "iVar1 = rpl_fflush(stream);" (assignment_expression "iVar1 = rpl_fflush(stream)" identifier = (call_expression "rpl_fflush(stream)" identifier (argument_list "(stream)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar8 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    if (iVar8 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar8;\n    return -1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar8 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);\n    if (iVar8 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar8;\n    return -1;\n  }" { (expression_statement "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))()" identifier = (cast_expression "(int *)(**(code **)(puVar10 + 0x14100))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x14100))()" (parenthesized_expression "(**(code **)(puVar10 + 0x14100))" ( (pointer_expression "**(code **)(puVar10 + 0x14100)" * (pointer_expression "*(code **)(puVar10 + 0x14100)" * (cast_expression "(code **)(puVar10 + 0x14100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x14100)" ( (binary_expression "puVar10 + 0x14100" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar8 = *piVar2;" (assignment_expression "iVar8 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(stream)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(stream)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(stream)" ( identifier )))) ;) (if_statement "if (iVar8 == 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "*piVar2 = iVar8;" (assignment_expression "*piVar2 = iVar8" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return -1;" return number_literal ;) })) (labeled_statement "LAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);" statement_identifier : (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(stream);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(stream)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(stream)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(stream)" ( identifier )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int chdir_long(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}\n\n" (function_definition "int chdir_long(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}" primitive_type (function_declarator "chdir_long(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "longlong lVar11;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000333c4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_chdir_000333b4)();" (assignment_expression "iVar1 = (*(code *)PTR_chdir_000333b4)()" identifier = (call_expression "(*(code *)PTR_chdir_000333b4)()" (parenthesized_expression "(*(code *)PTR_chdir_000333b4)" ( (pointer_expression "*(code *)PTR_chdir_000333b4" * (cast_expression "(code *)PTR_chdir_000333b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))" ( (binary_expression "(iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" ( (pointer_expression "*(code *)PTR___errno_location_00033330" * (cast_expression "(code *)PTR___errno_location_00033330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 == 0x4e" (pointer_expression "*piVar2" * identifier) == number_literal)) ))) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" { (expression_statement "uVar3 = (*(code *)PTR_strlen_00033354)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_00033354)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00033354)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00033354)" ( (pointer_expression "*(code *)PTR_strlen_00033354" * (cast_expression "(code *)PTR_strlen_00033354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_28 = 0xffffff9c;" (assignment_expression "local_28 = 0xffffff9c" identifier = number_literal) ;) (if_statement "if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d68" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" if (parenthesized_expression "(uVar3 < 0x1000)" ( (binary_expression "uVar3 < 0x1000" identifier < number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d70" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_00033108 + 0x2bcc)" ( identifier , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }" { (expression_statement "puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);" (assignment_expression "puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" identifier = (cast_expression "(undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" identifier (argument_list "(param_1 + 3,0x2f,uVar3 - 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) , number_literal , (binary_expression "uVar3 - 3" identifier - number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "iVar1 = FUN_0001eda4(&local_28,param_1);" (assignment_expression "iVar1 = FUN_0001eda4(&local_28,param_1)" identifier = (call_expression "FUN_0001eda4(&local_28,param_1)" identifier (argument_list "(&local_28,param_1)" ( (pointer_expression "&local_28" & identifier) , identifier )))) ;) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001f050;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" ( (binary_expression "puVar4 + 1" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (expression_statement "pcVar8 = puVar4 + 1 + iVar1;" (assignment_expression "pcVar8 = puVar4 + 1 + iVar1" identifier = (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" identifier + number_literal) + identifier)) ;) (goto_statement "goto LAB_0001ef44;" goto statement_identifier ;) })) (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" else (compound_statement "{\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" { (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }" { (labeled_statement "LAB_0001ef44:\n        cVar7 = *pcVar8;" statement_identifier : (expression_statement "cVar7 = *pcVar8;" (assignment_expression "cVar7 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;)) (labeled_statement "LAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" statement_identifier : (if_statement "if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" if (parenthesized_expression "(cVar7 == '/')" ( (binary_expression "cVar7 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d7c" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "param_1 = param_1 + uVar3;" (assignment_expression "param_1 = param_1 + uVar3" identifier = (binary_expression "param_1 + uVar3" identifier + identifier)) ;) (if_statement "if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" if (parenthesized_expression "(param_1 < pcVar8)" ( (binary_expression "param_1 < pcVar8" identifier < identifier) )) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d88" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }" if (parenthesized_expression "(0xfff < (int)param_1 - (int)pcVar8)" ( (binary_expression "0xfff < (int)param_1 - (int)pcVar8" number_literal < (binary_expression "(int)param_1 - (int)pcVar8" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }" { (expression_statement "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c)" identifier = (cast_expression "(code *)(PTR_LAB_00033108 + -0x125c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00033108 + -0x125c)" ( (binary_expression "PTR_LAB_00033108 + -0x125c" identifier + number_literal) )))) ;) (expression_statement "puVar10 = PTR_LAB_00033108 + 0x2bcc;" (assignment_expression "puVar10 = PTR_LAB_00033108 + 0x2bcc" identifier = (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal)) ;) (do_statement "do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);" do (compound_statement "{\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          }" { (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" (parenthesized_expression "(*(code *)PTR_memrchr_00033358)" ( (pointer_expression "*(code *)PTR_memrchr_00033358" * (cast_expression "(code *)PTR_memrchr_00033358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,0x2f,0x1000)" ( identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" if (parenthesized_expression "(puVar4 == (undefined1 *)0x0)" ( (binary_expression "puVar4 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" { (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0001eeac;" goto statement_identifier ;) })) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" if (parenthesized_expression "(0xfff < (int)puVar4 - (int)pcVar8)" ( (binary_expression "0xfff < (int)puVar4 - (int)pcVar8" number_literal < (binary_expression "(int)puVar4 - (int)pcVar8" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" identifier = (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" ( (pointer_expression "*(code *)PTR___assert_fail_000332b0" * (cast_expression "(code *)PTR___assert_fail_000332b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" ( (binary_expression "PTR_LAB_00033108 + 0x2d98" identifier + number_literal) , (binary_expression "PTR_LAB_00033108 + 0x2d44" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00033108 + 0x2dbc" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*pcVar9)(&local_28,pcVar8);" (assignment_expression "iVar1 = (*pcVar9)(&local_28,pcVar8)" identifier = (call_expression "(*pcVar9)(&local_28,pcVar8)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(&local_28,pcVar8)" ( (pointer_expression "&local_28" & identifier) , identifier )))) ;) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001f050;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" identifier = (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" ( (pointer_expression "*(code *)PTR_strspn_000332b8" * (cast_expression "(code *)PTR_strspn_000332b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1,puVar10)" ( (binary_expression "puVar4 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "pcVar8 = puVar4 + 1 + iVar1;" (assignment_expression "pcVar8 = puVar4 + 1 + iVar1" identifier = (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" identifier + number_literal) + identifier)) ;) }) while (parenthesized_expression "(0xfff < (int)param_1 - (int)pcVar8)" ( (binary_expression "0xfff < (int)param_1 - (int)pcVar8" number_literal < (binary_expression "(int)param_1 - (int)pcVar8" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) )) ;) })) (if_statement "if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" if (parenthesized_expression "(((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0))" ( (binary_expression "((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)" (parenthesized_expression "((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0))" ( (binary_expression "(param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)" (parenthesized_expression "(param_1 <= pcVar8)" ( (binary_expression "param_1 <= pcVar8" identifier <= identifier) )) || (parenthesized_expression "(iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001eda4(&local_28,pcVar8)" identifier = (call_expression "FUN_0001eda4(&local_28,pcVar8)" identifier (argument_list "(&local_28,pcVar8)" ( (pointer_expression "&local_28" & identifier) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f4)(local_28)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" ( (pointer_expression "*(code *)PTR_fchdir_000332f4" * (cast_expression "(code *)PTR_fchdir_000332f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_28)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" { (expression_statement "FUN_0001ed30(&local_28);" (call_expression "FUN_0001ed30(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001eeac;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" else (compound_statement "{\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" { (expression_statement "iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc)" identifier = (call_expression "FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc)" identifier (argument_list "(&local_28,PTR_LAB_00033108 + 0x2bcc)" ( (pointer_expression "&local_28" & identifier) , (binary_expression "PTR_LAB_00033108 + 0x2bcc" identifier + number_literal) )))) ;) (expression_statement "pcVar8 = param_1 + iVar1;" (assignment_expression "pcVar8 = param_1 + iVar1" identifier = (binary_expression "param_1 + iVar1" identifier + identifier)) ;) (if_statement "if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }" { (expression_statement "cVar7 = *pcVar8;" (assignment_expression "cVar7 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (goto_statement "goto LAB_0001ef48;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_0001f050:\n      iVar1 = *piVar2;" statement_identifier : (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;)) (expression_statement "FUN_0001ed30(&local_28);" (call_expression "FUN_0001ed30(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) })) (labeled_statement "LAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_000333c4)" ( (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_000333c4" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" * (cast_expression "(int *)PTR___stack_chk_guard_000333c4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "iVar1 = local_24;" (assignment_expression "iVar1 = local_24" identifier = identifier) ;) (expression_statement "puVar10 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar10 = PTR___stack_chk_fail_000333a8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" * (cast_expression "(code *)PTR___stack_chk_fail_000333a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = (**(code **)(puVar10 + 0x140fc))();" (assignment_expression "iVar5 = (**(code **)(puVar10 + 0x140fc))()" identifier = (call_expression "(**(code **)(puVar10 + 0x140fc))()" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" ( (pointer_expression "**(code **)(puVar10 + 0x140fc)" * (pointer_expression "*(code **)(puVar10 + 0x140fc)" * (cast_expression "(code **)(puVar10 + 0x140fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140fc)" ( (binary_expression "puVar10 + 0x140fc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }" { (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar5 = (**(code **)(puVar10 + 0x1413c))();" (assignment_expression "iVar5 = (**(code **)(puVar10 + 0x1413c))()" identifier = (call_expression "(**(code **)(puVar10 + 0x1413c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1413c))" ( (pointer_expression "**(code **)(puVar10 + 0x1413c)" * (pointer_expression "*(code **)(puVar10 + 0x1413c)" * (cast_expression "(code **)(puVar10 + 0x1413c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1413c)" ( (binary_expression "puVar10 + 0x1413c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" { (expression_statement "uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);" (assignment_expression "uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140fc))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" ( (pointer_expression "**(code **)(puVar10 + 0x140fc)" * (pointer_expression "*(code **)(puVar10 + 0x140fc)" * (cast_expression "(code **)(puVar10 + 0x140fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140fc)" ( (binary_expression "puVar10 + 0x140fc" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);" (assignment_expression "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6)" identifier = (call_expression "(**(code **)(puVar10 + 0x14154))(uVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x14154))" ( (pointer_expression "**(code **)(puVar10 + 0x14154)" * (pointer_expression "*(code **)(puVar10 + 0x14154)" * (cast_expression "(code **)(puVar10 + 0x14154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x14154)" ( (binary_expression "puVar10 + 0x14154" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if (lVar11 == -1) goto LAB_0001f344;" if (parenthesized_expression "(lVar11 == -1)" ( (binary_expression "lVar11 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0001f344;" goto statement_identifier ;)) })) (expression_statement "iVar5 = rpl_fflush(iVar1);" (assignment_expression "iVar5 = rpl_fflush(iVar1)" identifier = (call_expression "rpl_fflush(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }" { (expression_statement "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))()" identifier = (cast_expression "(int *)(**(code **)(puVar10 + 0x14100))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x14100))()" (parenthesized_expression "(**(code **)(puVar10 + 0x14100))" ( (pointer_expression "**(code **)(puVar10 + 0x14100)" * (pointer_expression "*(code **)(puVar10 + 0x14100)" * (cast_expression "(code **)(puVar10 + 0x14100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x14100)" ( (binary_expression "puVar10 + 0x14100" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return -1;" return number_literal ;) })) (labeled_statement "LAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" statement_identifier : (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" identifier = (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" ( (pointer_expression "**(code **)(puVar10 + 0x140c8)" * (pointer_expression "*(code **)(puVar10 + 0x140c8)" * (cast_expression "(code **)(puVar10 + 0x140c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x140c8)" ( (binary_expression "puVar10 + 0x140c8" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 ( )))) ;) (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_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 ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_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 ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT - LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (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) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (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 ( IDENT , LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression LIT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & 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 * IDENT)) ;) (goto_statement goto statement_identifier ;) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (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 = (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_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 ( IDENT )))) ;) (return_statement return 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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_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 ( 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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 * (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 = (pointer_expression * 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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (labeled_statement statement_identifier : (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 )))) ;)) (return_statement return IDENT ;) })))
(function_definition "int chdir_long(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "chdir_long(char *param_1)" (identifier "chdir_long") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char cVar7;\n  char *pcVar8;\n  code *pcVar9;\n  undefined *puVar10;\n  longlong lVar11;\n  undefined4 local_28;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_000333c4;\n  iVar1 = (*(code *)PTR_chdir_000333b4)();\n  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }\nLAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }\n  iVar1 = local_24;\n  puVar10 = PTR___stack_chk_fail_000333a8;\n  (*(code *)PTR___stack_chk_fail_000333a8)();\n  iVar5 = (**(code **)(puVar10 + 0x140fc))();\n  if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }\n  iVar5 = (**(code **)(puVar10 + 0x1413c))();\n  if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }\n  iVar5 = rpl_fflush(iVar1);\n  if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }\nLAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "char cVar7;" (primitive_type "char") (identifier "cVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "longlong lVar11;" (type_identifier "longlong") (identifier "lVar11") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000333c4;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000333c4" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000333c4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000333c4")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_chdir_000333b4)();" (assignment_expression "iVar1 = (*(code *)PTR_chdir_000333b4)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_chdir_000333b4)()" (parenthesized_expression "(*(code *)PTR_chdir_000333b4)" (( "(") (pointer_expression "*(code *)PTR_chdir_000333b4" (* "*") (cast_expression "(code *)PTR_chdir_000333b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chdir_000333b4"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))\n  {\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))" (( "(") (binary_expression "(iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e)" (( "(") (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00033330)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00033330)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00033330)()" (parenthesized_expression "(*(code *)PTR___errno_location_00033330)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00033330" (* "*") (cast_expression "(code *)PTR___errno_location_00033330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00033330"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar2 == 0x4e" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0x4e"))) () ")"))) () ")")) (compound_statement "{\n    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);\n    local_28 = 0xffffff9c;\n    if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }\n    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);\n    if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_strlen_00033354)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_00033354)(param_1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_strlen_00033354)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00033354)" (( "(") (pointer_expression "*(code *)PTR_strlen_00033354" (* "*") (cast_expression "(code *)PTR_strlen_00033354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00033354"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "local_28 = 0xffffff9c;" (assignment_expression "local_28 = 0xffffff9c" (identifier "local_28") (= "=") (number_literal "0xffffff9c")) (; ";")) (if_statement "if (uVar3 == 0) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000332b0" (* "*") (cast_expression "(code *)PTR___assert_fail_000332b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000332b0"))) () ")")) (argument_list "(PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,\n                         PTR_LAB_00033108 + 0x2dbc)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x2d68" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d68")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2d44" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d44")) (, ",") (number_literal "0x7e") (, ",") (binary_expression "PTR_LAB_00033108 + 0x2dbc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2dbc")) () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (if_statement "if (uVar3 < 0x1000) {\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(uVar3 < 0x1000)" (( "(") (binary_expression "uVar3 < 0x1000" (identifier "uVar3") (< "<") (number_literal "0x1000")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);\n      return iVar1;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000332b0" (* "*") (cast_expression "(code *)PTR___assert_fail_000332b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000332b0"))) () ")")) (argument_list "(PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,\n                         PTR_LAB_00033108 + 0x2dbc)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x2d70" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d70")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2d44" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d44")) (, ",") (number_literal "0x7f") (, ",") (binary_expression "PTR_LAB_00033108 + 0x2dbc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2dbc")) () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" (( "(") (pointer_expression "*(code *)PTR_strspn_000332b8" (* "*") (cast_expression "(code *)PTR_strspn_000332b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strspn_000332b8"))) () ")")) (argument_list "(param_1,PTR_LAB_00033108 + 0x2bcc)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_00033108 + 0x2bcc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2bcc")) () ")")))) (; ";")) (if_statement "if (iVar1 == 2) {\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }\n    else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);\n      if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }\n      *piVar2 = 0x4e;\n      iVar1 = -1;\n    }" ({ "{") (expression_statement "puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);" (assignment_expression "puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "rpl_memchr(param_1 + 3,0x2f,uVar3 - 3)" (identifier "rpl_memchr") (argument_list "(param_1 + 3,0x2f,uVar3 - 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) (, ",") (number_literal "0x2f") (, ",") (binary_expression "uVar3 - 3" (identifier "uVar3") (- "-") (number_literal "3")) () ")"))))) (; ";")) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" (if "if") (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined1 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *puVar4 = 0;\n        iVar1 = FUN_0001eda4(&local_28,param_1);\n        *puVar4 = 0x2f;\n        if (iVar1 != 0) goto LAB_0001f050;\n        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = puVar4 + 1 + iVar1;\n        goto LAB_0001ef44;\n      }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_0001eda4(&local_28,param_1);" (assignment_expression "iVar1 = FUN_0001eda4(&local_28,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_0001eda4(&local_28,param_1)" (identifier "FUN_0001eda4") (argument_list "(&local_28,param_1)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x2f")) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001f050;" (goto "goto") (statement_identifier "LAB_0001f050") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" (( "(") (pointer_expression "*(code *)PTR_strspn_000332b8" (* "*") (cast_expression "(code *)PTR_strspn_000332b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strspn_000332b8"))) () ")")) (argument_list "(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc)" (( "(") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2bcc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2bcc")) () ")")))) (; ";")) (expression_statement "pcVar8 = puVar4 + 1 + iVar1;" (assignment_expression "pcVar8 = puVar4 + 1 + iVar1" (identifier "pcVar8") (= "=") (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar1"))) (; ";")) (goto_statement "goto LAB_0001ef44;" (goto "goto") (statement_identifier "LAB_0001ef44") (; ";")) (} "}"))) (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0x4e")) (; ";")) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" (else "else") (compound_statement "{\n      pcVar8 = param_1;\n      if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }\nLAB_0001f050:\n      iVar1 = *piVar2;\n      FUN_0001ed30(&local_28);\n      *piVar2 = iVar1;\n      iVar1 = -1;\n    }" ({ "{") (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" (identifier "pcVar8") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (iVar1 == 0) {\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }\n      else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0001ef44:\n        cVar7 = *pcVar8;\nLAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        param_1 = param_1 + uVar3;\n        if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }\n        if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }\n        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }\n      }" ({ "{") (labeled_statement "LAB_0001ef44:\n        cVar7 = *pcVar8;" (statement_identifier "LAB_0001ef44") (: ":") (expression_statement "cVar7 = *pcVar8;" (assignment_expression "cVar7 = *pcVar8" (identifier "cVar7") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";"))) (labeled_statement "LAB_0001ef48:\n        if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" (statement_identifier "LAB_0001ef48") (: ":") (if_statement "if (cVar7 == '/') {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" (if "if") (parenthesized_expression "(cVar7 == '/')" (( "(") (binary_expression "cVar7 == '/'" (identifier "cVar7") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000332b0" (* "*") (cast_expression "(code *)PTR___assert_fail_000332b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000332b0"))) () ")")) (argument_list "(PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,\n                             PTR_LAB_00033108 + 0x2dbc)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x2d7c" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d7c")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2d44" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d44")) (, ",") (number_literal "0xa2") (, ",") (binary_expression "PTR_LAB_00033108 + 0x2dbc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2dbc")) () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + uVar3;" (assignment_expression "param_1 = param_1 + uVar3" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar3" (identifier "param_1") (+ "+") (identifier "uVar3"))) (; ";")) (if_statement "if (param_1 < pcVar8) {\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" (if "if") (parenthesized_expression "(param_1 < pcVar8)" (( "(") (binary_expression "param_1 < pcVar8" (identifier "param_1") (< "<") (identifier "pcVar8")) () ")")) (compound_statement "{\n          iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);\n          return iVar1;\n        }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000332b0" (* "*") (cast_expression "(code *)PTR___assert_fail_000332b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000332b0"))) () ")")) (argument_list "(PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,\n                             PTR_LAB_00033108 + 0x2dbc)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x2d88" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d88")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2d44" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d44")) (, ",") (number_literal "0xa3") (, ",") (binary_expression "PTR_LAB_00033108 + 0x2dbc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2dbc")) () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (if_statement "if (0xfff < (int)param_1 - (int)pcVar8) {\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }" (if "if") (parenthesized_expression "(0xfff < (int)param_1 - (int)pcVar8)" (( "(") (binary_expression "0xfff < (int)param_1 - (int)pcVar8" (number_literal "0xfff") (< "<") (binary_expression "(int)param_1 - (int)pcVar8" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")))) () ")")) (compound_statement "{\n          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);\n          puVar10 = PTR_LAB_00033108 + 0x2bcc;\n          do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);\n        }" ({ "{") (expression_statement "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c)" (identifier "pcVar9") (= "=") (cast_expression "(code *)(PTR_LAB_00033108 + -0x125c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00033108 + -0x125c)" (( "(") (binary_expression "PTR_LAB_00033108 + -0x125c" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "-0x125c")) () ")")))) (; ";")) (expression_statement "puVar10 = PTR_LAB_00033108 + 0x2bcc;" (assignment_expression "puVar10 = PTR_LAB_00033108 + 0x2bcc" (identifier "puVar10") (= "=") (binary_expression "PTR_LAB_00033108 + 0x2bcc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2bcc"))) (; ";")) (do_statement "do {\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          } while (0xfff < (int)param_1 - (int)pcVar8);" (do "do") (compound_statement "{\n            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);\n            if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }\n            *puVar4 = 0;\n            if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }\n            iVar1 = (*pcVar9)(&local_28,pcVar8);\n            *puVar4 = 0x2f;\n            if (iVar1 != 0) goto LAB_0001f050;\n            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);\n            pcVar8 = puVar4 + 1 + iVar1;\n          }" ({ "{") (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000)" (parenthesized_expression "(*(code *)PTR_memrchr_00033358)" (( "(") (pointer_expression "*(code *)PTR_memrchr_00033358" (* "*") (cast_expression "(code *)PTR_memrchr_00033358" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memrchr_00033358"))) () ")")) (argument_list "(pcVar8,0x2f,0x1000)" (( "(") (identifier "pcVar8") (, ",") (number_literal "0x2f") (, ",") (number_literal "0x1000") () ")"))))) (; ";")) (if_statement "if (puVar4 == (undefined1 *)0x0) {\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" (if "if") (parenthesized_expression "(puVar4 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar4 == (undefined1 *)0x0" (identifier "puVar4") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              *piVar2 = 0x4e;\n              iVar1 = -1;\n              goto LAB_0001eeac;\n            }" ({ "{") (expression_statement "*piVar2 = 0x4e;" (assignment_expression "*piVar2 = 0x4e" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0x4e")) (; ";")) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_0001eeac;" (goto "goto") (statement_identifier "LAB_0001eeac") (; ";")) (} "}"))) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (0xfff < (int)puVar4 - (int)pcVar8) {\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" (if "if") (parenthesized_expression "(0xfff < (int)puVar4 - (int)pcVar8)" (( "(") (binary_expression "0xfff < (int)puVar4 - (int)pcVar8" (number_literal "0xfff") (< "<") (binary_expression "(int)puVar4 - (int)pcVar8" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (- "-") (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")))) () ")")) (compound_statement "{\n              iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);\n              return iVar1;\n            }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_000332b0)\n                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" (parenthesized_expression "(*(code *)PTR___assert_fail_000332b0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000332b0" (* "*") (cast_expression "(code *)PTR___assert_fail_000332b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000332b0"))) () ")")) (argument_list "(PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,\n                                 PTR_LAB_00033108 + 0x2dbc)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x2d98" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d98")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2d44" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2d44")) (, ",") (number_literal "0xb3") (, ",") (binary_expression "PTR_LAB_00033108 + 0x2dbc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2dbc")) () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = (*pcVar9)(&local_28,pcVar8);" (assignment_expression "iVar1 = (*pcVar9)(&local_28,pcVar8)" (identifier "iVar1") (= "=") (call_expression "(*pcVar9)(&local_28,pcVar8)" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "(&local_28,pcVar8)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "*puVar4 = 0x2f;" (assignment_expression "*puVar4 = 0x2f" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x2f")) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_0001f050;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001f050;" (goto "goto") (statement_identifier "LAB_0001f050") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10)" (parenthesized_expression "(*(code *)PTR_strspn_000332b8)" (( "(") (pointer_expression "*(code *)PTR_strspn_000332b8" (* "*") (cast_expression "(code *)PTR_strspn_000332b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strspn_000332b8"))) () ")")) (argument_list "(puVar4 + 1,puVar10)" (( "(") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) (, ",") (identifier "puVar10") () ")")))) (; ";")) (expression_statement "pcVar8 = puVar4 + 1 + iVar1;" (assignment_expression "pcVar8 = puVar4 + 1 + iVar1" (identifier "pcVar8") (= "=") (binary_expression "puVar4 + 1 + iVar1" (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0xfff < (int)param_1 - (int)pcVar8)" (( "(") (binary_expression "0xfff < (int)param_1 - (int)pcVar8" (number_literal "0xfff") (< "<") (binary_expression "(int)param_1 - (int)pcVar8" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")))) () ")")) (; ";")) (} "}"))) (if_statement "if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" (if "if") (parenthesized_expression "(((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0))" (( "(") (binary_expression "((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&\n           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)" (parenthesized_expression "((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0))" (( "(") (binary_expression "(param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)" (parenthesized_expression "(param_1 <= pcVar8)" (( "(") (binary_expression "param_1 <= pcVar8" (identifier "param_1") (<= "<=") (identifier "pcVar8")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001eda4(&local_28,pcVar8)" (identifier "iVar1") (= "=") (call_expression "FUN_0001eda4(&local_28,pcVar8)" (identifier "FUN_0001eda4") (argument_list "(&local_28,pcVar8)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "pcVar8") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_fchdir_000332f4)(local_28)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f4)" (( "(") (pointer_expression "*(code *)PTR_fchdir_000332f4" (* "*") (cast_expression "(code *)PTR_fchdir_000332f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchdir_000332f4"))) () ")")) (argument_list "(local_28)" (( "(") (identifier "local_28") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          FUN_0001ed30(&local_28);\n          iVar1 = 0;\n          goto LAB_0001eeac;\n        }" ({ "{") (expression_statement "FUN_0001ed30(&local_28);" (call_expression "FUN_0001ed30(&local_28)" (identifier "FUN_0001ed30") (argument_list "(&local_28)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0001eeac;" (goto "goto") (statement_identifier "LAB_0001eeac") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" (else "else") (compound_statement "{\n        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);\n        pcVar8 = param_1 + iVar1;\n        if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }\n      }" ({ "{") (expression_statement "iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);" (assignment_expression "iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc)" (identifier "iVar5") (= "=") (call_expression "FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc)" (identifier "FUN_0001eda4") (argument_list "(&local_28,PTR_LAB_00033108 + 0x2bcc)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (binary_expression "PTR_LAB_00033108 + 0x2bcc" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x2bcc")) () ")")))) (; ";")) (expression_statement "pcVar8 = param_1 + iVar1;" (assignment_expression "pcVar8 = param_1 + iVar1" (identifier "pcVar8") (= "=") (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (iVar5 == 0) {\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          cVar7 = *pcVar8;\n          goto LAB_0001ef48;\n        }" ({ "{") (expression_statement "cVar7 = *pcVar8;" (assignment_expression "cVar7 = *pcVar8" (identifier "cVar7") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (goto_statement "goto LAB_0001ef48;" (goto "goto") (statement_identifier "LAB_0001ef48") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_0001f050:\n      iVar1 = *piVar2;" (statement_identifier "LAB_0001f050") (: ":") (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";"))) (expression_statement "FUN_0001ed30(&local_28);" (call_expression "FUN_0001ed30(&local_28)" (identifier "FUN_0001ed30") (argument_list "(&local_28)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))) (; ";")) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_0001eeac:\n  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" (statement_identifier "LAB_0001eeac") (: ":") (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_000333c4)" (( "(") (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_000333c4" (identifier "local_24") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_000333c4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000333c4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000333c4")))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))) (expression_statement "iVar1 = local_24;" (assignment_expression "iVar1 = local_24" (identifier "iVar1") (= "=") (identifier "local_24")) (; ";")) (expression_statement "puVar10 = PTR___stack_chk_fail_000333a8;" (assignment_expression "puVar10 = PTR___stack_chk_fail_000333a8" (identifier "puVar10") (= "=") (identifier "PTR___stack_chk_fail_000333a8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000333a8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000333a8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000333a8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000333a8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000333a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000333a8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = (**(code **)(puVar10 + 0x140fc))();" (assignment_expression "iVar5 = (**(code **)(puVar10 + 0x140fc))()" (identifier "iVar5") (= "=") (call_expression "(**(code **)(puVar10 + 0x140fc))()" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x140fc)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x140fc)" (* "*") (cast_expression "(code **)(puVar10 + 0x140fc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x140fc)" (( "(") (binary_expression "puVar10 + 0x140fc" (identifier "puVar10") (+ "+") (number_literal "0x140fc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) {\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x140c8)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x140c8)" (* "*") (cast_expression "(code **)(puVar10 + 0x140c8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x140c8)" (( "(") (binary_expression "puVar10 + 0x140c8" (identifier "puVar10") (+ "+") (number_literal "0x140c8")) () ")"))))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar5 = (**(code **)(puVar10 + 0x1413c))();" (assignment_expression "iVar5 = (**(code **)(puVar10 + 0x1413c))()" (identifier "iVar5") (= "=") (call_expression "(**(code **)(puVar10 + 0x1413c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1413c))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1413c)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1413c)" (* "*") (cast_expression "(code **)(puVar10 + 0x1413c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1413c)" (( "(") (binary_expression "puVar10 + 0x1413c" (identifier "puVar10") (+ "+") (number_literal "0x1413c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);\n    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);\n    if (lVar11 == -1) goto LAB_0001f344;\n  }" ({ "{") (expression_statement "uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);" (assignment_expression "uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1)" (identifier "uVar6") (= "=") (call_expression "(**(code **)(puVar10 + 0x140fc))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140fc))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x140fc)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x140fc)" (* "*") (cast_expression "(code **)(puVar10 + 0x140fc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x140fc)" (( "(") (binary_expression "puVar10 + 0x140fc" (identifier "puVar10") (+ "+") (number_literal "0x140fc")) () ")"))))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);" (assignment_expression "lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6)" (identifier "lVar11") (= "=") (call_expression "(**(code **)(puVar10 + 0x14154))(uVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x14154))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x14154)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x14154)" (* "*") (cast_expression "(code **)(puVar10 + 0x14154)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x14154)" (( "(") (binary_expression "puVar10 + 0x14154" (identifier "puVar10") (+ "+") (number_literal "0x14154")) () ")"))))) () ")")) (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (if_statement "if (lVar11 == -1) goto LAB_0001f344;" (if "if") (parenthesized_expression "(lVar11 == -1)" (( "(") (binary_expression "lVar11 == -1" (identifier "lVar11") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0001f344;" (goto "goto") (statement_identifier "LAB_0001f344") (; ";"))) (} "}"))) (expression_statement "iVar5 = rpl_fflush(iVar1);" (assignment_expression "iVar5 = rpl_fflush(iVar1)" (identifier "iVar5") (= "=") (call_expression "rpl_fflush(iVar1)" (identifier "rpl_fflush") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();\n    iVar5 = *piVar2;\n    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);\n    if (iVar5 == 0) {\n      return iVar1;\n    }\n    *piVar2 = iVar5;\n    return -1;\n  }" ({ "{") (expression_statement "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar10 + 0x14100))()" (identifier "piVar2") (= "=") (cast_expression "(int *)(**(code **)(puVar10 + 0x14100))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x14100))()" (parenthesized_expression "(**(code **)(puVar10 + 0x14100))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x14100)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x14100)" (* "*") (cast_expression "(code **)(puVar10 + 0x14100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x14100)" (( "(") (binary_expression "puVar10 + 0x14100" (identifier "puVar10") (+ "+") (number_literal "0x14100")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" (identifier "iVar5") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x140c8)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x140c8)" (* "*") (cast_expression "(code **)(puVar10 + 0x140c8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x140c8)" (( "(") (binary_expression "puVar10 + 0x140c8" (identifier "puVar10") (+ "+") (number_literal "0x140c8")) () ")"))))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (labeled_statement "LAB_0001f344:\n  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (statement_identifier "LAB_0001f344") (: ":") (expression_statement "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar10 + 0x140c8))(iVar1)" (parenthesized_expression "(**(code **)(puVar10 + 0x140c8))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x140c8)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x140c8)" (* "*") (cast_expression "(code **)(puVar10 + 0x140c8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x140c8)" (( "(") (binary_expression "puVar10 + 0x140c8" (identifier "puVar10") (+ "+") (number_literal "0x140c8")) () ")"))))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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)))) (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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) 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 (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (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 (identifier) (number_literal) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (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: (identifier)))) (goto_statement label: (statement_identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (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: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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 (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (labeled_statement label: (statement_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)))))) (return_statement (identifier)))))

int MASKED(char *param_1)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined1 *puVar4;
  int iVar5;
  undefined4 uVar6;
  char cVar7;
  char *pcVar8;
  code *pcVar9;
  undefined *puVar10;
  longlong lVar11;
  undefined4 local_28;
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_000333c4;
  iVar1 = (*(code *)PTR_chdir_000333b4)();
  if ((iVar1 != 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00033330)(), *piVar2 == 0x4e))
  {
    uVar3 = (*(code *)PTR_strlen_00033354)(param_1);
    local_28 = 0xffffff9c;
    if (uVar3 == 0) {
      iVar1 = (*(code *)PTR___assert_fail_000332b0)
                        (PTR_LAB_00033108 + 0x2d68,PTR_LAB_00033108 + 0x2d44,0x7e,
                         PTR_LAB_00033108 + 0x2dbc);
      return iVar1;
    }
    if (uVar3 < 0x1000) {
      iVar1 = (*(code *)PTR___assert_fail_000332b0)
                        (PTR_LAB_00033108 + 0x2d70,PTR_LAB_00033108 + 0x2d44,0x7f,
                         PTR_LAB_00033108 + 0x2dbc);
      return iVar1;
    }
    iVar1 = (*(code *)PTR_strspn_000332b8)(param_1,PTR_LAB_00033108 + 0x2bcc);
    if (iVar1 == 2) {
      puVar4 = (undefined1 *)rpl_memchr(param_1 + 3,0x2f,uVar3 - 3);
      if (puVar4 != (undefined1 *)0x0) {
        *puVar4 = 0;
        iVar1 = FUN_0001eda4(&local_28,param_1);
        *puVar4 = 0x2f;
        if (iVar1 != 0) goto LAB_0001f050;
        iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,PTR_LAB_00033108 + 0x2bcc);
        pcVar8 = puVar4 + 1 + iVar1;
        goto LAB_0001ef44;
      }
      *piVar2 = 0x4e;
      iVar1 = -1;
    }
    else {
      pcVar8 = param_1;
      if (iVar1 == 0) {
LAB_0001ef44:
        cVar7 = *pcVar8;
LAB_0001ef48:
        if (cVar7 == '/') {
          iVar1 = (*(code *)PTR___assert_fail_000332b0)
                            (PTR_LAB_00033108 + 0x2d7c,PTR_LAB_00033108 + 0x2d44,0xa2,
                             PTR_LAB_00033108 + 0x2dbc);
          return iVar1;
        }
        param_1 = param_1 + uVar3;
        if (param_1 < pcVar8) {
          iVar1 = (*(code *)PTR___assert_fail_000332b0)
                            (PTR_LAB_00033108 + 0x2d88,PTR_LAB_00033108 + 0x2d44,0xa3,
                             PTR_LAB_00033108 + 0x2dbc);
          return iVar1;
        }
        if (0xfff < (int)param_1 - (int)pcVar8) {
          pcVar9 = (code *)(PTR_LAB_00033108 + -0x125c);
          puVar10 = PTR_LAB_00033108 + 0x2bcc;
          do {
            puVar4 = (undefined1 *)(*(code *)PTR_memrchr_00033358)(pcVar8,0x2f,0x1000);
            if (puVar4 == (undefined1 *)0x0) {
              *piVar2 = 0x4e;
              iVar1 = -1;
              goto LAB_0001eeac;
            }
            *puVar4 = 0;
            if (0xfff < (int)puVar4 - (int)pcVar8) {
              iVar1 = (*(code *)PTR___assert_fail_000332b0)
                                (PTR_LAB_00033108 + 0x2d98,PTR_LAB_00033108 + 0x2d44,0xb3,
                                 PTR_LAB_00033108 + 0x2dbc);
              return iVar1;
            }
            iVar1 = (*pcVar9)(&local_28,pcVar8);
            *puVar4 = 0x2f;
            if (iVar1 != 0) goto LAB_0001f050;
            iVar1 = (*(code *)PTR_strspn_000332b8)(puVar4 + 1,puVar10);
            pcVar8 = puVar4 + 1 + iVar1;
          } while (0xfff < (int)param_1 - (int)pcVar8);
        }
        if (((param_1 <= pcVar8) || (iVar1 = FUN_0001eda4(&local_28,pcVar8), iVar1 == 0)) &&
           (iVar1 = (*(code *)PTR_fchdir_000332f4)(local_28), iVar1 == 0)) {
          FUN_0001ed30(&local_28);
          iVar1 = 0;
          goto LAB_0001eeac;
        }
      }
      else {
        iVar5 = FUN_0001eda4(&local_28,PTR_LAB_00033108 + 0x2bcc);
        pcVar8 = param_1 + iVar1;
        if (iVar5 == 0) {
          cVar7 = *pcVar8;
          goto LAB_0001ef48;
        }
      }
LAB_0001f050:
      iVar1 = *piVar2;
      FUN_0001ed30(&local_28);
      *piVar2 = iVar1;
      iVar1 = -1;
    }
  }
LAB_0001eeac:
  if (local_24 == *(int *)PTR___stack_chk_guard_000333c4) {
    return iVar1;
  }
  iVar1 = local_24;
  puVar10 = PTR___stack_chk_fail_000333a8;
  (*(code *)PTR___stack_chk_fail_000333a8)();
  iVar5 = (**(code **)(puVar10 + 0x140fc))();
  if (iVar5 < 0) {
    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);
    return iVar1;
  }
  iVar5 = (**(code **)(puVar10 + 0x1413c))();
  if (iVar5 != 0) {
    uVar6 = (**(code **)(puVar10 + 0x140fc))(iVar1);
    lVar11 = (**(code **)(puVar10 + 0x14154))(uVar6);
    if (lVar11 == -1) goto LAB_0001f344;
  }
  iVar5 = rpl_fflush(iVar1);
  if (iVar5 != 0) {
    piVar2 = (int *)(**(code **)(puVar10 + 0x14100))();
    iVar5 = *piVar2;
    iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);
    if (iVar5 == 0) {
      return iVar1;
    }
    *piVar2 = iVar5;
    return -1;
  }
LAB_0001f344:
  iVar1 = (**(code **)(puVar10 + 0x140c8))(iVar1);
  return iVar1;
}

