
void * open_settings_r(char *sessionname)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  void *pvVar4;
  int iVar5;
  undefined1 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  undefined4 uVar9;
  undefined1 *puVar10;
  undefined *puVar11;
  
  pcVar2 = make_filename(5,sessionname);
  iVar3 = (*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);
  (*(code *)PTR_safefree_000b5210)(pcVar2);
  if (iVar3 != 0) {
    pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);
    puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;
    while( true ) {
      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);
      if (iVar5 == 0) break;
      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);
      puVar1 = PTR_strcspn_000b5ca4;
      puVar10 = puVar6 + 1;
      if (puVar6 == (undefined1 *)0x0) {
        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);
      }
      else {
        *puVar6 = 0;
        iVar7 = (*(code *)puVar1)(puVar10);
        puVar1 = PTR_safemalloc_000b520c;
        puVar10[iVar7] = 0;
        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);
        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);
        puVar1 = PTR_dupstr_000b5238;
        *puVar8 = uVar9;
        uVar9 = (*(code *)puVar1)(puVar10);
        puVar1 = PTR_add234_000b5334;
        puVar8[1] = uVar9;
        (*(code *)puVar1)(pvVar4,puVar8);
        (*(code *)PTR_safefree_000b5210)(iVar5);
      }
    }
    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);
    return pvVar4;
  }
  return (void *)0x0;
}



undefined4 open_settings_r(undefined4 param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined1 *puVar9;
  undefined *puVar10;
  
  uVar2 = FUN_0007a8f0(5,param_1);
  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);
  (*(code *)PTR_safefree_000b5210)(uVar2);
  if (iVar3 != 0) {
    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);
    puVar10 = PTR_DAT_000b5230 + 0x4b48;
    while( true ) {
      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);
      if (iVar4 == 0) break;
      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);
      puVar1 = PTR_strcspn_000b5ca4;
      puVar9 = puVar5 + 1;
      if (puVar5 == (undefined1 *)0x0) {
        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);
      }
      else {
        *puVar5 = 0;
        iVar6 = (*(code *)puVar1)(puVar9);
        puVar1 = PTR_safemalloc_000b520c;
        puVar9[iVar6] = 0;
        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);
        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);
        puVar1 = PTR_dupstr_000b5238;
        *puVar7 = uVar8;
        uVar8 = (*(code *)puVar1)(puVar9);
        puVar1 = PTR_add234_000b5334;
        puVar7[1] = uVar8;
        (*(code *)puVar1)(uVar2,puVar7);
        (*(code *)PTR_safefree_000b5210)(iVar4);
      }
    }
    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);
    return uVar2;
  }
  return 0;
}


lui gp,0x4
addiu gp,gp,0x1b44
addu gp,gp,t9
lw t9,-0x7fc8(gp)
addiu sp,sp,-0x38
or a1,a0,zero
li a0,0x5
addiu t9,t9,-0x5710
sw ra,0x34(sp)
sw gp,0x10(sp)
sw s3,0x28(sp)
sw s0,0x1c(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s2,0x24(sp)
bal 0x0007a8f0
_sw s1,0x20(sp)
lw gp,0x10(sp)
or a0,v0,zero
or s0,v0,zero
lw a1,-0x7fbc(gp)
lw t9,-0x70e0(gp)
jalr t9
_addiu a1,a1,-0x702c
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or s3,v0,zero
beq s3,zero,0x0007b830
_lw gp,0x10(sp)
lw t9,-0x7e94(gp)
lw a0,-0x7820(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s5,v0,zero
lw s4,-0x7fa0(gp)
addiu s4,s4,0x4b48
lw t9,-0x7818(gp)
jalr t9
_or a0,s3,zero
li a1,0x3d
lw gp,0x10(sp)
or s0,v0,zero
or a0,v0,zero
beq v0,zero,0x0007b7fc
_lw t9,-0x739c(gp)
jalr t9
_nop
or a1,s4,zero
lw gp,0x10(sp)
addiu s1,v0,0x1
beq v0,zero,0x0007b7e8
_lw t9,-0x752c(gp)
or a0,s1,zero
jalr t9
_sb zero,0x0(v0)
li a1,0x8
lw gp,0x10(sp)
addu v0,s1,v0
li a0,0x1
lw t9,-0x7fc4(gp)
jalr t9
_sb zero,0x0(v0)
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f98(gp)
jalr t9
_or s2,v0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7f98(gp)
jalr t9
_sw v0,0x0(s2)
or a0,s5,zero
lw gp,0x10(sp)
or a1,s2,zero
lw t9,-0x7e9c(gp)
jalr t9
_sw v0,0x4(s2)
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s0,zero
b 0x0007b728
_lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s0,zero
b 0x0007b728
_lw gp,0x10(sp)
lw t9,-0x72b0(gp)
jalr t9
_or a0,s3,zero
or v0,s5,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 ra,0x34(sp)
or s5,zero,zero
lw s4,0x2c(sp)
or v0,s5,zero
lw s3,0x28(sp)
lw s5,0x30(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 open_settings_r(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 open_settings_r(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "open_settings_r(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\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 "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "uVar2 = FUN_0007a8f0(5,param_1);" (assignment_expression "uVar2 = FUN_0007a8f0(5,param_1)" identifier = (call_expression "FUN_0007a8f0(5,param_1)" identifier (argument_list "(5,param_1)" ( number_literal , identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" identifier = (call_expression "(*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" (parenthesized_expression "(*(code *)PTR_fopen64_000b60f0)" ( (pointer_expression "*(code *)PTR_fopen64_000b60f0" * (cast_expression "(code *)PTR_fopen64_000b60f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x702c" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_safefree_000b5210)(uVar2);" (call_expression "(*(code *)PTR_safefree_000b5210)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);" (assignment_expression "uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" identifier = (call_expression "(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" (parenthesized_expression "(*(code *)PTR_newtree234_000b533c)" ( (pointer_expression "*(code *)PTR_newtree234_000b533c" * (cast_expression "(code *)PTR_newtree234_000b533c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_keycmp_000b59b0)" ( identifier )))) ;) (expression_statement "puVar10 = PTR_DAT_000b5230 + 0x4b48;" (assignment_expression "puVar10 = PTR_DAT_000b5230 + 0x4b48" identifier = (binary_expression "PTR_DAT_000b5230 + 0x4b48" identifier + number_literal)) ;) (while_statement "while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }" { (expression_statement "iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3)" identifier = (call_expression "(*(code *)PTR_fgetline_000b59b8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fgetline_000b59b8)" ( (pointer_expression "*(code *)PTR_fgetline_000b59b8" * (cast_expression "(code *)PTR_fgetline_000b59b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000b5e34)(iVar4)" (parenthesized_expression "(*(code *)PTR_strchr_000b5e34)" ( (pointer_expression "*(code *)PTR_strchr_000b5e34" * (cast_expression "(code *)PTR_strchr_000b5e34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_strcspn_000b5ca4;" (assignment_expression "puVar1 = PTR_strcspn_000b5ca4" identifier = identifier) ;) (expression_statement "puVar9 = puVar5 + 1;" (assignment_expression "puVar9 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (if_statement "if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" if (parenthesized_expression "(puVar5 == (undefined1 *)0x0)" ( (binary_expression "puVar5 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }" { (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar4,puVar10);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar4,puVar10)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar10)" ( identifier , identifier ))) ;) }) (else_clause "else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" else (compound_statement "{\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "iVar6 = (*(code *)puVar1)(puVar9);" (assignment_expression "iVar6 = (*(code *)puVar1)(puVar9)" identifier = (call_expression "(*(code *)puVar1)(puVar9)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_safemalloc_000b520c;" (assignment_expression "puVar1 = PTR_safemalloc_000b520c" identifier = identifier) ;) (expression_statement "puVar9[iVar6] = 0;" (assignment_expression "puVar9[iVar6] = 0" (subscript_expression "puVar9[iVar6]" identifier [ identifier ]) = number_literal) ;) (expression_statement "puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);" (assignment_expression "puVar7 = (undefined4 *)(*(code *)puVar1)(1,8)" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(1,8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);" (assignment_expression "uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4)" identifier = (call_expression "(*(code *)PTR_dupstr_000b5238)(iVar4)" (parenthesized_expression "(*(code *)PTR_dupstr_000b5238)" ( (pointer_expression "*(code *)PTR_dupstr_000b5238" * (cast_expression "(code *)PTR_dupstr_000b5238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_dupstr_000b5238;" (assignment_expression "puVar1 = PTR_dupstr_000b5238" identifier = identifier) ;) (expression_statement "*puVar7 = uVar8;" (assignment_expression "*puVar7 = uVar8" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "uVar8 = (*(code *)puVar1)(puVar9);" (assignment_expression "uVar8 = (*(code *)puVar1)(puVar9)" identifier = (call_expression "(*(code *)puVar1)(puVar9)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_add234_000b5334;" (assignment_expression "puVar1 = PTR_add234_000b5334" identifier = identifier) ;) (expression_statement "puVar7[1] = uVar8;" (assignment_expression "puVar7[1] = uVar8" (subscript_expression "puVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(uVar2,puVar7);" (call_expression "(*(code *)puVar1)(uVar2,puVar7)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,puVar7)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar4);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar4)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) }))) })) (expression_statement "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);" (call_expression "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d)" (parenthesized_expression "(*(code *)PTR_fclose_000b5f20)" ( (pointer_expression "*(code *)PTR_fclose_000b5f20" * (cast_expression "(code *)PTR_fclose_000b5f20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x3d)" ( identifier , number_literal ))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * open_settings_r(char *sessionname)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  void *pvVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined1 *puVar10;\n  undefined *puVar11;\n  \n  pcVar2 = make_filename(5,sessionname);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(pcVar2);\n  if (iVar3 != 0) {\n    pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;\n    while( true ) {\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return pvVar4;\n  }\n  return (void *)0x0;\n}\n\n" (function_definition "void * open_settings_r(char *sessionname)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  void *pvVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined1 *puVar10;\n  undefined *puVar11;\n  \n  pcVar2 = make_filename(5,sessionname);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(pcVar2);\n  if (iVar3 != 0) {\n    pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;\n    while( true ) {\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return pvVar4;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* open_settings_r(char *sessionname)" * (function_declarator "open_settings_r(char *sessionname)" identifier (parameter_list "(char *sessionname)" ( (parameter_declaration "char *sessionname" primitive_type (pointer_declarator "*sessionname" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  void *pvVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined1 *puVar10;\n  undefined *puVar11;\n  \n  pcVar2 = make_filename(5,sessionname);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(pcVar2);\n  if (iVar3 != 0) {\n    pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;\n    while( true ) {\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return pvVar4;\n  }\n  return (void *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined1 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * 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 "iVar3 = (*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" identifier = (call_expression "(*(code *)PTR_fopen64_000b60f0)(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" (parenthesized_expression "(*(code *)PTR_fopen64_000b60f0)" ( (pointer_expression "*(code *)PTR_fopen64_000b60f0" * (cast_expression "(code *)PTR_fopen64_000b60f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x702c" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_safefree_000b5210)(pcVar2);" (call_expression "(*(code *)PTR_safefree_000b5210)(pcVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (if_statement "if (iVar3 != 0) {\n    pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;\n    while( true ) {\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return pvVar4;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;\n    while( true ) {\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return pvVar4;\n  }" { (expression_statement "pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);" (assignment_expression "pvVar4 = (void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" identifier = (cast_expression "(void *)(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" (parenthesized_expression "(*(code *)PTR_newtree234_000b533c)" ( (pointer_expression "*(code *)PTR_newtree234_000b533c" * (cast_expression "(code *)PTR_newtree234_000b533c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_keycmp_000b59b0)" ( identifier ))))) ;) (expression_statement "puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48;" (assignment_expression "puVar11 = PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48" identifier = (binary_expression "PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x4b48" identifier + number_literal)) ;) (while_statement "while( true ) {\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar5 == 0) break;\n      puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar10 = puVar6 + 1;\n      if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }\n    }" { (expression_statement "iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3);" (assignment_expression "iVar5 = (*(code *)PTR_fgetline_000b59b8)(iVar3)" identifier = (call_expression "(*(code *)PTR_fgetline_000b59b8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fgetline_000b59b8)" ( (pointer_expression "*(code *)PTR_fgetline_000b59b8" * (cast_expression "(code *)PTR_fgetline_000b59b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5);" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000b5e34)(iVar5)" (parenthesized_expression "(*(code *)PTR_strchr_000b5e34)" ( (pointer_expression "*(code *)PTR_strchr_000b5e34" * (cast_expression "(code *)PTR_strchr_000b5e34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_strcspn_000b5ca4;" (assignment_expression "puVar1 = PTR_strcspn_000b5ca4" identifier = identifier) ;) (expression_statement "puVar10 = puVar6 + 1;" (assignment_expression "puVar10 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (if_statement "if (puVar6 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }\n      else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }" if (parenthesized_expression "(puVar6 == (undefined1 *)0x0)" ( (binary_expression "puVar6 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR_safefree_000b5210)(iVar5,puVar11);\n      }" { (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar5,puVar11);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar5,puVar11)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,puVar11)" ( identifier , identifier ))) ;) }) (else_clause "else {\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }" else (compound_statement "{\n        *puVar6 = 0;\n        iVar7 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar10[iVar7] = 0;\n        puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar8 = uVar9;\n        uVar9 = (*(code *)puVar1)(puVar10);\n        puVar1 = PTR_add234_000b5334;\n        puVar8[1] = uVar9;\n        (*(code *)puVar1)(pvVar4,puVar8);\n        (*(code *)PTR_safefree_000b5210)(iVar5);\n      }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "iVar7 = (*(code *)puVar1)(puVar10);" (assignment_expression "iVar7 = (*(code *)puVar1)(puVar10)" identifier = (call_expression "(*(code *)puVar1)(puVar10)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar10)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_safemalloc_000b520c;" (assignment_expression "puVar1 = PTR_safemalloc_000b520c" identifier = identifier) ;) (expression_statement "puVar10[iVar7] = 0;" (assignment_expression "puVar10[iVar7] = 0" (subscript_expression "puVar10[iVar7]" identifier [ identifier ]) = number_literal) ;) (expression_statement "puVar8 = (undefined4 *)(*(code *)puVar1)(1,8);" (assignment_expression "puVar8 = (undefined4 *)(*(code *)puVar1)(1,8)" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(1,8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5);" (assignment_expression "uVar9 = (*(code *)PTR_dupstr_000b5238)(iVar5)" identifier = (call_expression "(*(code *)PTR_dupstr_000b5238)(iVar5)" (parenthesized_expression "(*(code *)PTR_dupstr_000b5238)" ( (pointer_expression "*(code *)PTR_dupstr_000b5238" * (cast_expression "(code *)PTR_dupstr_000b5238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_dupstr_000b5238;" (assignment_expression "puVar1 = PTR_dupstr_000b5238" identifier = identifier) ;) (expression_statement "*puVar8 = uVar9;" (assignment_expression "*puVar8 = uVar9" (pointer_expression "*puVar8" * identifier) = identifier) ;) (expression_statement "uVar9 = (*(code *)puVar1)(puVar10);" (assignment_expression "uVar9 = (*(code *)puVar1)(puVar10)" identifier = (call_expression "(*(code *)puVar1)(puVar10)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar10)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_add234_000b5334;" (assignment_expression "puVar1 = PTR_add234_000b5334" identifier = identifier) ;) (expression_statement "puVar8[1] = uVar9;" (assignment_expression "puVar8[1] = uVar9" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(pvVar4,puVar8);" (call_expression "(*(code *)puVar1)(pvVar4,puVar8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar4,puVar8)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar5);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier ))) ;) }))) })) (expression_statement "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);" (call_expression "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d)" (parenthesized_expression "(*(code *)PTR_fclose_000b5f20)" ( (pointer_expression "*(code *)PTR_fclose_000b5f20" * (cast_expression "(code *)PTR_fclose_000b5f20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x3d)" ( identifier , number_literal ))) ;) (return_statement "return pvVar4;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 open_settings_r(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 open_settings_r(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "open_settings_r(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\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 "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "uVar2 = FUN_0007a8f0(5,param_1);" (assignment_expression "uVar2 = FUN_0007a8f0(5,param_1)" identifier = (call_expression "FUN_0007a8f0(5,param_1)" identifier (argument_list "(5,param_1)" ( number_literal , identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" identifier = (call_expression "(*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" (parenthesized_expression "(*(code *)PTR_fopen64_000b60f0)" ( (pointer_expression "*(code *)PTR_fopen64_000b60f0" * (cast_expression "(code *)PTR_fopen64_000b60f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x702c" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_safefree_000b5210)(uVar2);" (call_expression "(*(code *)PTR_safefree_000b5210)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);" (assignment_expression "uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" identifier = (call_expression "(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" (parenthesized_expression "(*(code *)PTR_newtree234_000b533c)" ( (pointer_expression "*(code *)PTR_newtree234_000b533c" * (cast_expression "(code *)PTR_newtree234_000b533c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_keycmp_000b59b0)" ( identifier )))) ;) (expression_statement "puVar10 = PTR_DAT_000b5230 + 0x4b48;" (assignment_expression "puVar10 = PTR_DAT_000b5230 + 0x4b48" identifier = (binary_expression "PTR_DAT_000b5230 + 0x4b48" identifier + number_literal)) ;) (while_statement "while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }" { (expression_statement "iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3)" identifier = (call_expression "(*(code *)PTR_fgetline_000b59b8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fgetline_000b59b8)" ( (pointer_expression "*(code *)PTR_fgetline_000b59b8" * (cast_expression "(code *)PTR_fgetline_000b59b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000b5e34)(iVar4)" (parenthesized_expression "(*(code *)PTR_strchr_000b5e34)" ( (pointer_expression "*(code *)PTR_strchr_000b5e34" * (cast_expression "(code *)PTR_strchr_000b5e34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_strcspn_000b5ca4;" (assignment_expression "puVar1 = PTR_strcspn_000b5ca4" identifier = identifier) ;) (expression_statement "puVar9 = puVar5 + 1;" (assignment_expression "puVar9 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (if_statement "if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" if (parenthesized_expression "(puVar5 == (undefined1 *)0x0)" ( (binary_expression "puVar5 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }" { (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar4,puVar10);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar4,puVar10)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar10)" ( identifier , identifier ))) ;) }) (else_clause "else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" else (compound_statement "{\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "iVar6 = (*(code *)puVar1)(puVar9);" (assignment_expression "iVar6 = (*(code *)puVar1)(puVar9)" identifier = (call_expression "(*(code *)puVar1)(puVar9)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_safemalloc_000b520c;" (assignment_expression "puVar1 = PTR_safemalloc_000b520c" identifier = identifier) ;) (expression_statement "puVar9[iVar6] = 0;" (assignment_expression "puVar9[iVar6] = 0" (subscript_expression "puVar9[iVar6]" identifier [ identifier ]) = number_literal) ;) (expression_statement "puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);" (assignment_expression "puVar7 = (undefined4 *)(*(code *)puVar1)(1,8)" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(1,8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);" (assignment_expression "uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4)" identifier = (call_expression "(*(code *)PTR_dupstr_000b5238)(iVar4)" (parenthesized_expression "(*(code *)PTR_dupstr_000b5238)" ( (pointer_expression "*(code *)PTR_dupstr_000b5238" * (cast_expression "(code *)PTR_dupstr_000b5238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_dupstr_000b5238;" (assignment_expression "puVar1 = PTR_dupstr_000b5238" identifier = identifier) ;) (expression_statement "*puVar7 = uVar8;" (assignment_expression "*puVar7 = uVar8" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "uVar8 = (*(code *)puVar1)(puVar9);" (assignment_expression "uVar8 = (*(code *)puVar1)(puVar9)" identifier = (call_expression "(*(code *)puVar1)(puVar9)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_add234_000b5334;" (assignment_expression "puVar1 = PTR_add234_000b5334" identifier = identifier) ;) (expression_statement "puVar7[1] = uVar8;" (assignment_expression "puVar7[1] = uVar8" (subscript_expression "puVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(uVar2,puVar7);" (call_expression "(*(code *)puVar1)(uVar2,puVar7)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,puVar7)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar4);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar4)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" ( (pointer_expression "*(code *)PTR_safefree_000b5210" * (cast_expression "(code *)PTR_safefree_000b5210" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) }))) })) (expression_statement "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);" (call_expression "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d)" (parenthesized_expression "(*(code *)PTR_fclose_000b5f20)" ( (pointer_expression "*(code *)PTR_fclose_000b5f20" * (cast_expression "(code *)PTR_fclose_000b5f20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x3d)" ( identifier , number_literal ))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( 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 , LIT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 open_settings_r(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "open_settings_r(undefined4 param_1)" (identifier "open_settings_r") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined1 *puVar9;\n  undefined *puVar10;\n  \n  uVar2 = FUN_0007a8f0(5,param_1);\n  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);\n  (*(code *)PTR_safefree_000b5210)(uVar2);\n  if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }\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 "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (expression_statement "uVar2 = FUN_0007a8f0(5,param_1);" (assignment_expression "uVar2 = FUN_0007a8f0(5,param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0007a8f0(5,param_1)" (identifier "FUN_0007a8f0") (argument_list "(5,param_1)" (( "(") (number_literal "5") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);" (assignment_expression "iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" (parenthesized_expression "(*(code *)PTR_fopen64_000b60f0)" (( "(") (pointer_expression "*(code *)PTR_fopen64_000b60f0" (* "*") (cast_expression "(code *)PTR_fopen64_000b60f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fopen64_000b60f0"))) () ")")) (argument_list "(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c)" (( "(") (identifier "uVar2") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x702c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x702c")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b5210)(uVar2);" (call_expression "(*(code *)PTR_safefree_000b5210)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b5210" (* "*") (cast_expression "(code *)PTR_safefree_000b5210" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b5210"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (if_statement "if (iVar3 != 0) {\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);\n    puVar10 = PTR_DAT_000b5230 + 0x4b48;\n    while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }\n    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);" (assignment_expression "uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0)" (parenthesized_expression "(*(code *)PTR_newtree234_000b533c)" (( "(") (pointer_expression "*(code *)PTR_newtree234_000b533c" (* "*") (cast_expression "(code *)PTR_newtree234_000b533c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_newtree234_000b533c"))) () ")")) (argument_list "(PTR_keycmp_000b59b0)" (( "(") (identifier "PTR_keycmp_000b59b0") () ")")))) (; ";")) (expression_statement "puVar10 = PTR_DAT_000b5230 + 0x4b48;" (assignment_expression "puVar10 = PTR_DAT_000b5230 + 0x4b48" (identifier "puVar10") (= "=") (binary_expression "PTR_DAT_000b5230 + 0x4b48" (identifier "PTR_DAT_000b5230") (+ "+") (number_literal "0x4b48"))) (; ";")) (while_statement "while( true ) {\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);\n      if (iVar4 == 0) break;\n      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);\n      puVar1 = PTR_strcspn_000b5ca4;\n      puVar9 = puVar5 + 1;\n      if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }\n    }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_fgetline_000b59b8)(iVar3)" (parenthesized_expression "(*(code *)PTR_fgetline_000b59b8)" (( "(") (pointer_expression "*(code *)PTR_fgetline_000b59b8" (* "*") (cast_expression "(code *)PTR_fgetline_000b59b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fgetline_000b59b8"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strchr_000b5e34)(iVar4)" (parenthesized_expression "(*(code *)PTR_strchr_000b5e34)" (( "(") (pointer_expression "*(code *)PTR_strchr_000b5e34" (* "*") (cast_expression "(code *)PTR_strchr_000b5e34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000b5e34"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_strcspn_000b5ca4;" (assignment_expression "puVar1 = PTR_strcspn_000b5ca4" (identifier "puVar1") (= "=") (identifier "PTR_strcspn_000b5ca4")) (; ";")) (expression_statement "puVar9 = puVar5 + 1;" (assignment_expression "puVar9 = puVar5 + 1" (identifier "puVar9") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar5 == (undefined1 *)0x0) {\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }\n      else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" (if "if") (parenthesized_expression "(puVar5 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar5 == (undefined1 *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);\n      }" ({ "{") (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar4,puVar10);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar4,puVar10)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b5210" (* "*") (cast_expression "(code *)PTR_safefree_000b5210" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b5210"))) () ")")) (argument_list "(iVar4,puVar10)" (( "(") (identifier "iVar4") (, ",") (identifier "puVar10") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" (else "else") (compound_statement "{\n        *puVar5 = 0;\n        iVar6 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_safemalloc_000b520c;\n        puVar9[iVar6] = 0;\n        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);\n        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);\n        puVar1 = PTR_dupstr_000b5238;\n        *puVar7 = uVar8;\n        uVar8 = (*(code *)puVar1)(puVar9);\n        puVar1 = PTR_add234_000b5334;\n        puVar7[1] = uVar8;\n        (*(code *)puVar1)(uVar2,puVar7);\n        (*(code *)PTR_safefree_000b5210)(iVar4);\n      }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = (*(code *)puVar1)(puVar9);" (assignment_expression "iVar6 = (*(code *)puVar1)(puVar9)" (identifier "iVar6") (= "=") (call_expression "(*(code *)puVar1)(puVar9)" (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 "(puVar9)" (( "(") (identifier "puVar9") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_safemalloc_000b520c;" (assignment_expression "puVar1 = PTR_safemalloc_000b520c" (identifier "puVar1") (= "=") (identifier "PTR_safemalloc_000b520c")) (; ";")) (expression_statement "puVar9[iVar6] = 0;" (assignment_expression "puVar9[iVar6] = 0" (subscript_expression "puVar9[iVar6]" (identifier "puVar9") ([ "[") (identifier "iVar6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);" (assignment_expression "puVar7 = (undefined4 *)(*(code *)puVar1)(1,8)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(*(code *)puVar1)(1,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar1)(1,8)" (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 "(1,8)" (( "(") (number_literal "1") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);" (assignment_expression "uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4)" (identifier "uVar8") (= "=") (call_expression "(*(code *)PTR_dupstr_000b5238)(iVar4)" (parenthesized_expression "(*(code *)PTR_dupstr_000b5238)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000b5238" (* "*") (cast_expression "(code *)PTR_dupstr_000b5238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000b5238"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_dupstr_000b5238;" (assignment_expression "puVar1 = PTR_dupstr_000b5238" (identifier "puVar1") (= "=") (identifier "PTR_dupstr_000b5238")) (; ";")) (expression_statement "*puVar7 = uVar8;" (assignment_expression "*puVar7 = uVar8" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "uVar8 = (*(code *)puVar1)(puVar9);" (assignment_expression "uVar8 = (*(code *)puVar1)(puVar9)" (identifier "uVar8") (= "=") (call_expression "(*(code *)puVar1)(puVar9)" (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 "(puVar9)" (( "(") (identifier "puVar9") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_add234_000b5334;" (assignment_expression "puVar1 = PTR_add234_000b5334" (identifier "puVar1") (= "=") (identifier "PTR_add234_000b5334")) (; ";")) (expression_statement "puVar7[1] = uVar8;" (assignment_expression "puVar7[1] = uVar8" (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "(*(code *)puVar1)(uVar2,puVar7);" (call_expression "(*(code *)puVar1)(uVar2,puVar7)" (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,puVar7)" (( "(") (identifier "uVar2") (, ",") (identifier "puVar7") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b5210)(iVar4);" (call_expression "(*(code *)PTR_safefree_000b5210)(iVar4)" (parenthesized_expression "(*(code *)PTR_safefree_000b5210)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b5210" (* "*") (cast_expression "(code *)PTR_safefree_000b5210" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b5210"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);" (call_expression "(*(code *)PTR_fclose_000b5f20)(iVar3,0x3d)" (parenthesized_expression "(*(code *)PTR_fclose_000b5f20)" (( "(") (pointer_expression "*(code *)PTR_fclose_000b5f20" (* "*") (cast_expression "(code *)PTR_fclose_000b5f20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fclose_000b5f20"))) () ")")) (argument_list "(iVar3,0x3d)" (( "(") (identifier "iVar3") (, ",") (number_literal "0x3d") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(char *sessionname)

{
  type_1 *puVar1;
  char *pcVar2;
  int var_3;
  void *pvVar4;
  int var_5;
  type_2 *var_6;
  int iVar7;
  type_3 *puVar8;
  type_3 uVar9;
  type_2 *puVar10;
  type_1 *puVar11;
  
  pcVar2 = var_1(5,sessionname);
  var_3 = (*(type_4 *)PTR_fopen64_000b60f0)(pcVar2,var_2 + -0x702c);
  (*(type_4 *)PTR_safefree_000b5210)(pcVar2);
  if (var_3 != 0) {
    pvVar4 = (void *)(*(type_4 *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);
    puVar11 = var_4 + 0x4b48;
    while( true ) {
      var_5 = (*(type_4 *)PTR_fgetline_000b59b8)(var_3);
      if (var_5 == 0) break;
      var_6 = (type_2 *)(*(type_4 *)PTR_strchr_000b5e34)(var_5);
      puVar1 = PTR_strcspn_000b5ca4;
      puVar10 = var_6 + 1;
      if (var_6 == (type_2 *)0x0) {
        (*(type_4 *)PTR_safefree_000b5210)(var_5,puVar11);
      }
      else {
        *var_6 = 0;
        iVar7 = (*(type_4 *)puVar1)(puVar10);
        puVar1 = PTR_safemalloc_000b520c;
        puVar10[iVar7] = 0;
        puVar8 = (type_3 *)(*(type_4 *)puVar1)(1,8);
        uVar9 = (*(type_4 *)PTR_dupstr_000b5238)(var_5);
        puVar1 = PTR_dupstr_000b5238;
        *puVar8 = uVar9;
        uVar9 = (*(type_4 *)puVar1)(puVar10);
        puVar1 = PTR_add234_000b5334;
        puVar8[1] = uVar9;
        (*(type_4 *)puVar1)(pvVar4,puVar8);
        (*(type_4 *)PTR_safefree_000b5210)(var_5);
      }
    }
    (*(type_4 *)PTR_fclose_000b5f20)(var_3,0x3d);
    return pvVar4;
  }
  return (void *)0x0;
}


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

undefined4 MASKED(undefined4 param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined1 *puVar9;
  undefined *puVar10;
  
  uVar2 = FUN_0007a8f0(5,param_1);
  iVar3 = (*(code *)PTR_fopen64_000b60f0)(uVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x702c);
  (*(code *)PTR_safefree_000b5210)(uVar2);
  if (iVar3 != 0) {
    uVar2 = (*(code *)PTR_newtree234_000b533c)(PTR_keycmp_000b59b0);
    puVar10 = PTR_DAT_000b5230 + 0x4b48;
    while( true ) {
      iVar4 = (*(code *)PTR_fgetline_000b59b8)(iVar3);
      if (iVar4 == 0) break;
      puVar5 = (undefined1 *)(*(code *)PTR_strchr_000b5e34)(iVar4);
      puVar1 = PTR_strcspn_000b5ca4;
      puVar9 = puVar5 + 1;
      if (puVar5 == (undefined1 *)0x0) {
        (*(code *)PTR_safefree_000b5210)(iVar4,puVar10);
      }
      else {
        *puVar5 = 0;
        iVar6 = (*(code *)puVar1)(puVar9);
        puVar1 = PTR_safemalloc_000b520c;
        puVar9[iVar6] = 0;
        puVar7 = (undefined4 *)(*(code *)puVar1)(1,8);
        uVar8 = (*(code *)PTR_dupstr_000b5238)(iVar4);
        puVar1 = PTR_dupstr_000b5238;
        *puVar7 = uVar8;
        uVar8 = (*(code *)puVar1)(puVar9);
        puVar1 = PTR_add234_000b5334;
        puVar7[1] = uVar8;
        (*(code *)puVar1)(uVar2,puVar7);
        (*(code *)PTR_safefree_000b5210)(iVar4);
      }
    }
    (*(code *)PTR_fclose_000b5f20)(iVar3,0x3d);
    return uVar2;
  }
  return 0;
}

