
FILE * sharefile_fopen(sharefile_handle h,char *filename)

{
  undefined *puVar1;
  int iVar2;
  FILE *pv;
  char *pcVar3;
  FILE *pFVar4;
  int iVar5;
  void *pvVar6;
  undefined4 *puVar7;
  Hash_table *table;
  undefined4 uVar8;
  stat st;
  
  puVar1 = PTR___stack_chk_guard_00075be8;
  iVar2 = *(int *)PTR___stack_chk_guard_00075be8;
  pv = (FILE *)(*(code *)PTR_malloc_00075b2c)(0x18);
  pFVar4 = pv;
  if (pv != (FILE *)0x0) {
    pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);
    pv->_IO_write_base = pcVar3;
    if (pcVar3 != (char *)0x0) {
                    /* WARNING: Load size is inaccurate */
      pFVar4 = fopen_safer(filename,*h);
      pv->_IO_write_ptr = (char *)pFVar4;
      if (pFVar4 != (FILE *)0x0) {
        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);
        if (iVar5 < 0) goto LAB_0001e8e4;
        set_cloexec_flag(iVar5,true);
        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);
        if (iVar5 < 0) {
          pFVar4 = (FILE *)0x0;
          entry_free(pv);
        }
        else {
          table = *(Hash_table **)((int)h + 4);
          pv->_IO_read_ptr = (char *)st.st_dev;
          pv->_flags = 0;
          pv->_IO_read_base = st.st_ino._4_4_;
          pv->_IO_read_end = st.st_ino._0_4_;
          pvVar6 = hash_lookup(table,pv);
          if (pvVar6 == (void *)0x0) {
            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);
            if (pvVar6 == (void *)0x0) {
              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();
              uVar8 = *puVar7;
              pFVar4 = (FILE *)0x0;
              entry_free(pv);
              *puVar7 = uVar8;
            }
            else {
              pFVar4 = (FILE *)pv->_IO_write_ptr;
            }
          }
          else {
            entry_free(pv);
            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);
          }
        }
        goto LAB_0001e820;
      }
    }
    pFVar4 = (FILE *)0x0;
    (*(code *)PTR_free_00075bfc)(pv);
  }
LAB_0001e820:
  if (iVar2 == *(int *)puVar1) {
    return pFVar4;
  }
  (*(code *)PTR___stack_chk_fail_00075ba8)();
LAB_0001e8e4:
  pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)
                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,
                              0xa6,PTR_s_directory_000755b8 + -0x24d0);
  return pFVar4;
}



undefined4 * sharefile_fopen(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  undefined4 local_c0 [4];
  undefined4 local_b0;
  undefined4 local_ac;
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_00075be8;
  local_1c = *(int *)PTR___stack_chk_guard_00075be8;
  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);
  puVar6 = puVar2;
  if (puVar2 != (undefined4 *)0x0) {
    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);
    puVar2[4] = iVar3;
    if (iVar3 != 0) {
      iVar3 = fopen_safer(param_2,*param_1);
      puVar2[5] = iVar3;
      if (iVar3 != 0) {
        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);
        if (iVar3 < 0) goto LAB_0001e8e4;
        set_cloexec_flag(iVar3,1);
        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);
        if (iVar3 < 0) {
          puVar6 = (undefined4 *)0x0;
          FUN_0001e53c(puVar2);
        }
        else {
          uVar5 = param_1[1];
          puVar2[1] = local_c0[0];
          *puVar2 = 0;
          puVar2[3] = local_ac;
          puVar2[2] = local_b0;
          iVar3 = hash_lookup(uVar5,puVar2);
          if (iVar3 == 0) {
            iVar3 = hash_insert(param_1[1],puVar2);
            if (iVar3 == 0) {
              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();
              uVar5 = *puVar4;
              puVar6 = (undefined4 *)0x0;
              FUN_0001e53c(puVar2);
              *puVar4 = uVar5;
            }
            else {
              puVar6 = (undefined4 *)puVar2[5];
            }
          }
          else {
            FUN_0001e53c(puVar2);
            puVar6 = *(undefined4 **)(iVar3 + 0x14);
          }
        }
        goto LAB_0001e820;
      }
    }
    puVar6 = (undefined4 *)0x0;
    (*(code *)PTR_free_00075bfc)(puVar2);
  }
LAB_0001e820:
  if (local_1c == *(int *)puVar1) {
    return puVar6;
  }
  (*(code *)PTR___stack_chk_fail_00075ba8)();
LAB_0001e8e4:
  puVar6 = (undefined4 *)
           (*(code *)PTR___assert_fail_000759d0)
                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,
                      PTR_s_directory_000755b8 + -0x24d0);
  return puVar6;
}


lui gp,0x6
addiu gp,gp,-0x117c
addu gp,gp,t9
addiu sp,sp,-0xd8
lw t9,-0x7a54(gp)
sw s1,0xc8(sp)
lw s1,-0x7998(gp)
sw s3,0xd0(sp)
or s3,a0,zero
li a0,0x18
sw gp,0x10(sp)
sw s2,0xcc(sp)
or s2,a1,zero
sw s0,0xc4(sp)
sw ra,0xd4(sp)
lw v0,0x0(s1)
sw v0,0xbc(sp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001e820
_or s0,v0,zero
lw t9,-0x7988(gp)
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
beq v0,zero,0x0001e888
_sw v0,0x10(s0)
lw t9,-0x7df8(gp)
or a0,s2,zero
bal 0x0002a750
_lw a1,0x0(s3)
lw gp,0x10(sp)
beq v0,zero,0x0001e888
_sw v0,0x14(s0)
lw t9,-0x7ac8(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
bltz v0,0x0001e8e4
_or s2,v0,zero
lw t9,-0x7ed4(gp)
li a1,0x1
bal 0x00029e20
_or a0,v0,zero
addiu a2,sp,0x18
lw gp,0x10(sp)
li a0,0x3
lw t9,-0x7a10(gp)
jalr t9
_or a1,s2,zero
bltz v0,0x0001e86c
_lw gp,0x10(sp)
lw v0,0x18(sp)
or a1,s0,zero
lw v1,0x2c(sp)
lw t9,-0x7df4(gp)
lw a0,0x4(s3)
sw v0,0x4(s0)
sw zero,0x0(s0)
sw v1,0xc(s0)
lw v0,0x28(sp)
bal 0x0002aff8
_sw v0,0x8(s0)
lw gp,0x10(sp)
beq v0,zero,0x0001e84c
_or s2,v0,zero
lw t9,-0x7f18(gp)
addiu t9,t9,-0x1ac4
bal 0x0001e53c
_or a0,s0,zero
lw gp,0x10(sp)
lw s0,0x14(s2)
lw a0,0xbc(sp)
or v0,s0,zero
lw v1,0x0(s1)
bne a0,v1,0x0001e8d8
_lw ra,0xd4(sp)
lw s3,0xd0(sp)
lw s2,0xcc(sp)
lw s1,0xc8(sp)
lw s0,0xc4(sp)
jr ra
_addiu sp,sp,0xd8
lw t9,-0x7df0(gp)
or a1,s0,zero
bal 0x0002bccc
_lw a0,0x4(s3)
beq v0,zero,0x0001e8a0
_lw gp,0x10(sp)
b 0x0001e820
_lw s0,0x14(s0)
lw t9,-0x7f18(gp)
or a0,s0,zero
addiu t9,t9,-0x1ac4
bal 0x0001e53c
_or s0,zero,zero
b 0x0001e820
_lw gp,0x10(sp)
lw t9,-0x7984(gp)
or a0,s0,zero
jalr t9
_or s0,zero,zero
b 0x0001e820
_lw gp,0x10(sp)
lw t9,-0x7abc(gp)
jalr t9
_nop
or a0,s0,zero
lw gp,0x10(sp)
or s2,v0,zero
lw s3,0x0(v0)
lw t9,-0x7f18(gp)
addiu t9,t9,-0x1ac4
bal 0x0001e53c
_or s0,zero,zero
lw gp,0x10(sp)
b 0x0001e820
_sw s3,0x0(s2)
lw t9,-0x79d8(gp)
jalr t9
_nop
lw a3,-0x7fc8(gp)
li a2,0xa6
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7bb0(gp)
addiu a3,a3,-0x24d0
addiu a1,a1,-0x24e8
jalr t9
_addiu a0,a0,-0x24dc
(translation_unit "undefined4 * sharefile_fopen(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}\n\n" (function_definition "undefined4 * sharefile_fopen(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}" type_identifier (pointer_declarator "* sharefile_fopen(undefined4 *param_1,undefined4 param_2)" * (function_declarator "sharefile_fopen(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_c0 [4];" type_identifier (array_declarator "local_c0 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_b0;" type_identifier identifier ;) (declaration "undefined4 local_ac;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00075b2c)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00075b2c)" ( (pointer_expression "*(code *)PTR_malloc_00075b2c" * (cast_expression "(code *)PTR_malloc_00075b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2)" identifier = (call_expression "(*(code *)PTR_strdup_00075bf8)(param_2)" (parenthesized_expression "(*(code *)PTR_strdup_00075bf8)" ( (pointer_expression "*(code *)PTR_strdup_00075bf8" * (cast_expression "(code *)PTR_strdup_00075bf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar2[4] = iVar3;" (assignment_expression "puVar2[4] = iVar3" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" { (expression_statement "iVar3 = fopen_safer(param_2,*param_1);" (assignment_expression "iVar3 = fopen_safer(param_2,*param_1)" identifier = (call_expression "fopen_safer(param_2,*param_1)" identifier (argument_list "(param_2,*param_1)" ( identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "puVar2[5] = iVar3;" (assignment_expression "puVar2[5] = iVar3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" { (expression_statement "iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3)" identifier = (call_expression "(*(code *)PTR_fileno_00075ab8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fileno_00075ab8)" ( (pointer_expression "*(code *)PTR_fileno_00075ab8" * (cast_expression "(code *)PTR_fileno_00075ab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 < 0) goto LAB_0001e8e4;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001e8e4;" goto statement_identifier ;)) (expression_statement "set_cloexec_flag(iVar3,1);" (call_expression "set_cloexec_flag(iVar3,1)" identifier (argument_list "(iVar3,1)" ( identifier , number_literal ))) ;) (expression_statement "iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);" (assignment_expression "iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0)" identifier = (call_expression "(*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0)" (parenthesized_expression "(*(code *)PTR___fxstat64_00075b70)" ( (pointer_expression "*(code *)PTR___fxstat64_00075b70" * (cast_expression "(code *)PTR___fxstat64_00075b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar3,local_c0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }" { (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) }) (else_clause "else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" else (compound_statement "{\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" { (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2[1] = local_c0[0];" (assignment_expression "puVar2[1] = local_c0[0]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "local_c0[0]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[3] = local_ac;" (assignment_expression "puVar2[3] = local_ac" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = local_b0;" (assignment_expression "puVar2[2] = local_b0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = hash_lookup(uVar5,puVar2);" (assignment_expression "iVar3 = hash_lookup(uVar5,puVar2)" identifier = (call_expression "hash_lookup(uVar5,puVar2)" identifier (argument_list "(uVar5,puVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }" { (expression_statement "iVar3 = hash_insert(param_1[1],puVar2);" (assignment_expression "iVar3 = hash_insert(param_1[1],puVar2)" identifier = (call_expression "hash_insert(param_1[1],puVar2)" identifier (argument_list "(param_1[1],puVar2)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "undefined4 *" type_identifier (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 "uVar5 = *puVar4;" (assignment_expression "uVar5 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) (else_clause "else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }" else (compound_statement "{\n              puVar6 = (undefined4 *)puVar2[5];\n            }" { (expression_statement "puVar6 = (undefined4 *)puVar2[5];" (assignment_expression "puVar6 = (undefined4 *)puVar2[5]" identifier = (cast_expression "(undefined4 *)puVar2[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[5]" identifier [ number_literal ]))) ;) }))) }) (else_clause "else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" else (compound_statement "{\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" { (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "puVar6 = *(undefined4 **)(iVar3 + 0x14);" (assignment_expression "puVar6 = *(undefined4 **)(iVar3 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(iVar3 + 0x14)" * (cast_expression "(undefined4 **)(iVar3 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }))) }))) (goto_statement "goto LAB_0001e820;" goto statement_identifier ;) })) })) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_free_00075bfc)(puVar2);" (call_expression "(*(code *)PTR_free_00075bfc)(puVar2)" (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 "(puVar2)" ( identifier ))) ;) })) (labeled_statement "LAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar6;\n  }" { (return_statement "return puVar6;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);" statement_identifier : (expression_statement "puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);" (assignment_expression "puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" identifier = (cast_expression "(undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" ( (pointer_expression "*(code *)PTR___assert_fail_000759d0" * (cast_expression "(code *)PTR___assert_fail_000759d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" ( (binary_expression "PTR_s_directory_000755b8 + -0x24dc" identifier + number_literal) , (binary_expression "PTR_s_directory_000755b8 + -0x24e8" identifier + number_literal) , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x24d0" identifier + number_literal) ))))) ;)) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit "FILE * sharefile_fopen(sharefile_handle h,char *filename)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  FILE *pv;\n  char *pcVar3;\n  FILE *pFVar4;\n  int iVar5;\n  void *pvVar6;\n  undefined4 *puVar7;\n  Hash_table *table;\n  undefined4 uVar8;\n  stat st;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  iVar2 = *(int *)PTR___stack_chk_guard_00075be8;\n  pv = (FILE *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  pFVar4 = pv;\n  if (pv != (FILE *)0x0) {\n    pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);\n    pv->_IO_write_base = pcVar3;\n    if (pcVar3 != (char *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    pFVar4 = (FILE *)0x0;\n    (*(code *)PTR_free_00075bfc)(pv);\n  }\nLAB_0001e820:\n  if (iVar2 == *(int *)puVar1) {\n    return pFVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0);\n  return pFVar4;\n}\n\n" (function_definition "FILE * sharefile_fopen(sharefile_handle h,char *filename)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  FILE *pv;\n  char *pcVar3;\n  FILE *pFVar4;\n  int iVar5;\n  void *pvVar6;\n  undefined4 *puVar7;\n  Hash_table *table;\n  undefined4 uVar8;\n  stat st;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  iVar2 = *(int *)PTR___stack_chk_guard_00075be8;\n  pv = (FILE *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  pFVar4 = pv;\n  if (pv != (FILE *)0x0) {\n    pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);\n    pv->_IO_write_base = pcVar3;\n    if (pcVar3 != (char *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    pFVar4 = (FILE *)0x0;\n    (*(code *)PTR_free_00075bfc)(pv);\n  }\nLAB_0001e820:\n  if (iVar2 == *(int *)puVar1) {\n    return pFVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0);\n  return pFVar4;\n}" type_identifier (pointer_declarator "* sharefile_fopen(sharefile_handle h,char *filename)" * (function_declarator "sharefile_fopen(sharefile_handle h,char *filename)" identifier (parameter_list "(sharefile_handle h,char *filename)" ( (parameter_declaration "sharefile_handle h" type_identifier identifier) , (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  FILE *pv;\n  char *pcVar3;\n  FILE *pFVar4;\n  int iVar5;\n  void *pvVar6;\n  undefined4 *puVar7;\n  Hash_table *table;\n  undefined4 uVar8;\n  stat st;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  iVar2 = *(int *)PTR___stack_chk_guard_00075be8;\n  pv = (FILE *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  pFVar4 = pv;\n  if (pv != (FILE *)0x0) {\n    pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);\n    pv->_IO_write_base = pcVar3;\n    if (pcVar3 != (char *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    pFVar4 = (FILE *)0x0;\n    (*(code *)PTR_free_00075bfc)(pv);\n  }\nLAB_0001e820:\n  if (iVar2 == *(int *)puVar1) {\n    return pFVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0);\n  return pFVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *pv;" type_identifier (pointer_declarator "*pv" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "FILE *pFVar4;" type_identifier (pointer_declarator "*pFVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "Hash_table *table;" type_identifier (pointer_declarator "*table" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "stat st;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pv = (FILE *)(*(code *)PTR_malloc_00075b2c)(0x18);" (assignment_expression "pv = (FILE *)(*(code *)PTR_malloc_00075b2c)(0x18)" identifier = (cast_expression "(FILE *)(*(code *)PTR_malloc_00075b2c)(0x18)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00075b2c)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00075b2c)" ( (pointer_expression "*(code *)PTR_malloc_00075b2c" * (cast_expression "(code *)PTR_malloc_00075b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "pFVar4 = pv;" (assignment_expression "pFVar4 = pv" identifier = identifier) ;) (if_statement "if (pv != (FILE *)0x0) {\n    pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);\n    pv->_IO_write_base = pcVar3;\n    if (pcVar3 != (char *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    pFVar4 = (FILE *)0x0;\n    (*(code *)PTR_free_00075bfc)(pv);\n  }" if (parenthesized_expression "(pv != (FILE *)0x0)" ( (binary_expression "pv != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);\n    pv->_IO_write_base = pcVar3;\n    if (pcVar3 != (char *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    pFVar4 = (FILE *)0x0;\n    (*(code *)PTR_free_00075bfc)(pv);\n  }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strdup_00075bf8)(filename)" identifier = (cast_expression "(char *)(*(code *)PTR_strdup_00075bf8)(filename)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strdup_00075bf8)(filename)" (parenthesized_expression "(*(code *)PTR_strdup_00075bf8)" ( (pointer_expression "*(code *)PTR_strdup_00075bf8" * (cast_expression "(code *)PTR_strdup_00075bf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename)" ( identifier ))))) ;) (expression_statement "pv->_IO_write_base = pcVar3;" (assignment_expression "pv->_IO_write_base = pcVar3" (field_expression "pv->_IO_write_base" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      pFVar4 = fopen_safer(filename,*h);\n      pv->_IO_write_ptr = (char *)pFVar4;\n      if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" { comment (expression_statement "pFVar4 = fopen_safer(filename,*h);" (assignment_expression "pFVar4 = fopen_safer(filename,*h)" identifier = (call_expression "fopen_safer(filename,*h)" identifier (argument_list "(filename,*h)" ( identifier , (pointer_expression "*h" * identifier) )))) ;) (expression_statement "pv->_IO_write_ptr = (char *)pFVar4;" (assignment_expression "pv->_IO_write_ptr = (char *)pFVar4" (field_expression "pv->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)pFVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pFVar4 != (FILE *)0x0) {\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" if (parenthesized_expression "(pFVar4 != (FILE *)0x0)" ( (binary_expression "pFVar4 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);\n        if (iVar5 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar5,true);\n        iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);\n        if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" { (expression_statement "iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4);" (assignment_expression "iVar5 = (*(code *)PTR_fileno_00075ab8)(pFVar4)" identifier = (call_expression "(*(code *)PTR_fileno_00075ab8)(pFVar4)" (parenthesized_expression "(*(code *)PTR_fileno_00075ab8)" ( (pointer_expression "*(code *)PTR_fileno_00075ab8" * (cast_expression "(code *)PTR_fileno_00075ab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pFVar4)" ( identifier )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0001e8e4;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001e8e4;" goto statement_identifier ;)) (expression_statement "set_cloexec_flag(iVar5,true);" (call_expression "set_cloexec_flag(iVar5,true)" identifier (argument_list "(iVar5,true)" ( identifier , true ))) ;) (expression_statement "iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st);" (assignment_expression "iVar5 = (*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st)" identifier = (call_expression "(*(code *)PTR___fxstat64_00075b70)(3,iVar5,&st)" (parenthesized_expression "(*(code *)PTR___fxstat64_00075b70)" ( (pointer_expression "*(code *)PTR___fxstat64_00075b70" * (cast_expression "(code *)PTR___fxstat64_00075b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar5,&st)" ( number_literal , identifier , (pointer_expression "&st" & identifier) )))) ;) (if_statement "if (iVar5 < 0) {\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }\n        else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n          pFVar4 = (FILE *)0x0;\n          entry_free(pv);\n        }" { (expression_statement "pFVar4 = (FILE *)0x0;" (assignment_expression "pFVar4 = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "entry_free(pv);" (call_expression "entry_free(pv)" identifier (argument_list "(pv)" ( identifier ))) ;) }) (else_clause "else {\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }" else (compound_statement "{\n          table = *(Hash_table **)((int)h + 4);\n          pv->_IO_read_ptr = (char *)st.st_dev;\n          pv->_flags = 0;\n          pv->_IO_read_base = st.st_ino._4_4_;\n          pv->_IO_read_end = st.st_ino._0_4_;\n          pvVar6 = hash_lookup(table,pv);\n          if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }\n        }" { (expression_statement "table = *(Hash_table **)((int)h + 4);" (assignment_expression "table = *(Hash_table **)((int)h + 4)" identifier = (pointer_expression "*(Hash_table **)((int)h + 4)" * (cast_expression "(Hash_table **)((int)h + 4)" ( (type_descriptor "Hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)h + 4)" ( (binary_expression "(int)h + 4" (cast_expression "(int)h" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pv->_IO_read_ptr = (char *)st.st_dev;" (assignment_expression "pv->_IO_read_ptr = (char *)st.st_dev" (field_expression "pv->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)st.st_dev" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "st.st_dev" identifier . field_identifier))) ;) (expression_statement "pv->_flags = 0;" (assignment_expression "pv->_flags = 0" (field_expression "pv->_flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "pv->_IO_read_base = st.st_ino._4_4_;" (assignment_expression "pv->_IO_read_base = st.st_ino._4_4_" (field_expression "pv->_IO_read_base" identifier -> field_identifier) = (field_expression "st.st_ino._4_4_" (field_expression "st.st_ino" identifier . field_identifier) . field_identifier)) ;) (expression_statement "pv->_IO_read_end = st.st_ino._0_4_;" (assignment_expression "pv->_IO_read_end = st.st_ino._0_4_" (field_expression "pv->_IO_read_end" identifier -> field_identifier) = (field_expression "st.st_ino._0_4_" (field_expression "st.st_ino" identifier . field_identifier) . field_identifier)) ;) (expression_statement "pvVar6 = hash_lookup(table,pv);" (assignment_expression "pvVar6 = hash_lookup(table,pv)" identifier = (call_expression "hash_lookup(table,pv)" identifier (argument_list "(table,pv)" ( identifier , identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }\n          else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);\n            if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }\n          }" { (expression_statement "pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv);" (assignment_expression "pvVar6 = hash_insert(*(Hash_table **)((int)h + 4),pv)" identifier = (call_expression "hash_insert(*(Hash_table **)((int)h + 4),pv)" identifier (argument_list "(*(Hash_table **)((int)h + 4),pv)" ( (pointer_expression "*(Hash_table **)((int)h + 4)" * (cast_expression "(Hash_table **)((int)h + 4)" ( (type_descriptor "Hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)h + 4)" ( (binary_expression "(int)h + 4" (cast_expression "(int)h" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }\n            else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar8 = *puVar7;\n              pFVar4 = (FILE *)0x0;\n              entry_free(pv);\n              *puVar7 = uVar8;\n            }" { (expression_statement "puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "puVar7 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "undefined4 *" type_identifier (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 "uVar8 = *puVar7;" (assignment_expression "uVar8 = *puVar7" identifier = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "pFVar4 = (FILE *)0x0;" (assignment_expression "pFVar4 = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "entry_free(pv);" (call_expression "entry_free(pv)" identifier (argument_list "(pv)" ( identifier ))) ;) (expression_statement "*puVar7 = uVar8;" (assignment_expression "*puVar7 = uVar8" (pointer_expression "*puVar7" * identifier) = identifier) ;) }) (else_clause "else {\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }" else (compound_statement "{\n              pFVar4 = (FILE *)pv->_IO_write_ptr;\n            }" { (expression_statement "pFVar4 = (FILE *)pv->_IO_write_ptr;" (assignment_expression "pFVar4 = (FILE *)pv->_IO_write_ptr" identifier = (cast_expression "(FILE *)pv->_IO_write_ptr" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pv->_IO_write_ptr" identifier -> field_identifier))) ;) }))) }) (else_clause "else {\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }" else (compound_statement "{\n            entry_free(pv);\n            pFVar4 = *(FILE **)((int)pvVar6 + 0x14);\n          }" { (expression_statement "entry_free(pv);" (call_expression "entry_free(pv)" identifier (argument_list "(pv)" ( identifier ))) ;) (expression_statement "pFVar4 = *(FILE **)((int)pvVar6 + 0x14);" (assignment_expression "pFVar4 = *(FILE **)((int)pvVar6 + 0x14)" identifier = (pointer_expression "*(FILE **)((int)pvVar6 + 0x14)" * (cast_expression "(FILE **)((int)pvVar6 + 0x14)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 0x14)" ( (binary_expression "(int)pvVar6 + 0x14" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) }))) (goto_statement "goto LAB_0001e820;" goto statement_identifier ;) })) })) (expression_statement "pFVar4 = (FILE *)0x0;" (assignment_expression "pFVar4 = (FILE *)0x0" identifier = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_free_00075bfc)(pv);" (call_expression "(*(code *)PTR_free_00075bfc)(pv)" (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 "(pv)" ( identifier ))) ;) })) (labeled_statement "LAB_0001e820:\n  if (iVar2 == *(int *)puVar1) {\n    return pFVar4;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)puVar1) {\n    return pFVar4;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return pFVar4;\n  }" { (return_statement "return pFVar4;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0001e8e4:\n  pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0);" statement_identifier : (expression_statement "pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0);" (assignment_expression "pFVar4 = (FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0)" identifier = (cast_expression "(FILE *)(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                             (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" ( (pointer_expression "*(code *)PTR___assert_fail_000759d0" * (cast_expression "(code *)PTR___assert_fail_000759d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,\n                              0xa6,PTR_s_directory_000755b8 + -0x24d0)" ( (binary_expression "PTR_s_directory_000755b8 + -0x24dc" identifier + number_literal) , (binary_expression "PTR_s_directory_000755b8 + -0x24e8" identifier + number_literal) , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x24d0" identifier + number_literal) ))))) ;)) (return_statement "return pFVar4;" return identifier ;) })))
(translation_unit "undefined4 * sharefile_fopen(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}\n\n" (function_definition "undefined4 * sharefile_fopen(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}" type_identifier (pointer_declarator "* sharefile_fopen(undefined4 *param_1,undefined4 param_2)" * (function_declarator "sharefile_fopen(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_c0 [4];" type_identifier (array_declarator "local_c0 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_b0;" type_identifier identifier ;) (declaration "undefined4 local_ac;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00075b2c)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00075b2c)" ( (pointer_expression "*(code *)PTR_malloc_00075b2c" * (cast_expression "(code *)PTR_malloc_00075b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2)" identifier = (call_expression "(*(code *)PTR_strdup_00075bf8)(param_2)" (parenthesized_expression "(*(code *)PTR_strdup_00075bf8)" ( (pointer_expression "*(code *)PTR_strdup_00075bf8" * (cast_expression "(code *)PTR_strdup_00075bf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar2[4] = iVar3;" (assignment_expression "puVar2[4] = iVar3" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" { (expression_statement "iVar3 = fopen_safer(param_2,*param_1);" (assignment_expression "iVar3 = fopen_safer(param_2,*param_1)" identifier = (call_expression "fopen_safer(param_2,*param_1)" identifier (argument_list "(param_2,*param_1)" ( identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "puVar2[5] = iVar3;" (assignment_expression "puVar2[5] = iVar3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" { (expression_statement "iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3)" identifier = (call_expression "(*(code *)PTR_fileno_00075ab8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fileno_00075ab8)" ( (pointer_expression "*(code *)PTR_fileno_00075ab8" * (cast_expression "(code *)PTR_fileno_00075ab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 < 0) goto LAB_0001e8e4;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001e8e4;" goto statement_identifier ;)) (expression_statement "set_cloexec_flag(iVar3,1);" (call_expression "set_cloexec_flag(iVar3,1)" identifier (argument_list "(iVar3,1)" ( identifier , number_literal ))) ;) (expression_statement "iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);" (assignment_expression "iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0)" identifier = (call_expression "(*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0)" (parenthesized_expression "(*(code *)PTR___fxstat64_00075b70)" ( (pointer_expression "*(code *)PTR___fxstat64_00075b70" * (cast_expression "(code *)PTR___fxstat64_00075b70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar3,local_c0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }" { (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) }) (else_clause "else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" else (compound_statement "{\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" { (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2[1] = local_c0[0];" (assignment_expression "puVar2[1] = local_c0[0]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "local_c0[0]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[3] = local_ac;" (assignment_expression "puVar2[3] = local_ac" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = local_b0;" (assignment_expression "puVar2[2] = local_b0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = hash_lookup(uVar5,puVar2);" (assignment_expression "iVar3 = hash_lookup(uVar5,puVar2)" identifier = (call_expression "hash_lookup(uVar5,puVar2)" identifier (argument_list "(uVar5,puVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }" { (expression_statement "iVar3 = hash_insert(param_1[1],puVar2);" (assignment_expression "iVar3 = hash_insert(param_1[1],puVar2)" identifier = (call_expression "hash_insert(param_1[1],puVar2)" identifier (argument_list "(param_1[1],puVar2)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "undefined4 *" type_identifier (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 "uVar5 = *puVar4;" (assignment_expression "uVar5 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) (else_clause "else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }" else (compound_statement "{\n              puVar6 = (undefined4 *)puVar2[5];\n            }" { (expression_statement "puVar6 = (undefined4 *)puVar2[5];" (assignment_expression "puVar6 = (undefined4 *)puVar2[5]" identifier = (cast_expression "(undefined4 *)puVar2[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[5]" identifier [ number_literal ]))) ;) }))) }) (else_clause "else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" else (compound_statement "{\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" { (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "puVar6 = *(undefined4 **)(iVar3 + 0x14);" (assignment_expression "puVar6 = *(undefined4 **)(iVar3 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(iVar3 + 0x14)" * (cast_expression "(undefined4 **)(iVar3 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }))) }))) (goto_statement "goto LAB_0001e820;" goto statement_identifier ;) })) })) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_free_00075bfc)(puVar2);" (call_expression "(*(code *)PTR_free_00075bfc)(puVar2)" (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 "(puVar2)" ( identifier ))) ;) })) (labeled_statement "LAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar6;\n  }" { (return_statement "return puVar6;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);" statement_identifier : (expression_statement "puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);" (assignment_expression "puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" identifier = (cast_expression "(undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" ( (pointer_expression "*(code *)PTR___assert_fail_000759d0" * (cast_expression "(code *)PTR___assert_fail_000759d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" ( (binary_expression "PTR_s_directory_000755b8 + -0x24dc" identifier + number_literal) , (binary_expression "PTR_s_directory_000755b8 + -0x24e8" identifier + number_literal) , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x24d0" identifier + number_literal) ))))) ;)) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (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 ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }))) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (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 ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))))) ;)) (return_statement return IDENT ;) })))
(function_definition "undefined4 * sharefile_fopen(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}" (type_identifier "undefined4") (pointer_declarator "* sharefile_fopen(undefined4 *param_1,undefined4 param_2)" (* "*") (function_declarator "sharefile_fopen(undefined4 *param_1,undefined4 param_2)" (identifier "sharefile_fopen") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 local_c0 [4];\n  undefined4 local_b0;\n  undefined4 local_ac;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);\n  puVar6 = puVar2;\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }\nLAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);\n  return puVar6;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 local_c0 [4];" (type_identifier "undefined4") (array_declarator "local_c0 [4]" (identifier "local_c0") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_b0;" (type_identifier "undefined4") (identifier "local_b0") (; ";")) (declaration "undefined4 local_ac;" (type_identifier "undefined4") (identifier "local_ac") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00075be8" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_00075be8")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_00075be8" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00075be8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00075be8")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_00075b2c)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00075b2c)" (( "(") (pointer_expression "*(code *)PTR_malloc_00075b2c" (* "*") (cast_expression "(code *)PTR_malloc_00075b2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_00075b2c"))) () ")")) (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" (identifier "puVar6") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);\n    puVar2[4] = iVar3;\n    if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }\n    puVar6 = (undefined4 *)0x0;\n    (*(code *)PTR_free_00075bfc)(puVar2);\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strdup_00075bf8)(param_2)" (parenthesized_expression "(*(code *)PTR_strdup_00075bf8)" (( "(") (pointer_expression "*(code *)PTR_strdup_00075bf8" (* "*") (cast_expression "(code *)PTR_strdup_00075bf8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strdup_00075bf8"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar2[4] = iVar3;" (assignment_expression "puVar2[4] = iVar3" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = fopen_safer(param_2,*param_1);\n      puVar2[5] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }\n    }" ({ "{") (expression_statement "iVar3 = fopen_safer(param_2,*param_1);" (assignment_expression "iVar3 = fopen_safer(param_2,*param_1)" (identifier "iVar3") (= "=") (call_expression "fopen_safer(param_2,*param_1)" (identifier "fopen_safer") (argument_list "(param_2,*param_1)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "puVar2[5] = iVar3;" (assignment_expression "puVar2[5] = iVar3" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);\n        if (iVar3 < 0) goto LAB_0001e8e4;\n        set_cloexec_flag(iVar3,1);\n        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);\n        if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }\n        goto LAB_0001e820;\n      }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_fileno_00075ab8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fileno_00075ab8)" (( "(") (pointer_expression "*(code *)PTR_fileno_00075ab8" (* "*") (cast_expression "(code *)PTR_fileno_00075ab8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_00075ab8"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) goto LAB_0001e8e4;" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001e8e4;" (goto "goto") (statement_identifier "LAB_0001e8e4") (; ";"))) (expression_statement "set_cloexec_flag(iVar3,1);" (call_expression "set_cloexec_flag(iVar3,1)" (identifier "set_cloexec_flag") (argument_list "(iVar3,1)" (( "(") (identifier "iVar3") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);" (assignment_expression "iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0)" (parenthesized_expression "(*(code *)PTR___fxstat64_00075b70)" (( "(") (pointer_expression "*(code *)PTR___fxstat64_00075b70" (* "*") (cast_expression "(code *)PTR___fxstat64_00075b70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fxstat64_00075b70"))) () ")")) (argument_list "(3,iVar3,local_c0)" (( "(") (number_literal "3") (, ",") (identifier "iVar3") (, ",") (identifier "local_c0") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }\n        else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          puVar6 = (undefined4 *)0x0;\n          FUN_0001e53c(puVar2);\n        }" ({ "{") (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" (identifier "FUN_0001e53c") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" (else "else") (compound_statement "{\n          uVar5 = param_1[1];\n          puVar2[1] = local_c0[0];\n          *puVar2 = 0;\n          puVar2[3] = local_ac;\n          puVar2[2] = local_b0;\n          iVar3 = hash_lookup(uVar5,puVar2);\n          if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }\n        }" ({ "{") (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" (identifier "uVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar2[1] = local_c0[0];" (assignment_expression "puVar2[1] = local_c0[0]" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_c0[0]" (identifier "local_c0") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[3] = local_ac;" (assignment_expression "puVar2[3] = local_ac" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "local_ac")) (; ";")) (expression_statement "puVar2[2] = local_b0;" (assignment_expression "puVar2[2] = local_b0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_b0")) (; ";")) (expression_statement "iVar3 = hash_lookup(uVar5,puVar2);" (assignment_expression "iVar3 = hash_lookup(uVar5,puVar2)" (identifier "iVar3") (= "=") (call_expression "hash_lookup(uVar5,puVar2)" (identifier "hash_lookup") (argument_list "(uVar5,puVar2)" (( "(") (identifier "uVar5") (, ",") (identifier "puVar2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }\n          else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = hash_insert(param_1[1],puVar2);\n            if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }\n          }" ({ "{") (expression_statement "iVar3 = hash_insert(param_1[1],puVar2);" (assignment_expression "iVar3 = hash_insert(param_1[1],puVar2)" (identifier "iVar3") (= "=") (call_expression "hash_insert(param_1[1],puVar2)" (identifier "hash_insert") (argument_list "(param_1[1],puVar2)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "puVar2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }\n            else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();\n              uVar5 = *puVar4;\n              puVar6 = (undefined4 *)0x0;\n              FUN_0001e53c(puVar2);\n              *puVar4 = uVar5;\n            }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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 "uVar5 = *puVar4;" (assignment_expression "uVar5 = *puVar4" (identifier "uVar5") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" (identifier "FUN_0001e53c") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar5")) (; ";")) (} "}")) (else_clause "else {\n              puVar6 = (undefined4 *)puVar2[5];\n            }" (else "else") (compound_statement "{\n              puVar6 = (undefined4 *)puVar2[5];\n            }" ({ "{") (expression_statement "puVar6 = (undefined4 *)puVar2[5];" (assignment_expression "puVar6 = (undefined4 *)puVar2[5]" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)puVar2[5]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" (else "else") (compound_statement "{\n            FUN_0001e53c(puVar2);\n            puVar6 = *(undefined4 **)(iVar3 + 0x14);\n          }" ({ "{") (expression_statement "FUN_0001e53c(puVar2);" (call_expression "FUN_0001e53c(puVar2)" (identifier "FUN_0001e53c") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "puVar6 = *(undefined4 **)(iVar3 + 0x14);" (assignment_expression "puVar6 = *(undefined4 **)(iVar3 + 0x14)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined4 **)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined4 **)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")))) (} "}")))) (goto_statement "goto LAB_0001e820;" (goto "goto") (statement_identifier "LAB_0001e820") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_free_00075bfc)(puVar2);" (call_expression "(*(code *)PTR_free_00075bfc)(puVar2)" (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 "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0001e820:\n  if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }" (statement_identifier "LAB_0001e820") (: ":") (if_statement "if (local_1c == *(int *)puVar1) {\n    return puVar6;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar1)" (( "(") (binary_expression "local_1c == *(int *)puVar1" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return puVar6;\n  }" ({ "{") (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00075ba8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0001e8e4:\n  puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);" (statement_identifier "LAB_0001e8e4") (: ":") (expression_statement "puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0);" (assignment_expression "puVar6 = (undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)\n           (*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000759d0" (* "*") (cast_expression "(code *)PTR___assert_fail_000759d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000759d0"))) () ")")) (argument_list "(PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,\n                      PTR_s_directory_000755b8 + -0x24d0)" (( "(") (binary_expression "PTR_s_directory_000755b8 + -0x24dc" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x24dc")) (, ",") (binary_expression "PTR_s_directory_000755b8 + -0x24e8" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x24e8")) (, ",") (number_literal "0xa6") (, ",") (binary_expression "PTR_s_directory_000755b8 + -0x24d0" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x24d0")) () ")"))))) (; ";"))) (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}")))

type_1 * function_1(type_2 h,char *filename)

{
  type_3 *puVar1;
  int var_11;
  type_1 *var_1;
  char *var_2;
  type_1 *var_4;
  int var_5;
  void *var_9;
  type_4 *puVar7;
  type_5 *table;
  type_4 uVar8;
  type_6 st;
  
  puVar1 = PTR___stack_chk_guard_00075be8;
  var_11 = *(int *)PTR___stack_chk_guard_00075be8;
  var_1 = (type_1 *)(*(type_7 *)PTR_malloc_00075b2c)(0x18);
  var_4 = var_1;
  if (var_1 != (type_1 *)0x0) {
    var_2 = (char *)(*(type_7 *)PTR_strdup_00075bf8)(filename);
    var_1->_IO_write_base = var_2;
    if (var_2 != (char *)0x0) {
                    /* WARNING: Load size is inaccurate */
      var_4 = var_3(filename,*h);
      var_1->_IO_write_ptr = (char *)var_4;
      if (var_4 != (type_1 *)0x0) {
        var_5 = (*(type_7 *)PTR_fileno_00075ab8)(var_4);
        if (var_5 < 0) goto LAB_0001e8e4;
        var_6(var_5,true);
        var_5 = (*(type_7 *)PTR___fxstat64_00075b70)(3,var_5,&st);
        if (var_5 < 0) {
          var_4 = (type_1 *)0x0;
          var_7(var_1);
        }
        else {
          table = *(type_5 **)((int)h + 4);
          var_1->_IO_read_ptr = (char *)st.st_dev;
          var_1->_flags = 0;
          var_1->_IO_read_base = st.st_ino._4_4_;
          var_1->_IO_read_end = st.st_ino._0_4_;
          var_9 = var_8(table,var_1);
          if (var_9 == (void *)0x0) {
            var_9 = var_10(*(type_5 **)((int)h + 4),var_1);
            if (var_9 == (void *)0x0) {
              puVar7 = (type_4 *)(*(type_7 *)PTR___errno_location_00075ac4)();
              uVar8 = *puVar7;
              var_4 = (type_1 *)0x0;
              var_7(var_1);
              *puVar7 = uVar8;
            }
            else {
              var_4 = (type_1 *)var_1->_IO_write_ptr;
            }
          }
          else {
            var_7(var_1);
            var_4 = *(type_1 **)((int)var_9 + 0x14);
          }
        }
        goto LAB_0001e820;
      }
    }
    var_4 = (type_1 *)0x0;
    (*(type_7 *)PTR_free_00075bfc)(var_1);
  }
LAB_0001e820:
  if (var_11 == *(int *)puVar1) {
    return var_4;
  }
  (*(type_7 *)PTR___stack_chk_fail_00075ba8)();
LAB_0001e8e4:
  var_4 = (type_1 *)(*(type_7 *)PTR___assert_fail_000759d0)
                             (var_12 + -0x24dc,var_12 + -0x24e8,
                              0xa6,var_12 + -0x24d0);
  return var_4;
}


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

undefined4 * MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  undefined4 local_c0 [4];
  undefined4 local_b0;
  undefined4 local_ac;
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_00075be8;
  local_1c = *(int *)PTR___stack_chk_guard_00075be8;
  puVar2 = (undefined4 *)(*(code *)PTR_malloc_00075b2c)(0x18);
  puVar6 = puVar2;
  if (puVar2 != (undefined4 *)0x0) {
    iVar3 = (*(code *)PTR_strdup_00075bf8)(param_2);
    puVar2[4] = iVar3;
    if (iVar3 != 0) {
      iVar3 = fopen_safer(param_2,*param_1);
      puVar2[5] = iVar3;
      if (iVar3 != 0) {
        iVar3 = (*(code *)PTR_fileno_00075ab8)(iVar3);
        if (iVar3 < 0) goto LAB_0001e8e4;
        set_cloexec_flag(iVar3,1);
        iVar3 = (*(code *)PTR___fxstat64_00075b70)(3,iVar3,local_c0);
        if (iVar3 < 0) {
          puVar6 = (undefined4 *)0x0;
          FUN_0001e53c(puVar2);
        }
        else {
          uVar5 = param_1[1];
          puVar2[1] = local_c0[0];
          *puVar2 = 0;
          puVar2[3] = local_ac;
          puVar2[2] = local_b0;
          iVar3 = hash_lookup(uVar5,puVar2);
          if (iVar3 == 0) {
            iVar3 = hash_insert(param_1[1],puVar2);
            if (iVar3 == 0) {
              puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00075ac4)();
              uVar5 = *puVar4;
              puVar6 = (undefined4 *)0x0;
              FUN_0001e53c(puVar2);
              *puVar4 = uVar5;
            }
            else {
              puVar6 = (undefined4 *)puVar2[5];
            }
          }
          else {
            FUN_0001e53c(puVar2);
            puVar6 = *(undefined4 **)(iVar3 + 0x14);
          }
        }
        goto LAB_0001e820;
      }
    }
    puVar6 = (undefined4 *)0x0;
    (*(code *)PTR_free_00075bfc)(puVar2);
  }
LAB_0001e820:
  if (local_1c == *(int *)puVar1) {
    return puVar6;
  }
  (*(code *)PTR___stack_chk_fail_00075ba8)();
LAB_0001e8e4:
  puVar6 = (undefined4 *)
           (*(code *)PTR___assert_fail_000759d0)
                     (PTR_s_directory_000755b8 + -0x24dc,PTR_s_directory_000755b8 + -0x24e8,0xa6,
                      PTR_s_directory_000755b8 + -0x24d0);
  return puVar6;
}

