
void * open_settings_w(char *sessionname,char **errmsg)

{
  undefined *puVar1;
  char *pcVar2;
  char *pcVar3;
  void *pvVar4;
  char *pcVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  
  *errmsg = (char *)0x0;
  pcVar2 = make_filename(0,(char *)0x0);
  pcVar3 = make_dir_path(pcVar2,0x1c0);
  if (pcVar3 != (char *)0x0) {
    pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)
                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);
    puVar1 = PTR_safefree_000a70d4;
    *errmsg = pcVar5;
    (*(code *)puVar1)(pcVar3);
    (*(code *)PTR_safefree_000a70d4)(pcVar2);
    return (void *)0x0;
  }
  (*(code *)PTR_safefree_000a70d4)(pcVar2);
  pcVar2 = make_filename(4,(char *)0x0);
  pcVar3 = make_dir_path(pcVar2,0x1c0);
  if (pcVar3 == (char *)0x0) {
    (*(code *)PTR_safefree_000a70d4)(pcVar2);
    pcVar2 = make_filename(5,sessionname);
    pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)
                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);
    if (pvVar4 == (void *)0x0) {
      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();
      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);
      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)
                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,
                                  uVar7);
      puVar1 = PTR_safefree_000a70d4;
      *errmsg = pcVar3;
      (*(code *)puVar1)(pcVar2);
    }
    else {
      (*(code *)PTR_safefree_000a70d4)(pcVar2);
    }
    return pvVar4;
  }
  pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)
                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);
  puVar1 = PTR_safefree_000a70d4;
  *errmsg = pcVar5;
  (*(code *)puVar1)(pcVar3);
  (*(code *)PTR_safefree_000a70d4)(pcVar2);
  return (void *)0x0;
}



int open_settings_w(undefined4 param_1,undefined4 *param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  
  *param_2 = 0;
  uVar2 = FUN_0006eb30(0,0);
  iVar3 = make_dir_path(uVar2,0x1c0);
  if (iVar3 != 0) {
    uVar5 = (*(code *)PTR_dupprintf_000a71cc)
                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);
    puVar1 = PTR_safefree_000a70d4;
    *param_2 = uVar5;
    (*(code *)puVar1)(iVar3);
    (*(code *)PTR_safefree_000a70d4)(uVar2);
    return 0;
  }
  (*(code *)PTR_safefree_000a70d4)(uVar2);
  uVar2 = FUN_0006eb30(4,0);
  iVar3 = make_dir_path(uVar2,0x1c0);
  if (iVar3 == 0) {
    (*(code *)PTR_safefree_000a70d4)(uVar2);
    uVar2 = FUN_0006eb30(5,param_1);
    iVar3 = (*(code *)PTR_fopen64_000a7ec4)
                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);
    if (iVar3 == 0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();
      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);
      uVar5 = (*(code *)PTR_dupprintf_000a71cc)
                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);
      puVar1 = PTR_safefree_000a70d4;
      *param_2 = uVar5;
      (*(code *)puVar1)(uVar2);
    }
    else {
      (*(code *)PTR_safefree_000a70d4)(uVar2);
    }
    return iVar3;
  }
  uVar5 = (*(code *)PTR_dupprintf_000a71cc)
                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);
  puVar1 = PTR_safefree_000a70d4;
  *param_2 = uVar5;
  (*(code *)puVar1)(iVar3);
  (*(code *)PTR_safefree_000a70d4)(uVar2);
  return 0;
}


lui gp,0x4
addiu gp,gp,-0x26c
addu gp,gp,t9
addiu sp,sp,-0x38
sw s0,0x1c(sp)
sw s3,0x28(sp)
or s3,a1,zero
sw gp,0x10(sp)
or a1,zero,zero
sw s5,0x30(sp)
or s5,a0,zero
lw s0,-0x7fc4(gp)
or a0,zero,zero
sw ra,0x34(sp)
sw s2,0x24(sp)
addiu s0,s0,-0x14d0
sw s1,0x20(sp)
sw s4,0x2c(sp)
or t9,s0,zero
bal 0x0006eb30
_sw zero,0x0(s3)
li a1,0x1c0
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x78dc(gp)
bal 0x0006c6c4
_or s2,v0,zero
lw gp,0x10(sp)
bne v0,zero,0x0006f48c
_or s1,v0,zero
lw t9,-0x7fbc(gp)
jalr t9
_or a0,s2,zero
or a1,zero,zero
or t9,s0,zero
bal 0x0006eb30
_li a0,0x4
li a1,0x1c0
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x78dc(gp)
bal 0x0006c6c4
_or s2,v0,zero
lw gp,0x10(sp)
bne v0,zero,0x0006f42c
_or s4,v0,zero
lw t9,-0x7fbc(gp)
jalr t9
_or a0,s2,zero
li a0,0x5
or t9,s0,zero
bal 0x0006eb30
_or a1,s5,zero
lw gp,0x10(sp)
or a0,v0,zero
or s0,v0,zero
lw a1,-0x7fb8(gp)
lw t9,-0x71cc(gp)
jalr t9
_addiu a1,a1,0x13d0
lw gp,0x10(sp)
beq v0,zero,0x0006f4f0
_or s1,v0,zero
lw t9,-0x7fbc(gp)
jalr t9
_or a0,s0,zero
lw ra,0x34(sp)
or v0,s1,zero
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw a0,-0x7fb8(gp)
or a1,v0,zero
lw t9,-0x7ec4(gp)
jalr t9
_addiu a0,a0,0x16c0
or a0,s4,zero
lw gp,0x10(sp)
lw t9,-0x7fbc(gp)
jalr t9
_sw v0,0x0(s3)
lw gp,0x10(sp)
lw t9,-0x7fbc(gp)
jalr t9
_or a0,s2,zero
or v0,s1,zero
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw a0,-0x7fb8(gp)
or a1,v0,zero
lw t9,-0x7ec4(gp)
jalr t9
_addiu a0,a0,0x16c0
or a0,s1,zero
lw gp,0x10(sp)
or s1,zero,zero
lw t9,-0x7fbc(gp)
jalr t9
_sw v0,0x0(s3)
lw gp,0x10(sp)
lw t9,-0x7fbc(gp)
jalr t9
_or a0,s2,zero
or v0,s1,zero
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7380(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7658(gp)
jalr t9
_lw a0,0x0(v0)
or a1,s0,zero
lw gp,0x10(sp)
or a2,v0,zero
lw a0,-0x7fb8(gp)
lw t9,-0x7ec4(gp)
jalr t9
_addiu a0,a0,0x16dc
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7fbc(gp)
jalr t9
_sw v0,0x0(s3)
b 0x0006f408
_lw ra,0x34(sp)
(translation_unit "int open_settings_w(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}\n\n" (function_definition "int open_settings_w(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}" primitive_type (function_declarator "open_settings_w(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar2 = FUN_0006eb30(0,0);" (assignment_expression "uVar2 = FUN_0006eb30(0,0)" identifier = (call_expression "FUN_0006eb30(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar3 = make_dir_path(uVar2,0x1c0);" (assignment_expression "iVar3 = make_dir_path(uVar2,0x1c0)" identifier = (call_expression "make_dir_path(uVar2,0x1c0)" identifier (argument_list "(uVar2,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" identifier = (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar3);" (call_expression "(*(code *)puVar1)(iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0006eb30(4,0);" (assignment_expression "uVar2 = FUN_0006eb30(4,0)" identifier = (call_expression "FUN_0006eb30(4,0)" identifier (argument_list "(4,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar3 = make_dir_path(uVar2,0x1c0);" (assignment_expression "iVar3 = make_dir_path(uVar2,0x1c0)" identifier = (call_expression "make_dir_path(uVar2,0x1c0)" identifier (argument_list "(uVar2,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0006eb30(5,param_1);" (assignment_expression "uVar2 = FUN_0006eb30(5,param_1)" identifier = (call_expression "FUN_0006eb30(5,param_1)" identifier (argument_list "(5,param_1)" ( number_literal , identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" identifier = (call_expression "(*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" ( (pointer_expression "*(code *)PTR_fopen64_000a7ec4" * (cast_expression "(code *)PTR_fopen64_000a7ec4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" ( identifier , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000a7d10)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a7d10)" ( (pointer_expression "*(code *)PTR___errno_location_000a7d10" * (cast_expression "(code *)PTR___errno_location_000a7d10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4)" identifier = (call_expression "(*(code *)PTR_strerror_000a7a38)(*puVar4)" (parenthesized_expression "(*(code *)PTR_strerror_000a7a38)" ( (pointer_expression "*(code *)PTR_strerror_000a7a38" * (cast_expression "(code *)PTR_strerror_000a7a38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" identifier = (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(uVar2);" (call_expression "(*(code *)puVar1)(uVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" else (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" identifier = (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar3);" (call_expression "(*(code *)puVar1)(iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * open_settings_w(char *sessionname,char **errmsg)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  void *pvVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  *errmsg = (char *)0x0;\n  pcVar2 = make_filename(0,(char *)0x0);\n  pcVar3 = make_dir_path(pcVar2,0x1c0);\n  if (pcVar3 != (char *)0x0) {\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *errmsg = pcVar5;\n    (*(code *)puVar1)(pcVar3);\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    return (void *)0x0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(pcVar2);\n  pcVar2 = make_filename(4,(char *)0x0);\n  pcVar3 = make_dir_path(pcVar2,0x1c0);\n  if (pcVar3 == (char *)0x0) {\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    pcVar2 = make_filename(5,sessionname);\n    pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (pvVar4 == (void *)0x0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }\n    return pvVar4;\n  }\n  pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *errmsg = pcVar5;\n  (*(code *)puVar1)(pcVar3);\n  (*(code *)PTR_safefree_000a70d4)(pcVar2);\n  return (void *)0x0;\n}\n\n" (function_definition "void * open_settings_w(char *sessionname,char **errmsg)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  void *pvVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  *errmsg = (char *)0x0;\n  pcVar2 = make_filename(0,(char *)0x0);\n  pcVar3 = make_dir_path(pcVar2,0x1c0);\n  if (pcVar3 != (char *)0x0) {\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *errmsg = pcVar5;\n    (*(code *)puVar1)(pcVar3);\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    return (void *)0x0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(pcVar2);\n  pcVar2 = make_filename(4,(char *)0x0);\n  pcVar3 = make_dir_path(pcVar2,0x1c0);\n  if (pcVar3 == (char *)0x0) {\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    pcVar2 = make_filename(5,sessionname);\n    pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (pvVar4 == (void *)0x0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }\n    return pvVar4;\n  }\n  pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *errmsg = pcVar5;\n  (*(code *)puVar1)(pcVar3);\n  (*(code *)PTR_safefree_000a70d4)(pcVar2);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* open_settings_w(char *sessionname,char **errmsg)" * (function_declarator "open_settings_w(char *sessionname,char **errmsg)" identifier (parameter_list "(char *sessionname,char **errmsg)" ( (parameter_declaration "char *sessionname" primitive_type (pointer_declarator "*sessionname" * identifier)) , (parameter_declaration "char **errmsg" primitive_type (pointer_declarator "**errmsg" * (pointer_declarator "*errmsg" * identifier))) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  void *pvVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  *errmsg = (char *)0x0;\n  pcVar2 = make_filename(0,(char *)0x0);\n  pcVar3 = make_dir_path(pcVar2,0x1c0);\n  if (pcVar3 != (char *)0x0) {\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *errmsg = pcVar5;\n    (*(code *)puVar1)(pcVar3);\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    return (void *)0x0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(pcVar2);\n  pcVar2 = make_filename(4,(char *)0x0);\n  pcVar3 = make_dir_path(pcVar2,0x1c0);\n  if (pcVar3 == (char *)0x0) {\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    pcVar2 = make_filename(5,sessionname);\n    pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (pvVar4 == (void *)0x0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }\n    return pvVar4;\n  }\n  pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *errmsg = pcVar5;\n  (*(code *)puVar1)(pcVar3);\n  (*(code *)PTR_safefree_000a70d4)(pcVar2);\n  return (void *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (expression_statement "*errmsg = (char *)0x0;" (assignment_expression "*errmsg = (char *)0x0" (pointer_expression "*errmsg" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar2 = make_filename(0,(char *)0x0);" (assignment_expression "pcVar2 = make_filename(0,(char *)0x0)" identifier = (call_expression "make_filename(0,(char *)0x0)" identifier (argument_list "(0,(char *)0x0)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar3 = make_dir_path(pcVar2,0x1c0);" (assignment_expression "pcVar3 = make_dir_path(pcVar2,0x1c0)" identifier = (call_expression "make_dir_path(pcVar2,0x1c0)" identifier (argument_list "(pcVar2,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *errmsg = pcVar5;\n    (*(code *)puVar1)(pcVar3);\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    return (void *)0x0;\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    pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *errmsg = pcVar5;\n    (*(code *)puVar1)(pcVar3);\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    return (void *)0x0;\n  }" { (expression_statement "pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                               (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" identifier + number_literal) , identifier ))))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*errmsg = pcVar5;" (assignment_expression "*errmsg = pcVar5" (pointer_expression "*errmsg" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(pcVar3);" (call_expression "(*(code *)puVar1)(pcVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = make_filename(4,(char *)0x0);" (assignment_expression "pcVar2 = make_filename(4,(char *)0x0)" identifier = (call_expression "make_filename(4,(char *)0x0)" identifier (argument_list "(4,(char *)0x0)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar3 = make_dir_path(pcVar2,0x1c0);" (assignment_expression "pcVar3 = make_dir_path(pcVar2,0x1c0)" identifier = (call_expression "make_dir_path(pcVar2,0x1c0)" identifier (argument_list "(pcVar2,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    pcVar2 = make_filename(5,sessionname);\n    pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (pvVar4 == (void *)0x0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }\n    return pvVar4;\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    (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    pcVar2 = make_filename(5,sessionname);\n    pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (pvVar4 == (void *)0x0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }\n    return pvVar4;\n  }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = make_filename(5,sessionname);" (assignment_expression "pcVar2 = make_filename(5,sessionname)" identifier = (call_expression "make_filename(5,sessionname)" identifier (argument_list "(5,sessionname)" ( number_literal , identifier )))) ;) (expression_statement "pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);" (assignment_expression "pvVar4 = (void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" identifier = (cast_expression "(void *)(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_fopen64_000a7ec4)\n                               (pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" ( (pointer_expression "*(code *)PTR_fopen64_000a7ec4" * (cast_expression "(code *)PTR_fopen64_000a7ec4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" ( identifier , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0" identifier + number_literal) ))))) ;) (if_statement "if (pvVar4 == (void *)0x0) {\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);\n      pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);\n      puVar1 = PTR_safefree_000a70d4;\n      *errmsg = pcVar3;\n      (*(code *)puVar1)(pcVar2);\n    }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000a7d10)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a7d10)" ( (pointer_expression "*(code *)PTR___errno_location_000a7d10" * (cast_expression "(code *)PTR___errno_location_000a7d10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6);" (assignment_expression "uVar7 = (*(code *)PTR_strerror_000a7a38)(*puVar6)" identifier = (call_expression "(*(code *)PTR_strerror_000a7a38)(*puVar6)" (parenthesized_expression "(*(code *)PTR_strerror_000a7a38)" ( (pointer_expression "*(code *)PTR_strerror_000a7a38" * (cast_expression "(code *)PTR_strerror_000a7a38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                                 (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,pcVar2,\n                                  uVar7)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc" identifier + number_literal) , identifier , identifier ))))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*errmsg = pcVar3;" (assignment_expression "*errmsg = pcVar3" (pointer_expression "*errmsg" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(pcVar2);" (call_expression "(*(code *)puVar1)(pcVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) }) (else_clause "else {\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }" else (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(pcVar2);\n    }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) }))) (return_statement "return pvVar4;" return identifier ;) })) (expression_statement "pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,pcVar3)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" identifier + number_literal) , identifier ))))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*errmsg = pcVar5;" (assignment_expression "*errmsg = pcVar5" (pointer_expression "*errmsg" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(pcVar3);" (call_expression "(*(code *)puVar1)(pcVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int open_settings_w(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}\n\n" (function_definition "int open_settings_w(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}" primitive_type (function_declarator "open_settings_w(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar2 = FUN_0006eb30(0,0);" (assignment_expression "uVar2 = FUN_0006eb30(0,0)" identifier = (call_expression "FUN_0006eb30(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar3 = make_dir_path(uVar2,0x1c0);" (assignment_expression "iVar3 = make_dir_path(uVar2,0x1c0)" identifier = (call_expression "make_dir_path(uVar2,0x1c0)" identifier (argument_list "(uVar2,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" identifier = (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar3);" (call_expression "(*(code *)puVar1)(iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0006eb30(4,0);" (assignment_expression "uVar2 = FUN_0006eb30(4,0)" identifier = (call_expression "FUN_0006eb30(4,0)" identifier (argument_list "(4,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar3 = make_dir_path(uVar2,0x1c0);" (assignment_expression "iVar3 = make_dir_path(uVar2,0x1c0)" identifier = (call_expression "make_dir_path(uVar2,0x1c0)" identifier (argument_list "(uVar2,0x1c0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0006eb30(5,param_1);" (assignment_expression "uVar2 = FUN_0006eb30(5,param_1)" identifier = (call_expression "FUN_0006eb30(5,param_1)" identifier (argument_list "(5,param_1)" ( number_literal , identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" identifier = (call_expression "(*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" ( (pointer_expression "*(code *)PTR_fopen64_000a7ec4" * (cast_expression "(code *)PTR_fopen64_000a7ec4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" ( identifier , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000a7d10)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a7d10)" ( (pointer_expression "*(code *)PTR___errno_location_000a7d10" * (cast_expression "(code *)PTR___errno_location_000a7d10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4)" identifier = (call_expression "(*(code *)PTR_strerror_000a7a38)(*puVar4)" (parenthesized_expression "(*(code *)PTR_strerror_000a7a38)" ( (pointer_expression "*(code *)PTR_strerror_000a7a38" * (cast_expression "(code *)PTR_strerror_000a7a38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" identifier = (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(uVar2);" (call_expression "(*(code *)puVar1)(uVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" else (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" identifier = (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" ( (pointer_expression "*(code *)PTR_dupprintf_000a71cc" * (cast_expression "(code *)PTR_dupprintf_000a71cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar3);" (call_expression "(*(code *)puVar1)(iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "int open_settings_w(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}" (primitive_type "int") (function_declarator "open_settings_w(undefined4 param_1,undefined4 *param_2)" (identifier "open_settings_w") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  *param_2 = 0;\n  uVar2 = FUN_0006eb30(0,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  uVar2 = FUN_0006eb30(4,0);\n  iVar3 = make_dir_path(uVar2,0x1c0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }\n  uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n  puVar1 = PTR_safefree_000a70d4;\n  *param_2 = uVar5;\n  (*(code *)puVar1)(iVar3);\n  (*(code *)PTR_safefree_000a70d4)(uVar2);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (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") (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = FUN_0006eb30(0,0);" (assignment_expression "uVar2 = FUN_0006eb30(0,0)" (identifier "uVar2") (= "=") (call_expression "FUN_0006eb30(0,0)" (identifier "FUN_0006eb30") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar3 = make_dir_path(uVar2,0x1c0);" (assignment_expression "iVar3 = make_dir_path(uVar2,0x1c0)" (identifier "iVar3") (= "=") (call_expression "make_dir_path(uVar2,0x1c0)" (identifier "make_dir_path") (argument_list "(uVar2,0x1c0)" (( "(") (identifier "uVar2") (, ",") (number_literal "0x1c0") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);\n    puVar1 = PTR_safefree_000a70d4;\n    *param_2 = uVar5;\n    (*(code *)puVar1)(iVar3);\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    return 0;\n  }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_000a71cc" (* "*") (cast_expression "(code *)PTR_dupprintf_000a71cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_000a71cc"))) () ")")) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x16c0")) (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" (identifier "puVar1") (= "=") (identifier "PTR_safefree_000a70d4")) (; ";")) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar3);" (call_expression "(*(code *)puVar1)(iVar3)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0006eb30(4,0);" (assignment_expression "uVar2 = FUN_0006eb30(4,0)" (identifier "uVar2") (= "=") (call_expression "FUN_0006eb30(4,0)" (identifier "FUN_0006eb30") (argument_list "(4,0)" (( "(") (number_literal "4") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar3 = make_dir_path(uVar2,0x1c0);" (assignment_expression "iVar3 = make_dir_path(uVar2,0x1c0)" (identifier "iVar3") (= "=") (call_expression "make_dir_path(uVar2,0x1c0)" (identifier "make_dir_path") (argument_list "(uVar2,0x1c0)" (( "(") (identifier "uVar2") (, ",") (number_literal "0x1c0") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_safefree_000a70d4)(uVar2);\n    uVar2 = FUN_0006eb30(5,param_1);\n    iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);\n    if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }\n    return iVar3;\n  }" ({ "{") (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0006eb30(5,param_1);" (assignment_expression "uVar2 = FUN_0006eb30(5,param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0006eb30(5,param_1)" (identifier "FUN_0006eb30") (argument_list "(5,param_1)" (( "(") (number_literal "5") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_fopen64_000a7ec4)\n                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" (( "(") (pointer_expression "*(code *)PTR_fopen64_000a7ec4" (* "*") (cast_expression "(code *)PTR_fopen64_000a7ec4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fopen64_000a7ec4"))) () ")")) (argument_list "(uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0)" (( "(") (identifier "uVar2") (, ",") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x13d0")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }\n    else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\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_000a7d10)();\n      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);\n      uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);\n      puVar1 = PTR_safefree_000a70d4;\n      *param_2 = uVar5;\n      (*(code *)puVar1)(uVar2);\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000a7d10)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000a7d10)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a7d10)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000a7d10" (* "*") (cast_expression "(code *)PTR___errno_location_000a7d10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000a7d10"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_strerror_000a7a38)(*puVar4)" (parenthesized_expression "(*(code *)PTR_strerror_000a7a38)" (( "(") (pointer_expression "*(code *)PTR_strerror_000a7a38" (* "*") (cast_expression "(code *)PTR_strerror_000a7a38" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_000a7a38"))) () ")")) (argument_list "(*puVar4)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_000a71cc" (* "*") (cast_expression "(code *)PTR_dupprintf_000a71cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_000a71cc"))) () ")")) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x16dc")) (, ",") (identifier "uVar2") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" (identifier "puVar1") (= "=") (identifier "PTR_safefree_000a70d4")) (; ";")) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "(*(code *)puVar1)(uVar2);" (call_expression "(*(code *)puVar1)(uVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(uVar2);\n    }" ({ "{") (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (expression_statement "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);" (assignment_expression "uVar5 = (*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_dupprintf_000a71cc)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (parenthesized_expression "(*(code *)PTR_dupprintf_000a71cc)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_000a71cc" (* "*") (cast_expression "(code *)PTR_dupprintf_000a71cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_000a71cc"))) () ")")) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x16c0")) (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safefree_000a70d4;" (assignment_expression "puVar1 = PTR_safefree_000a70d4" (identifier "puVar1") (= "=") (identifier "PTR_safefree_000a70d4")) (; ";")) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar3);" (call_expression "(*(code *)puVar1)(iVar3)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000a70d4)(uVar2);" (call_expression "(*(code *)PTR_safefree_000a70d4)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(char *sessionname,char **errmsg)

{
  type_1 *puVar1;
  char *pcVar2;
  char *var_3;
  void *var_5;
  char *pcVar5;
  type_2 *puVar6;
  type_2 uVar7;
  
  *errmsg = (char *)0x0;
  pcVar2 = var_1(0,(char *)0x0);
  var_3 = var_2(pcVar2,0x1c0);
  if (var_3 != (char *)0x0) {
    pcVar5 = (char *)(*(type_3 *)PTR_dupprintf_000a71cc)
                               (var_4 + 0x16c0,var_3);
    puVar1 = PTR_safefree_000a70d4;
    *errmsg = pcVar5;
    (*(type_3 *)puVar1)(var_3);
    (*(type_3 *)PTR_safefree_000a70d4)(pcVar2);
    return (void *)0x0;
  }
  (*(type_3 *)PTR_safefree_000a70d4)(pcVar2);
  pcVar2 = var_1(4,(char *)0x0);
  var_3 = var_2(pcVar2,0x1c0);
  if (var_3 == (char *)0x0) {
    (*(type_3 *)PTR_safefree_000a70d4)(pcVar2);
    pcVar2 = var_1(5,sessionname);
    var_5 = (void *)(*(type_3 *)PTR_fopen64_000a7ec4)
                               (pcVar2,var_4 + 0x13d0);
    if (var_5 == (void *)0x0) {
      puVar6 = (type_2 *)(*(type_3 *)PTR___errno_location_000a7d10)();
      uVar7 = (*(type_3 *)PTR_strerror_000a7a38)(*puVar6);
      var_3 = (char *)(*(type_3 *)PTR_dupprintf_000a71cc)
                                 (var_4 + 0x16dc,pcVar2,
                                  uVar7);
      puVar1 = PTR_safefree_000a70d4;
      *errmsg = var_3;
      (*(type_3 *)puVar1)(pcVar2);
    }
    else {
      (*(type_3 *)PTR_safefree_000a70d4)(pcVar2);
    }
    return var_5;
  }
  pcVar5 = (char *)(*(type_3 *)PTR_dupprintf_000a71cc)
                             (var_4 + 0x16c0,var_3);
  puVar1 = PTR_safefree_000a70d4;
  *errmsg = pcVar5;
  (*(type_3 *)puVar1)(var_3);
  (*(type_3 *)PTR_safefree_000a70d4)(pcVar2);
  return (void *)0x0;
}


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

int MASKED(undefined4 param_1,undefined4 *param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  
  *param_2 = 0;
  uVar2 = FUN_0006eb30(0,0);
  iVar3 = make_dir_path(uVar2,0x1c0);
  if (iVar3 != 0) {
    uVar5 = (*(code *)PTR_dupprintf_000a71cc)
                      (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);
    puVar1 = PTR_safefree_000a70d4;
    *param_2 = uVar5;
    (*(code *)puVar1)(iVar3);
    (*(code *)PTR_safefree_000a70d4)(uVar2);
    return 0;
  }
  (*(code *)PTR_safefree_000a70d4)(uVar2);
  uVar2 = FUN_0006eb30(4,0);
  iVar3 = make_dir_path(uVar2,0x1c0);
  if (iVar3 == 0) {
    (*(code *)PTR_safefree_000a70d4)(uVar2);
    uVar2 = FUN_0006eb30(5,param_1);
    iVar3 = (*(code *)PTR_fopen64_000a7ec4)
                      (uVar2,PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13d0);
    if (iVar3 == 0) {
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_000a7d10)();
      uVar5 = (*(code *)PTR_strerror_000a7a38)(*puVar4);
      uVar5 = (*(code *)PTR_dupprintf_000a71cc)
                        (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16dc,uVar2,uVar5);
      puVar1 = PTR_safefree_000a70d4;
      *param_2 = uVar5;
      (*(code *)puVar1)(uVar2);
    }
    else {
      (*(code *)PTR_safefree_000a70d4)(uVar2);
    }
    return iVar3;
  }
  uVar5 = (*(code *)PTR_dupprintf_000a71cc)
                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x16c0,iVar3);
  puVar1 = PTR_safefree_000a70d4;
  *param_2 = uVar5;
  (*(code *)puVar1)(iVar3);
  (*(code *)PTR_safefree_000a70d4)(uVar2);
  return 0;
}

