
int fts_close(FTS *sp)

{
  _ftsent *p_Var1;
  int iVar2;
  int *piVar3;
  int iVar4;
  _ftsent *p_Var5;
  
  p_Var1 = sp->fts_cur;
  if (p_Var1 != (_ftsent *)0x0) {
    iVar4 = p_Var1->fts_level;
    while (-1 < iVar4) {
      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {
        p_Var1 = p_Var1->fts_parent;
        (*(code *)PTR_free_00075bfc)();
        if (p_Var1->fts_level < 0) goto LAB_00040af4;
      }
      (*(code *)PTR_free_00075bfc)(p_Var1);
      p_Var1 = p_Var5;
      iVar4 = p_Var5->fts_level;
    }
LAB_00040af4:
    (*(code *)PTR_free_00075bfc)(p_Var1);
  }
  if (sp->fts_child != (FTSENT *)0x0) {
    fts_lfree(sp->fts_child);
  }
  (*(code *)PTR_free_00075bfc)(sp->fts_array);
  (*(code *)PTR_free_00075bfc)(sp->fts_path);
  if ((sp->fts_options & 0x200U) == 0) {
    iVar4 = 0;
    if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;
    iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);
    if (iVar4 != 0) {
      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();
      iVar4 = *piVar3;
      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);
      if ((iVar2 != 0) && (iVar4 == 0)) {
        iVar4 = *piVar3;
      }
      goto LAB_00040b5c;
    }
    iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);
    if (iVar4 != 0) {
      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();
      iVar4 = *piVar3;
      goto LAB_00040b5c;
    }
  }
  else if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {
    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    iVar4 = *piVar3;
    goto LAB_00040b5c;
  }
  iVar4 = 0;
LAB_00040b5c:
  fd_ring_clear(&sp->fts_fd_ring);
  if (sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0) {
    hash_free(sp->fts_leaf_optimization_works_ht);
  }
  if ((sp->fts_options & 0x102U) == 0) {
    (*(code *)PTR_free_00075bfc)();
  }
  else if ((sp->fts_cycle).ht != (Hash_table *)0x0) {
    hash_free((sp->fts_cycle).ht);
  }
  (*(code *)PTR_free_00075bfc)(sp);
  if (iVar4 != 0) {
    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    *piVar3 = iVar4;
    iVar4 = -1;
  }
  return iVar4;
}



int fts_close(int *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = *param_1;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x30);
    while (-1 < iVar3) {
      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {
        iVar1 = *(int *)(iVar1 + 4);
        (*(code *)PTR_free_00075bfc)();
        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;
      }
      (*(code *)PTR_free_00075bfc)(iVar1);
      iVar1 = iVar4;
      iVar3 = *(int *)(iVar4 + 0x30);
    }
LAB_00040af4:
    (*(code *)PTR_free_00075bfc)(iVar1);
  }
  if (param_1[1] != 0) {
    FUN_0003eccc();
  }
  (*(code *)PTR_free_00075bfc)(param_1[2]);
  (*(code *)PTR_free_00075bfc)(param_1[6]);
  if ((param_1[0xc] & 0x200U) == 0) {
    iVar1 = 0;
    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;
    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);
    if (iVar1 != 0) {
      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
      iVar1 = *piVar2;
      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);
      if ((iVar3 != 0) && (iVar1 == 0)) {
        iVar1 = *piVar2;
      }
      goto LAB_00040b5c;
    }
    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);
    if (iVar1 != 0) {
      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
      iVar1 = *piVar2;
      goto LAB_00040b5c;
    }
  }
  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {
    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    iVar1 = *piVar2;
    goto LAB_00040b5c;
  }
  iVar1 = 0;
LAB_00040b5c:
  FUN_0003ed48(param_1 + 0xf);
  if (param_1[0xd] != 0) {
    hash_free();
  }
  if ((param_1[0xc] & 0x102U) == 0) {
    (*(code *)PTR_free_00075bfc)();
  }
  else if (param_1[0xe] != 0) {
    hash_free();
  }
  (*(code *)PTR_free_00075bfc)(param_1);
  if (iVar1 != 0) {
    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    *piVar2 = iVar1;
    iVar1 = -1;
  }
  return iVar1;
}


lui gp,0x4
addiu gp,gp,-0x34ec
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x0(a0)
sw gp,0x10(sp)
sw s1,0x1c(sp)
or s1,a0,zero
sw ra,0x24(sp)
sw s2,0x20(sp)
beq v0,zero,0x00040b00
_sw s0,0x18(sp)
lw v1,0x30(v0)
bgez v1,0x00040ac8
_or s0,v0,zero
b 0x00040af4
_lw t9,-0x7984(gp)
jalr t9
_nop
or v0,s0,zero
lw v1,0x30(s0)
bltz v1,0x00040af0
_lw gp,0x10(sp)
lw s0,0x8(v0)
or a0,v0,zero
bne s0,zero,0x00040ab0
_lw t9,-0x7984(gp)
jalr t9
_lw s0,0x4(v0)
lw gp,0x10(sp)
lw v1,0x30(s0)
bgez v1,0x00040ac8
_or v0,s0,zero
lw t9,-0x7984(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw a0,0x4(s1)
beq a0,zero,0x00040b1c
_lw t9,-0x7c60(gp)
addiu t9,t9,-0x1334
bal 0x0003eccc
_nop
lw gp,0x10(sp)
lw t9,-0x7984(gp)
jalr t9
_lw a0,0x8(s1)
lw gp,0x10(sp)
lw t9,-0x7984(gp)
jalr t9
_lw a0,0x18(s1)
lw v0,0x30(s1)
andi v1,v0,0x200
beq v1,zero,0x00040bd8
_lw gp,0x10(sp)
lw a0,0x20(s1)
bgez a0,0x00040c28
_lw t9,-0x7b98(gp)
or s0,zero,zero
lw t9,-0x7c60(gp)
addiu t9,t9,-0x12b8
bal 0x0003ed48
_addiu a0,s1,0x3c
lw a0,0x34(s1)
beq a0,zero,0x00040b84
_lw gp,0x10(sp)
lw t9,-0x7dfc(gp)
bal 0x0002b674
_nop
lw gp,0x10(sp)
lw v0,0x30(s1)
andi v0,v0,0x102
beq v0,zero,0x00040c50
_lw a0,0x38(s1)
beq a0,zero,0x00040ba8
_lw t9,-0x7dfc(gp)
bal 0x0002b674
_nop
lw gp,0x10(sp)
lw t9,-0x7984(gp)
jalr t9
_or a0,s1,zero
bne s0,zero,0x00040ca0
_lw gp,0x10(sp)
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
andi v0,v0,0x4
bne v0,zero,0x00040b58
_or s0,zero,zero
lw t9,-0x7b44(gp)
jalr t9
_lw a0,0x1c(s1)
bne v0,zero,0x00040c64
_lw gp,0x10(sp)
lw t9,-0x7b98(gp)
jalr t9
_lw a0,0x1c(s1)
beq v0,zero,0x00040b54
_lw gp,0x10(sp)
lw t9,-0x7abc(gp)
jalr t9
_nop
or s2,v0,zero
lw gp,0x10(sp)
b 0x00040b58
_lw s0,0x0(s2)
jalr t9
_nop
beq v0,zero,0x00040b54
_lw gp,0x10(sp)
lw t9,-0x7abc(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00040b58
_lw s0,0x0(v0)
lw t9,-0x7984(gp)
jalr t9
_nop
b 0x00040ba8
_lw gp,0x10(sp)
lw t9,-0x7abc(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s2,v0,zero
lw a0,0x1c(s1)
lw t9,-0x7b98(gp)
jalr t9
_lw s0,0x0(v0)
beq v0,zero,0x00040b58
_lw gp,0x10(sp)
bne s0,zero,0x00040b5c
_lw t9,-0x7c60(gp)
b 0x00040b5c
_lw s0,0x0(s2)
lw t9,-0x7abc(gp)
jalr t9
_nop
sw s0,0x0(v0)
b 0x00040bbc
_li s0,-0x1
(translation_unit "int fts_close(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int fts_close(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "fts_close(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x30)" identifier = (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (while_statement "while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }" while (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }" { (while_statement "while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }" while (parenthesized_expression "(iVar4 = *(int *)(iVar1 + 8), iVar4 == 0)" ( (comma_expression "iVar4 = *(int *)(iVar1 + 8), iVar4 == 0" (assignment_expression "iVar4 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) , (binary_expression "iVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }" { (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;" if (parenthesized_expression "(*(int *)(iVar1 + 0x30) < 0)" ( (binary_expression "*(int *)(iVar1 + 0x30) < 0" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) < number_literal) )) (goto_statement "goto LAB_00040af4;" goto statement_identifier ;)) })) (expression_statement "(*(code *)PTR_free_00075bfc)(iVar1);" (call_expression "(*(code *)PTR_free_00075bfc)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(iVar4 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x30)" identifier = (pointer_expression "*(int *)(iVar4 + 0x30)" * (cast_expression "(int *)(iVar4 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);" statement_identifier : (expression_statement "(*(code *)PTR_free_00075bfc)(iVar1);" (call_expression "(*(code *)PTR_free_00075bfc)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;)) })) (if_statement "if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0003eccc();\n  }" { (expression_statement "FUN_0003eccc();" (call_expression "FUN_0003eccc()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1[2]);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1[2])" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1[6]);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1[6])" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[6])" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) (if_statement "if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" if (parenthesized_expression "((param_1[0xc] & 0x200U) == 0)" ( (binary_expression "(param_1[0xc] & 0x200U) == 0" (parenthesized_expression "(param_1[0xc] & 0x200U)" ( (binary_expression "param_1[0xc] & 0x200U" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;" if (parenthesized_expression "((param_1[0xc] & 4U) != 0)" ( (binary_expression "(param_1[0xc] & 4U) != 0" (parenthesized_expression "(param_1[0xc] & 4U)" ( (binary_expression "param_1[0xc] & 4U" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7])" identifier = (call_expression "(*(code *)PTR_fchdir_00075a3c)(param_1[7])" (parenthesized_expression "(*(code *)PTR_fchdir_00075a3c)" ( (pointer_expression "*(code *)PTR_fchdir_00075a3c" * (cast_expression "(code *)PTR_fchdir_00075a3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[7])" ( (subscript_expression "param_1[7]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);" (assignment_expression "iVar3 = (*(code *)PTR_close_000759e8)(param_1[7])" identifier = (call_expression "(*(code *)PTR_close_000759e8)(param_1[7])" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[7])" ( (subscript_expression "param_1[7]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }" if (parenthesized_expression "((iVar3 != 0) && (iVar1 == 0))" ( (binary_expression "(iVar3 != 0) && (iVar1 == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        iVar1 = *piVar2;\n      }" { (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);" (assignment_expression "iVar1 = (*(code *)PTR_close_000759e8)(param_1[7])" identifier = (call_expression "(*(code *)PTR_close_000759e8)(param_1[7])" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[7])" ( (subscript_expression "param_1[7]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })) }) (else_clause "else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" else (if_statement "if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" if (parenthesized_expression "((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0))" ( (binary_expression "(-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)" (parenthesized_expression "(-1 < param_1[8])" ( (binary_expression "-1 < param_1[8]" number_literal < (subscript_expression "param_1[8]" identifier [ number_literal ])) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_close_000759e8)()" identifier = (call_expression "(*(code *)PTR_close_000759e8)()" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);" statement_identifier : (expression_statement "FUN_0003ed48(param_1 + 0xf);" (call_expression "FUN_0003ed48(param_1 + 0xf)" identifier (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;)) (if_statement "if (param_1[0xd] != 0) {\n    hash_free();\n  }" if (parenthesized_expression "(param_1[0xd] != 0)" ( (binary_expression "param_1[0xd] != 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    hash_free();\n  }" { (expression_statement "hash_free();" (call_expression "hash_free()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }" if (parenthesized_expression "((param_1[0xc] & 0x102U) == 0)" ( (binary_expression "(param_1[0xc] & 0x102U) == 0" (parenthesized_expression "(param_1[0xc] & 0x102U)" ( (binary_expression "param_1[0xc] & 0x102U" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_00075bfc)();\n  }" { (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else if (param_1[0xe] != 0) {\n    hash_free();\n  }" else (if_statement "if (param_1[0xe] != 0) {\n    hash_free();\n  }" if (parenthesized_expression "(param_1[0xe] != 0)" ( (binary_expression "param_1[0xe] != 0" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    hash_free();\n  }" { (expression_statement "hash_free();" (call_expression "hash_free()" identifier (argument_list "()" ( ))) ;) })))) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int fts_close(FTS *sp)\n\n{\n  _ftsent *p_Var1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  _ftsent *p_Var5;\n  \n  p_Var1 = sp->fts_cur;\n  if (p_Var1 != (_ftsent *)0x0) {\n    iVar4 = p_Var1->fts_level;\n    while (-1 < iVar4) {\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(p_Var1);\n  }\n  if (sp->fts_child != (FTSENT *)0x0) {\n    fts_lfree(sp->fts_child);\n  }\n  (*(code *)PTR_free_00075bfc)(sp->fts_array);\n  (*(code *)PTR_free_00075bfc)(sp->fts_path);\n  if ((sp->fts_options & 0x200U) == 0) {\n    iVar4 = 0;\n    if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;\n    iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }\n  iVar4 = 0;\nLAB_00040b5c:\n  fd_ring_clear(&sp->fts_fd_ring);\n  if (sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0) {\n    hash_free(sp->fts_leaf_optimization_works_ht);\n  }\n  if ((sp->fts_options & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if ((sp->fts_cycle).ht != (Hash_table *)0x0) {\n    hash_free((sp->fts_cycle).ht);\n  }\n  (*(code *)PTR_free_00075bfc)(sp);\n  if (iVar4 != 0) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar3 = iVar4;\n    iVar4 = -1;\n  }\n  return iVar4;\n}\n\n" (function_definition "int fts_close(FTS *sp)\n\n{\n  _ftsent *p_Var1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  _ftsent *p_Var5;\n  \n  p_Var1 = sp->fts_cur;\n  if (p_Var1 != (_ftsent *)0x0) {\n    iVar4 = p_Var1->fts_level;\n    while (-1 < iVar4) {\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(p_Var1);\n  }\n  if (sp->fts_child != (FTSENT *)0x0) {\n    fts_lfree(sp->fts_child);\n  }\n  (*(code *)PTR_free_00075bfc)(sp->fts_array);\n  (*(code *)PTR_free_00075bfc)(sp->fts_path);\n  if ((sp->fts_options & 0x200U) == 0) {\n    iVar4 = 0;\n    if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;\n    iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }\n  iVar4 = 0;\nLAB_00040b5c:\n  fd_ring_clear(&sp->fts_fd_ring);\n  if (sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0) {\n    hash_free(sp->fts_leaf_optimization_works_ht);\n  }\n  if ((sp->fts_options & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if ((sp->fts_cycle).ht != (Hash_table *)0x0) {\n    hash_free((sp->fts_cycle).ht);\n  }\n  (*(code *)PTR_free_00075bfc)(sp);\n  if (iVar4 != 0) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar3 = iVar4;\n    iVar4 = -1;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "fts_close(FTS *sp)" identifier (parameter_list "(FTS *sp)" ( (parameter_declaration "FTS *sp" type_identifier (pointer_declarator "*sp" * identifier)) ))) (compound_statement "{\n  _ftsent *p_Var1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  _ftsent *p_Var5;\n  \n  p_Var1 = sp->fts_cur;\n  if (p_Var1 != (_ftsent *)0x0) {\n    iVar4 = p_Var1->fts_level;\n    while (-1 < iVar4) {\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(p_Var1);\n  }\n  if (sp->fts_child != (FTSENT *)0x0) {\n    fts_lfree(sp->fts_child);\n  }\n  (*(code *)PTR_free_00075bfc)(sp->fts_array);\n  (*(code *)PTR_free_00075bfc)(sp->fts_path);\n  if ((sp->fts_options & 0x200U) == 0) {\n    iVar4 = 0;\n    if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;\n    iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }\n  iVar4 = 0;\nLAB_00040b5c:\n  fd_ring_clear(&sp->fts_fd_ring);\n  if (sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0) {\n    hash_free(sp->fts_leaf_optimization_works_ht);\n  }\n  if ((sp->fts_options & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if ((sp->fts_cycle).ht != (Hash_table *)0x0) {\n    hash_free((sp->fts_cycle).ht);\n  }\n  (*(code *)PTR_free_00075bfc)(sp);\n  if (iVar4 != 0) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar3 = iVar4;\n    iVar4 = -1;\n  }\n  return iVar4;\n}" { (declaration "_ftsent *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "_ftsent *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (expression_statement "p_Var1 = sp->fts_cur;" (assignment_expression "p_Var1 = sp->fts_cur" identifier = (field_expression "sp->fts_cur" identifier -> field_identifier)) ;) (if_statement "if (p_Var1 != (_ftsent *)0x0) {\n    iVar4 = p_Var1->fts_level;\n    while (-1 < iVar4) {\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(p_Var1);\n  }" if (parenthesized_expression "(p_Var1 != (_ftsent *)0x0)" ( (binary_expression "p_Var1 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = p_Var1->fts_level;\n    while (-1 < iVar4) {\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(p_Var1);\n  }" { (expression_statement "iVar4 = p_Var1->fts_level;" (assignment_expression "iVar4 = p_Var1->fts_level" identifier = (field_expression "p_Var1->fts_level" identifier -> field_identifier)) ;) (while_statement "while (-1 < iVar4) {\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }" while (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(p_Var1);\n      p_Var1 = p_Var5;\n      iVar4 = p_Var5->fts_level;\n    }" { (while_statement "while (p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0) {\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }" while (parenthesized_expression "(p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0)" ( (comma_expression "p_Var5 = p_Var1->fts_link, p_Var5 == (_ftsent *)0x0" (assignment_expression "p_Var5 = p_Var1->fts_link" identifier = (field_expression "p_Var1->fts_link" identifier -> field_identifier)) , (binary_expression "p_Var5 == (_ftsent *)0x0" identifier == (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        p_Var1 = p_Var1->fts_parent;\n        (*(code *)PTR_free_00075bfc)();\n        if (p_Var1->fts_level < 0) goto LAB_00040af4;\n      }" { (expression_statement "p_Var1 = p_Var1->fts_parent;" (assignment_expression "p_Var1 = p_Var1->fts_parent" identifier = (field_expression "p_Var1->fts_parent" identifier -> field_identifier)) ;) (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (p_Var1->fts_level < 0) goto LAB_00040af4;" if (parenthesized_expression "(p_Var1->fts_level < 0)" ( (binary_expression "p_Var1->fts_level < 0" (field_expression "p_Var1->fts_level" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_00040af4;" goto statement_identifier ;)) })) (expression_statement "(*(code *)PTR_free_00075bfc)(p_Var1);" (call_expression "(*(code *)PTR_free_00075bfc)(p_Var1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p_Var1)" ( identifier ))) ;) (expression_statement "p_Var1 = p_Var5;" (assignment_expression "p_Var1 = p_Var5" identifier = identifier) ;) (expression_statement "iVar4 = p_Var5->fts_level;" (assignment_expression "iVar4 = p_Var5->fts_level" identifier = (field_expression "p_Var5->fts_level" identifier -> field_identifier)) ;) })) (labeled_statement "LAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(p_Var1);" statement_identifier : (expression_statement "(*(code *)PTR_free_00075bfc)(p_Var1);" (call_expression "(*(code *)PTR_free_00075bfc)(p_Var1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p_Var1)" ( identifier ))) ;)) })) (if_statement "if (sp->fts_child != (FTSENT *)0x0) {\n    fts_lfree(sp->fts_child);\n  }" if (parenthesized_expression "(sp->fts_child != (FTSENT *)0x0)" ( (binary_expression "sp->fts_child != (FTSENT *)0x0" (field_expression "sp->fts_child" identifier -> field_identifier) != (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fts_lfree(sp->fts_child);\n  }" { (expression_statement "fts_lfree(sp->fts_child);" (call_expression "fts_lfree(sp->fts_child)" identifier (argument_list "(sp->fts_child)" ( (field_expression "sp->fts_child" identifier -> field_identifier) ))) ;) })) (expression_statement "(*(code *)PTR_free_00075bfc)(sp->fts_array);" (call_expression "(*(code *)PTR_free_00075bfc)(sp->fts_array)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp->fts_array)" ( (field_expression "sp->fts_array" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_free_00075bfc)(sp->fts_path);" (call_expression "(*(code *)PTR_free_00075bfc)(sp->fts_path)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp->fts_path)" ( (field_expression "sp->fts_path" identifier -> field_identifier) ))) ;) (if_statement "if ((sp->fts_options & 0x200U) == 0) {\n    iVar4 = 0;\n    if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;\n    iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }" if (parenthesized_expression "((sp->fts_options & 0x200U) == 0)" ( (binary_expression "(sp->fts_options & 0x200U) == 0" (parenthesized_expression "(sp->fts_options & 0x200U)" ( (binary_expression "sp->fts_options & 0x200U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar4 = 0;\n    if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;\n    iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n    if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if ((sp->fts_options & 4U) != 0) goto LAB_00040b5c;" if (parenthesized_expression "((sp->fts_options & 4U) != 0)" ( (binary_expression "(sp->fts_options & 4U) != 0" (parenthesized_expression "(sp->fts_options & 4U)" ( (binary_expression "sp->fts_options & 4U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;)) (expression_statement "iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd);" (assignment_expression "iVar4 = (*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd)" identifier = (call_expression "(*(code *)PTR_fchdir_00075a3c)(sp->fts_rfd)" (parenthesized_expression "(*(code *)PTR_fchdir_00075a3c)" ( (pointer_expression "*(code *)PTR_fchdir_00075a3c" * (cast_expression "(code *)PTR_fchdir_00075a3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp->fts_rfd)" ( (field_expression "sp->fts_rfd" identifier -> field_identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);\n      if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }\n      goto LAB_00040b5c;\n    }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);" (assignment_expression "iVar2 = (*(code *)PTR_close_000759e8)(sp->fts_rfd)" identifier = (call_expression "(*(code *)PTR_close_000759e8)(sp->fts_rfd)" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp->fts_rfd)" ( (field_expression "sp->fts_rfd" identifier -> field_identifier) )))) ;) (if_statement "if ((iVar2 != 0) && (iVar4 == 0)) {\n        iVar4 = *piVar3;\n      }" if (parenthesized_expression "((iVar2 != 0) && (iVar4 == 0))" ( (binary_expression "(iVar2 != 0) && (iVar4 == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        iVar4 = *piVar3;\n      }" { (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })) (expression_statement "iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd);" (assignment_expression "iVar4 = (*(code *)PTR_close_000759e8)(sp->fts_rfd)" identifier = (call_expression "(*(code *)PTR_close_000759e8)(sp->fts_rfd)" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp->fts_rfd)" ( (field_expression "sp->fts_rfd" identifier -> field_identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar4 = *piVar3;\n      goto LAB_00040b5c;\n    }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })) }) (else_clause "else if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }" else (if_statement "if ((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }" if (parenthesized_expression "((-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0))" ( (binary_expression "(-1 < sp->fts_cwd_fd) && (iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)" (parenthesized_expression "(-1 < sp->fts_cwd_fd)" ( (binary_expression "-1 < sp->fts_cwd_fd" number_literal < (field_expression "sp->fts_cwd_fd" identifier -> field_identifier)) )) && (parenthesized_expression "(iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0)" ( (comma_expression "iVar4 = (*(code *)PTR_close_000759e8)(), iVar4 != 0" (assignment_expression "iVar4 = (*(code *)PTR_close_000759e8)()" identifier = (call_expression "(*(code *)PTR_close_000759e8)()" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar4 = *piVar3;\n    goto LAB_00040b5c;\n  }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00040b5c:\n  fd_ring_clear(&sp->fts_fd_ring);" statement_identifier : (expression_statement "fd_ring_clear(&sp->fts_fd_ring);" (call_expression "fd_ring_clear(&sp->fts_fd_ring)" identifier (argument_list "(&sp->fts_fd_ring)" ( (pointer_expression "&sp->fts_fd_ring" & (field_expression "sp->fts_fd_ring" identifier -> field_identifier)) ))) ;)) (if_statement "if (sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0) {\n    hash_free(sp->fts_leaf_optimization_works_ht);\n  }" if (parenthesized_expression "(sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0)" ( (binary_expression "sp->fts_leaf_optimization_works_ht != (Hash_table *)0x0" (field_expression "sp->fts_leaf_optimization_works_ht" identifier -> field_identifier) != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    hash_free(sp->fts_leaf_optimization_works_ht);\n  }" { (expression_statement "hash_free(sp->fts_leaf_optimization_works_ht);" (call_expression "hash_free(sp->fts_leaf_optimization_works_ht)" identifier (argument_list "(sp->fts_leaf_optimization_works_ht)" ( (field_expression "sp->fts_leaf_optimization_works_ht" identifier -> field_identifier) ))) ;) })) (if_statement "if ((sp->fts_options & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if ((sp->fts_cycle).ht != (Hash_table *)0x0) {\n    hash_free((sp->fts_cycle).ht);\n  }" if (parenthesized_expression "((sp->fts_options & 0x102U) == 0)" ( (binary_expression "(sp->fts_options & 0x102U) == 0" (parenthesized_expression "(sp->fts_options & 0x102U)" ( (binary_expression "sp->fts_options & 0x102U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_00075bfc)();\n  }" { (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else if ((sp->fts_cycle).ht != (Hash_table *)0x0) {\n    hash_free((sp->fts_cycle).ht);\n  }" else (if_statement "if ((sp->fts_cycle).ht != (Hash_table *)0x0) {\n    hash_free((sp->fts_cycle).ht);\n  }" if (parenthesized_expression "((sp->fts_cycle).ht != (Hash_table *)0x0)" ( (binary_expression "(sp->fts_cycle).ht != (Hash_table *)0x0" (field_expression "(sp->fts_cycle).ht" (parenthesized_expression "(sp->fts_cycle)" ( (field_expression "sp->fts_cycle" identifier -> field_identifier) )) . field_identifier) != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    hash_free((sp->fts_cycle).ht);\n  }" { (expression_statement "hash_free((sp->fts_cycle).ht);" (call_expression "hash_free((sp->fts_cycle).ht)" identifier (argument_list "((sp->fts_cycle).ht)" ( (field_expression "(sp->fts_cycle).ht" (parenthesized_expression "(sp->fts_cycle)" ( (field_expression "sp->fts_cycle" identifier -> field_identifier) )) . field_identifier) ))) ;) })))) (expression_statement "(*(code *)PTR_free_00075bfc)(sp);" (call_expression "(*(code *)PTR_free_00075bfc)(sp)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp)" ( identifier ))) ;) (if_statement "if (iVar4 != 0) {\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar3 = iVar4;\n    iVar4 = -1;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar3 = iVar4;\n    iVar4 = -1;\n  }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar3 = iVar4;" (assignment_expression "*piVar3 = iVar4" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int fts_close(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int fts_close(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "fts_close(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x30)" identifier = (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (while_statement "while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }" while (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }" { (while_statement "while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }" while (parenthesized_expression "(iVar4 = *(int *)(iVar1 + 8), iVar4 == 0)" ( (comma_expression "iVar4 = *(int *)(iVar1 + 8), iVar4 == 0" (assignment_expression "iVar4 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) , (binary_expression "iVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }" { (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;" if (parenthesized_expression "(*(int *)(iVar1 + 0x30) < 0)" ( (binary_expression "*(int *)(iVar1 + 0x30) < 0" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) < number_literal) )) (goto_statement "goto LAB_00040af4;" goto statement_identifier ;)) })) (expression_statement "(*(code *)PTR_free_00075bfc)(iVar1);" (call_expression "(*(code *)PTR_free_00075bfc)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(iVar4 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x30)" identifier = (pointer_expression "*(int *)(iVar4 + 0x30)" * (cast_expression "(int *)(iVar4 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);" statement_identifier : (expression_statement "(*(code *)PTR_free_00075bfc)(iVar1);" (call_expression "(*(code *)PTR_free_00075bfc)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;)) })) (if_statement "if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0003eccc();\n  }" { (expression_statement "FUN_0003eccc();" (call_expression "FUN_0003eccc()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1[2]);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1[2])" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1[6]);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1[6])" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[6])" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) (if_statement "if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" if (parenthesized_expression "((param_1[0xc] & 0x200U) == 0)" ( (binary_expression "(param_1[0xc] & 0x200U) == 0" (parenthesized_expression "(param_1[0xc] & 0x200U)" ( (binary_expression "param_1[0xc] & 0x200U" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;" if (parenthesized_expression "((param_1[0xc] & 4U) != 0)" ( (binary_expression "(param_1[0xc] & 4U) != 0" (parenthesized_expression "(param_1[0xc] & 4U)" ( (binary_expression "param_1[0xc] & 4U" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7])" identifier = (call_expression "(*(code *)PTR_fchdir_00075a3c)(param_1[7])" (parenthesized_expression "(*(code *)PTR_fchdir_00075a3c)" ( (pointer_expression "*(code *)PTR_fchdir_00075a3c" * (cast_expression "(code *)PTR_fchdir_00075a3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[7])" ( (subscript_expression "param_1[7]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);" (assignment_expression "iVar3 = (*(code *)PTR_close_000759e8)(param_1[7])" identifier = (call_expression "(*(code *)PTR_close_000759e8)(param_1[7])" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[7])" ( (subscript_expression "param_1[7]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }" if (parenthesized_expression "((iVar3 != 0) && (iVar1 == 0))" ( (binary_expression "(iVar3 != 0) && (iVar1 == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        iVar1 = *piVar2;\n      }" { (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);" (assignment_expression "iVar1 = (*(code *)PTR_close_000759e8)(param_1[7])" identifier = (call_expression "(*(code *)PTR_close_000759e8)(param_1[7])" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[7])" ( (subscript_expression "param_1[7]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })) }) (else_clause "else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" else (if_statement "if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" if (parenthesized_expression "((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0))" ( (binary_expression "(-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)" (parenthesized_expression "(-1 < param_1[8])" ( (binary_expression "-1 < param_1[8]" number_literal < (subscript_expression "param_1[8]" identifier [ number_literal ])) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_close_000759e8)()" identifier = (call_expression "(*(code *)PTR_close_000759e8)()" (parenthesized_expression "(*(code *)PTR_close_000759e8)" ( (pointer_expression "*(code *)PTR_close_000759e8" * (cast_expression "(code *)PTR_close_000759e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (goto_statement "goto LAB_00040b5c;" goto statement_identifier ;) })))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);" statement_identifier : (expression_statement "FUN_0003ed48(param_1 + 0xf);" (call_expression "FUN_0003ed48(param_1 + 0xf)" identifier (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;)) (if_statement "if (param_1[0xd] != 0) {\n    hash_free();\n  }" if (parenthesized_expression "(param_1[0xd] != 0)" ( (binary_expression "param_1[0xd] != 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    hash_free();\n  }" { (expression_statement "hash_free();" (call_expression "hash_free()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }" if (parenthesized_expression "((param_1[0xc] & 0x102U) == 0)" ( (binary_expression "(param_1[0xc] & 0x102U) == 0" (parenthesized_expression "(param_1[0xc] & 0x102U)" ( (binary_expression "param_1[0xc] & 0x102U" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_00075bfc)();\n  }" { (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else if (param_1[0xe] != 0) {\n    hash_free();\n  }" else (if_statement "if (param_1[0xe] != 0) {\n    hash_free();\n  }" if (parenthesized_expression "(param_1[0xe] != 0)" ( (binary_expression "param_1[0xe] != 0" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    hash_free();\n  }" { (expression_statement "hash_free();" (call_expression "hash_free()" identifier (argument_list "()" ( ))) ;) })))) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" ( (pointer_expression "*(code *)PTR_free_00075bfc" * (cast_expression "(code *)PTR_free_00075bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (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 IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != 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 ( (subscript_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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (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 ( (subscript_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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (subscript_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 ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int fts_close(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "fts_close(int *param_1)" (identifier "fts_close") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }\n  if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1[2]);\n  (*(code *)PTR_free_00075bfc)(param_1[6]);\n  if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }\n  iVar1 = 0;\nLAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);\n  if (param_1[0xd] != 0) {\n    hash_free();\n  }\n  if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }\n  (*(code *)PTR_free_00075bfc)(param_1);\n  if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x30);\n    while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }\nLAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x30)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (while_statement "while (-1 < iVar3) {\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }" (while "while") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }\n      (*(code *)PTR_free_00075bfc)(iVar1);\n      iVar1 = iVar4;\n      iVar3 = *(int *)(iVar4 + 0x30);\n    }" ({ "{") (while_statement "while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }" (while "while") (parenthesized_expression "(iVar4 = *(int *)(iVar1 + 8), iVar4 == 0)" (( "(") (comma_expression "iVar4 = *(int *)(iVar1 + 8), iVar4 == 0" (assignment_expression "iVar4 = *(int *)(iVar1 + 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n        iVar1 = *(int *)(iVar1 + 4);\n        (*(code *)PTR_free_00075bfc)();\n        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x30) < 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x30) < 0" (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00040af4;" (goto "goto") (statement_identifier "LAB_00040af4") (; ";"))) (} "}"))) (expression_statement "(*(code *)PTR_free_00075bfc)(iVar1);" (call_expression "(*(code *)PTR_free_00075bfc)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" (identifier "iVar1") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar3 = *(int *)(iVar4 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x30)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar4 + 0x30)" (* "*") (cast_expression "(int *)(iVar4 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_00040af4:\n    (*(code *)PTR_free_00075bfc)(iVar1);" (statement_identifier "LAB_00040af4") (: ":") (expression_statement "(*(code *)PTR_free_00075bfc)(iVar1);" (call_expression "(*(code *)PTR_free_00075bfc)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";"))) (} "}"))) (if_statement "if (param_1[1] != 0) {\n    FUN_0003eccc();\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0003eccc();\n  }" ({ "{") (expression_statement "FUN_0003eccc();" (call_expression "FUN_0003eccc()" (identifier "FUN_0003eccc") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1[2]);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1[2])" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1[6]);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1[6])" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "(param_1[6])" (( "(") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) () ")"))) (; ";")) (if_statement "if ((param_1[0xc] & 0x200U) == 0) {\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }\n  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" (if "if") (parenthesized_expression "((param_1[0xc] & 0x200U) == 0)" (( "(") (binary_expression "(param_1[0xc] & 0x200U) == 0" (parenthesized_expression "(param_1[0xc] & 0x200U)" (( "(") (binary_expression "param_1[0xc] & 0x200U" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (& "&") (number_literal "0x200U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 0;\n    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;\n    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }\n    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);\n    if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;" (if "if") (parenthesized_expression "((param_1[0xc] & 4U) != 0)" (( "(") (binary_expression "(param_1[0xc] & 4U) != 0" (parenthesized_expression "(param_1[0xc] & 4U)" (( "(") (binary_expression "param_1[0xc] & 4U" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (& "&") (number_literal "4U")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00040b5c;" (goto "goto") (statement_identifier "LAB_00040b5c") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7])" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_fchdir_00075a3c)(param_1[7])" (parenthesized_expression "(*(code *)PTR_fchdir_00075a3c)" (( "(") (pointer_expression "*(code *)PTR_fchdir_00075a3c" (* "*") (cast_expression "(code *)PTR_fchdir_00075a3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchdir_00075a3c"))) () ")")) (argument_list "(param_1[7])" (( "(") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);\n      if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }\n      goto LAB_00040b5c;\n    }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00075ac4" (* "*") (cast_expression "(code *)PTR___errno_location_00075ac4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00075ac4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);" (assignment_expression "iVar3 = (*(code *)PTR_close_000759e8)(param_1[7])" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_close_000759e8)(param_1[7])" (parenthesized_expression "(*(code *)PTR_close_000759e8)" (( "(") (pointer_expression "*(code *)PTR_close_000759e8" (* "*") (cast_expression "(code *)PTR_close_000759e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000759e8"))) () ")")) (argument_list "(param_1[7])" (( "(") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) () ")")))) (; ";")) (if_statement "if ((iVar3 != 0) && (iVar1 == 0)) {\n        iVar1 = *piVar2;\n      }" (if "if") (parenthesized_expression "((iVar3 != 0) && (iVar1 == 0))" (( "(") (binary_expression "(iVar3 != 0) && (iVar1 == 0)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        iVar1 = *piVar2;\n      }" ({ "{") (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00040b5c;" (goto "goto") (statement_identifier "LAB_00040b5c") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);" (assignment_expression "iVar1 = (*(code *)PTR_close_000759e8)(param_1[7])" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_close_000759e8)(param_1[7])" (parenthesized_expression "(*(code *)PTR_close_000759e8)" (( "(") (pointer_expression "*(code *)PTR_close_000759e8" (* "*") (cast_expression "(code *)PTR_close_000759e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000759e8"))) () ")")) (argument_list "(param_1[7])" (( "(") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n      iVar1 = *piVar2;\n      goto LAB_00040b5c;\n    }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00075ac4" (* "*") (cast_expression "(code *)PTR___errno_location_00075ac4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00075ac4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (goto_statement "goto LAB_00040b5c;" (goto "goto") (statement_identifier "LAB_00040b5c") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" (else "else") (if_statement "if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" (if "if") (parenthesized_expression "((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0))" (( "(") (binary_expression "(-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)" (parenthesized_expression "(-1 < param_1[8])" (( "(") (binary_expression "-1 < param_1[8]" (number_literal "-1") (< "<") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_close_000759e8)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_close_000759e8)()" (parenthesized_expression "(*(code *)PTR_close_000759e8)" (( "(") (pointer_expression "*(code *)PTR_close_000759e8" (* "*") (cast_expression "(code *)PTR_close_000759e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000759e8"))) () ")")) (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    iVar1 = *piVar2;\n    goto LAB_00040b5c;\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00075ac4" (* "*") (cast_expression "(code *)PTR___errno_location_00075ac4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00075ac4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (goto_statement "goto LAB_00040b5c;" (goto "goto") (statement_identifier "LAB_00040b5c") (; ";")) (} "}"))))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00040b5c:\n  FUN_0003ed48(param_1 + 0xf);" (statement_identifier "LAB_00040b5c") (: ":") (expression_statement "FUN_0003ed48(param_1 + 0xf);" (call_expression "FUN_0003ed48(param_1 + 0xf)" (identifier "FUN_0003ed48") (argument_list "(param_1 + 0xf)" (( "(") (binary_expression "param_1 + 0xf" (identifier "param_1") (+ "+") (number_literal "0xf")) () ")"))) (; ";"))) (if_statement "if (param_1[0xd] != 0) {\n    hash_free();\n  }" (if "if") (parenthesized_expression "(param_1[0xd] != 0)" (( "(") (binary_expression "param_1[0xd] != 0" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    hash_free();\n  }" ({ "{") (expression_statement "hash_free();" (call_expression "hash_free()" (identifier "hash_free") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_1[0xc] & 0x102U) == 0) {\n    (*(code *)PTR_free_00075bfc)();\n  }\n  else if (param_1[0xe] != 0) {\n    hash_free();\n  }" (if "if") (parenthesized_expression "((param_1[0xc] & 0x102U) == 0)" (( "(") (binary_expression "(param_1[0xc] & 0x102U) == 0" (parenthesized_expression "(param_1[0xc] & 0x102U)" (( "(") (binary_expression "param_1[0xc] & 0x102U" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (& "&") (number_literal "0x102U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_free_00075bfc)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_00075bfc)();" (call_expression "(*(code *)PTR_free_00075bfc)()" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else if (param_1[0xe] != 0) {\n    hash_free();\n  }" (else "else") (if_statement "if (param_1[0xe] != 0) {\n    hash_free();\n  }" (if "if") (parenthesized_expression "(param_1[0xe] != 0)" (( "(") (binary_expression "param_1[0xe] != 0" (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    hash_free();\n  }" ({ "{") (expression_statement "hash_free();" (call_expression "hash_free()" (identifier "hash_free") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))) (expression_statement "(*(code *)PTR_free_00075bfc)(param_1);" (call_expression "(*(code *)PTR_free_00075bfc)(param_1)" (parenthesized_expression "(*(code *)PTR_free_00075bfc)" (( "(") (pointer_expression "*(code *)PTR_free_00075bfc" (* "*") (cast_expression "(code *)PTR_free_00075bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00075bfc"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    *piVar2 = iVar1;\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00075ac4" (* "*") (cast_expression "(code *)PTR___errno_location_00075ac4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00075ac4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (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")) (; ";")) (} "}"))) (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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 (subscript_expression argument: (identifier) index: (number_literal))))) (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 (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) 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 (subscript_expression argument: (identifier) index: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (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 (subscript_expression argument: (identifier) index: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (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))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(int *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = *param_1;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x30);
    while (-1 < iVar3) {
      while (iVar4 = *(int *)(iVar1 + 8), iVar4 == 0) {
        iVar1 = *(int *)(iVar1 + 4);
        (*(code *)PTR_free_00075bfc)();
        if (*(int *)(iVar1 + 0x30) < 0) goto LAB_00040af4;
      }
      (*(code *)PTR_free_00075bfc)(iVar1);
      iVar1 = iVar4;
      iVar3 = *(int *)(iVar4 + 0x30);
    }
LAB_00040af4:
    (*(code *)PTR_free_00075bfc)(iVar1);
  }
  if (param_1[1] != 0) {
    FUN_0003eccc();
  }
  (*(code *)PTR_free_00075bfc)(param_1[2]);
  (*(code *)PTR_free_00075bfc)(param_1[6]);
  if ((param_1[0xc] & 0x200U) == 0) {
    iVar1 = 0;
    if ((param_1[0xc] & 4U) != 0) goto LAB_00040b5c;
    iVar1 = (*(code *)PTR_fchdir_00075a3c)(param_1[7]);
    if (iVar1 != 0) {
      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
      iVar1 = *piVar2;
      iVar3 = (*(code *)PTR_close_000759e8)(param_1[7]);
      if ((iVar3 != 0) && (iVar1 == 0)) {
        iVar1 = *piVar2;
      }
      goto LAB_00040b5c;
    }
    iVar1 = (*(code *)PTR_close_000759e8)(param_1[7]);
    if (iVar1 != 0) {
      piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
      iVar1 = *piVar2;
      goto LAB_00040b5c;
    }
  }
  else if ((-1 < param_1[8]) && (iVar1 = (*(code *)PTR_close_000759e8)(), iVar1 != 0)) {
    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    iVar1 = *piVar2;
    goto LAB_00040b5c;
  }
  iVar1 = 0;
LAB_00040b5c:
  FUN_0003ed48(param_1 + 0xf);
  if (param_1[0xd] != 0) {
    hash_free();
  }
  if ((param_1[0xc] & 0x102U) == 0) {
    (*(code *)PTR_free_00075bfc)();
  }
  else if (param_1[0xe] != 0) {
    hash_free();
  }
  (*(code *)PTR_free_00075bfc)(param_1);
  if (iVar1 != 0) {
    piVar2 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    *piVar2 = iVar1;
    iVar1 = -1;
  }
  return iVar1;
}

