
int ssh2_userkey_encrypted(Filename *filename,char **commentptr)

{
  undefined *puVar1;
  int iVar2;
  FILE *fp;
  int iVar3;
  char *ptr;
  char header [40];
  
  puVar1 = PTR___stack_chk_guard_0006a594;
  iVar2 = *(int *)PTR___stack_chk_guard_0006a594;
  if (commentptr != (char **)0x0) {
    *commentptr = (char *)0x0;
  }
  fp = f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0);
  if (fp != (FILE *)0x0) {
    iVar3 = read_header(fp,header);
    if ((iVar3 != 0) &&
       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0
         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),
            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {
                    /* WARNING: Subroutine does not return */
      safefree(ptr);
    }
    (*(code *)PTR_fclose_0006a4c8)(fp);
  }
  if (iVar2 != *(int *)puVar1) {
    (*(code *)PTR___stack_chk_fail_0006a574)();
    return (iVar2 + 0x2f) / 0x30;
  }
  return 0;
}



uint ssh2_userkey_encrypted(undefined4 param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  undefined1 auStack_54 [40];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0006a594;
  local_2c = *(int *)PTR___stack_chk_guard_0006a594;
  if (param_2 != (int *)0x0) {
    *param_2 = 0;
  }
  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);
  if (iVar2 == 0) {
    uVar5 = 0;
    goto LAB_0003c1a4;
  }
  iVar3 = FUN_00039050(iVar2,auStack_54);
  if (iVar3 != 0) {
    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);
    if (iVar3 != 0) {
      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);
      if (iVar3 != 0) goto LAB_0003c190;
    }
    iVar3 = FUN_00039114(iVar2);
    if (iVar3 != 0) {
      safefree(iVar3);
      iVar3 = FUN_00039050(iVar2,auStack_54);
      if (iVar3 != 0) {
        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);
        if (iVar3 == 0) {
          iVar3 = FUN_00039114(iVar2);
          if (iVar3 == 0) {
            (*(code *)PTR_fclose_0006a4c8)(iVar2);
            uVar5 = 0;
          }
          else {
            iVar4 = FUN_00039050(iVar2,auStack_54);
            if (iVar4 != 0) {
              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);
              if (iVar4 == 0) {
                iVar4 = FUN_00039114(iVar2);
                if (iVar4 != 0) {
                  if (param_2 == (int *)0x0) {
                    safefree(iVar4);
                  }
                  else {
                    *param_2 = iVar4;
                  }
                  (*(code *)PTR_fclose_0006a4c8)(iVar2);
                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);
                  uVar5 = (uint)(iVar2 == 0);
                  safefree(iVar3);
                  goto LAB_0003c1a4;
                }
              }
            }
            uVar5 = 1;
            (*(code *)PTR_fclose_0006a4c8)(iVar2);
            safefree(iVar3);
          }
          goto LAB_0003c1a4;
        }
      }
    }
  }
LAB_0003c190:
  uVar5 = 0;
  (*(code *)PTR_fclose_0006a4c8)(iVar2);
LAB_0003c1a4:
  if (local_2c == *(int *)puVar1) {
    return uVar5;
  }
  (*(code *)PTR___stack_chk_fail_0006a574)();
  return (local_2c + 0x2f) / 0x30;
}


lui gp,0x3
addiu gp,gp,0x5fd0
addu gp,gp,t9
addiu sp,sp,-0x70
sw s2,0x54(sp)
lw s2,-0x7a9c(gp)
sw gp,0x10(sp)
sw s3,0x58(sp)
or s3,a1,zero
sw ra,0x6c(sp)
sw s7,0x68(sp)
sw s6,0x64(sp)
sw s5,0x60(sp)
sw s4,0x5c(sp)
sw s1,0x50(sp)
sw s0,0x4c(sp)
lw v0,0x0(s2)
sw v0,0x44(sp)
beq a1,zero,0x0003c0b4
_nop
sw zero,0x0(a1)
lw a1,-0x7fc8(gp)
or a2,zero,zero
lw t9,-0x7f8c(gp)
bal 0x00048cc8
_addiu a1,a1,0x6cc0
lw gp,0x10(sp)
beq v0,zero,0x0003c1e0
_or s0,v0,zero
lw s1,-0x7ccc(gp)
addiu s6,sp,0x1c
or a0,v0,zero
addiu s1,s1,-0x6fb0
or t9,s1,zero
bal 0x00039050
_or a1,s6,zero
beq v0,zero,0x0003c190
_lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
or a0,s6,zero
lw t9,-0x7a68(gp)
jalr t9
_addiu a1,a1,0x6e44
beq v0,zero,0x0003c130
_lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
or a0,s6,zero
lw t9,-0x7a68(gp)
jalr t9
_addiu a1,a1,0x6e5c
bne v0,zero,0x0003c190
_lw gp,0x10(sp)
lw s5,-0x7ccc(gp)
addiu s5,s5,-0x6eec
or t9,s5,zero
bal 0x00039114
_or a0,s0,zero
beq v0,zero,0x0003c190
_lw gp,0x10(sp)
lw t9,-0x7fac(gp)
bal 0x000201c4
_or a0,v0,zero
or a1,s6,zero
or t9,s1,zero
bal 0x00039050
_or a0,s0,zero
beq v0,zero,0x0003c190
_lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
or a0,s6,zero
lw t9,-0x7a68(gp)
jalr t9
_addiu a1,a1,0x6e74
lw gp,0x10(sp)
beq v0,zero,0x0003c1e8
_or s4,v0,zero
lw t9,-0x7b68(gp)
or a0,s0,zero
jalr t9
_or s4,zero,zero
lw gp,0x10(sp)
lw a0,0x44(sp)
or v0,s4,zero
lw v1,0x0(s2)
bne a0,v1,0x0003c2e0
_lw ra,0x6c(sp)
lw s7,0x68(sp)
lw s6,0x64(sp)
lw s5,0x60(sp)
lw s4,0x5c(sp)
lw s3,0x58(sp)
lw s2,0x54(sp)
lw s1,0x50(sp)
lw s0,0x4c(sp)
jr ra
_addiu sp,sp,0x70
b 0x0003c1a4
_or s4,zero,zero
or t9,s5,zero
bal 0x00039114
_or a0,s0,zero
lw gp,0x10(sp)
beq v0,zero,0x0003c2bc
_or s7,v0,zero
or a1,s6,zero
or t9,s1,zero
bal 0x00039050
_or a0,s0,zero
beq v0,zero,0x0003c234
_lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
or a0,s6,zero
lw t9,-0x7a68(gp)
jalr t9
_addiu a1,a1,-0x1b6c
beq v0,zero,0x0003c25c
_lw gp,0x10(sp)
lw t9,-0x7b68(gp)
or a0,s0,zero
jalr t9
_li s4,0x1
lw gp,0x10(sp)
lw t9,-0x7fac(gp)
bal 0x000201c4
_or a0,s7,zero
b 0x0003c1a4
_lw gp,0x10(sp)
or t9,s5,zero
bal 0x00039114
_or a0,s0,zero
beq v0,zero,0x0003c234
_lw gp,0x10(sp)
beq s3,zero,0x0003c2d0
_lw t9,-0x7fac(gp)
sw v0,0x0(s3)
lw t9,-0x7b68(gp)
jalr t9
_or a0,s0,zero
or a0,s7,zero
lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
lw t9,-0x7a68(gp)
jalr t9
_addiu a1,a1,-0x1c1c
or a0,s7,zero
lw gp,0x10(sp)
lw t9,-0x7fac(gp)
bal 0x000201c4
_sltiu s4,v0,0x1
b 0x0003c1a4
_lw gp,0x10(sp)
lw t9,-0x7b68(gp)
jalr t9
_or a0,s0,zero
b 0x0003c1a4
_lw gp,0x10(sp)
bal 0x000201c4
_or a0,v0,zero
b 0x0003c27c
_lw gp,0x10(sp)
lw t9,-0x7abc(gp)
jalr t9
_nop
lui v1,0x2aaa
addiu a0,a0,0x2f
ori v1,v1,0xaaab
mult a0,v1
sra v0,a0,0x1f
mfhi v1
sra v1,v1,0x3
jr ra
_subu v0,v1,v0
(translation_unit "uint ssh2_userkey_encrypted(undefined4 param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}\n\n" (function_definition "uint ssh2_userkey_encrypted(undefined4 param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}" type_identifier (function_declarator "ssh2_userkey_encrypted(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 auStack_54 [40];" type_identifier (array_declarator "auStack_54 [40]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0006a594" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0006a594;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0006a594" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0006a594" * (cast_expression "(int *)PTR___stack_chk_guard_0006a594" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (expression_statement "iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);" (assignment_expression "iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" identifier = (call_expression "f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" identifier (argument_list "(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6cc0" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0003c1a4;" goto statement_identifier ;) })) (expression_statement "iVar3 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar3 = FUN_00039050(iVar2,auStack_54)" identifier = (call_expression "FUN_00039050(iVar2,auStack_54)" identifier (argument_list "(iVar2,auStack_54)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e44)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6e44" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6e5c" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0003c190;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003c190;" goto statement_identifier ;)) })) (expression_statement "iVar3 = FUN_00039114(iVar2);" (assignment_expression "iVar3 = FUN_00039114(iVar2)" identifier = (call_expression "FUN_00039114(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }" { (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar3 = FUN_00039050(iVar2,auStack_54)" identifier = (call_expression "FUN_00039050(iVar2,auStack_54)" identifier (argument_list "(iVar2,auStack_54)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e74)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6e74" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }" { (expression_statement "iVar3 = FUN_00039114(iVar2);" (assignment_expression "iVar3 = FUN_00039114(iVar2)" identifier = (call_expression "FUN_00039114(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }" { (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" else (compound_statement "{\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" { (expression_statement "iVar4 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar4 = FUN_00039050(iVar2,auStack_54)" identifier = (call_expression "FUN_00039050(iVar2,auStack_54)" identifier (argument_list "(iVar2,auStack_54)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }" { (expression_statement "iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" ( identifier , (binary_expression "PTR_DAT_0006a068 + -0x1b6c" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }" { (expression_statement "iVar4 = FUN_00039114(iVar2);" (assignment_expression "iVar4 = FUN_00039114(iVar2)" identifier = (call_expression "FUN_00039114(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }" { (if_statement "if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    safefree(iVar4);\n                  }" { (expression_statement "safefree(iVar4);" (call_expression "safefree(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }) (else_clause "else {\n                    *param_2 = iVar4;\n                  }" else (compound_statement "{\n                    *param_2 = iVar4;\n                  }" { (expression_statement "*param_2 = iVar4;" (assignment_expression "*param_2 = iVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_0006a068 + -0x1c1c)" ( identifier , (binary_expression "PTR_DAT_0006a068 + -0x1c1c" identifier + number_literal) )))) ;) (expression_statement "uVar5 = (uint)(iVar2 == 0);" (assignment_expression "uVar5 = (uint)(iVar2 == 0)" identifier = (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )))) ;) (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (goto_statement "goto LAB_0003c1a4;" goto statement_identifier ;) })) })) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) }))) (goto_statement "goto LAB_0003c1a4;" goto statement_identifier ;) })) })) })) })) (labeled_statement "LAB_0003c190:\n  uVar5 = 0;" statement_identifier : (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;)) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (labeled_statement "LAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" * (cast_expression "(code *)PTR___stack_chk_fail_0006a574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return (local_2c + 0x2f) / 0x30;" return (binary_expression "(local_2c + 0x2f) / 0x30" (parenthesized_expression "(local_2c + 0x2f)" ( (binary_expression "local_2c + 0x2f" identifier + number_literal) )) / number_literal) ;) })))
(translation_unit "int ssh2_userkey_encrypted(Filename *filename,char **commentptr)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  FILE *fp;\n  int iVar3;\n  char *ptr;\n  char header [40];\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  iVar2 = *(int *)PTR___stack_chk_guard_0006a594;\n  if (commentptr != (char **)0x0) {\n    *commentptr = (char *)0x0;\n  }\n  fp = f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0);\n  if (fp != (FILE *)0x0) {\n    iVar3 = read_header(fp,header);\n    if ((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR_fclose_0006a4c8)(fp);\n  }\n  if (iVar2 != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_0006a574)();\n    return (iVar2 + 0x2f) / 0x30;\n  }\n  return 0;\n}\n\n" (function_definition "int ssh2_userkey_encrypted(Filename *filename,char **commentptr)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  FILE *fp;\n  int iVar3;\n  char *ptr;\n  char header [40];\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  iVar2 = *(int *)PTR___stack_chk_guard_0006a594;\n  if (commentptr != (char **)0x0) {\n    *commentptr = (char *)0x0;\n  }\n  fp = f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0);\n  if (fp != (FILE *)0x0) {\n    iVar3 = read_header(fp,header);\n    if ((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR_fclose_0006a4c8)(fp);\n  }\n  if (iVar2 != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_0006a574)();\n    return (iVar2 + 0x2f) / 0x30;\n  }\n  return 0;\n}" primitive_type (function_declarator "ssh2_userkey_encrypted(Filename *filename,char **commentptr)" identifier (parameter_list "(Filename *filename,char **commentptr)" ( (parameter_declaration "Filename *filename" type_identifier (pointer_declarator "*filename" * identifier)) , (parameter_declaration "char **commentptr" primitive_type (pointer_declarator "**commentptr" * (pointer_declarator "*commentptr" * identifier))) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  FILE *fp;\n  int iVar3;\n  char *ptr;\n  char header [40];\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  iVar2 = *(int *)PTR___stack_chk_guard_0006a594;\n  if (commentptr != (char **)0x0) {\n    *commentptr = (char *)0x0;\n  }\n  fp = f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0);\n  if (fp != (FILE *)0x0) {\n    iVar3 = read_header(fp,header);\n    if ((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR_fclose_0006a4c8)(fp);\n  }\n  if (iVar2 != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_0006a574)();\n    return (iVar2 + 0x2f) / 0x30;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "char header [40];" primitive_type (array_declarator "header [40]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0006a594" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0006a594;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0006a594" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0006a594" * (cast_expression "(int *)PTR___stack_chk_guard_0006a594" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (commentptr != (char **)0x0) {\n    *commentptr = (char *)0x0;\n  }" if (parenthesized_expression "(commentptr != (char **)0x0)" ( (binary_expression "commentptr != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    *commentptr = (char *)0x0;\n  }" { (expression_statement "*commentptr = (char *)0x0;" (assignment_expression "*commentptr = (char *)0x0" (pointer_expression "*commentptr" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "fp = f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0);" (assignment_expression "fp = f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0)" identifier = (call_expression "f_open(filename,PTR_D0_238__0006a068 + 0x6cc0,0)" identifier (argument_list "(filename,PTR_D0_238__0006a068 + 0x6cc0,0)" ( identifier , (binary_expression "PTR_D0_238__0006a068 + 0x6cc0" identifier + number_literal) , number_literal )))) ;) (if_statement "if (fp != (FILE *)0x0) {\n    iVar3 = read_header(fp,header);\n    if ((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR_fclose_0006a4c8)(fp);\n  }" if (parenthesized_expression "(fp != (FILE *)0x0)" ( (binary_expression "fp != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = read_header(fp,header);\n    if ((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR_fclose_0006a4c8)(fp);\n  }" { (expression_statement "iVar3 = read_header(fp,header);" (assignment_expression "iVar3 = read_header(fp,header)" identifier = (call_expression "read_header(fp,header)" identifier (argument_list "(fp,header)" ( identifier , identifier )))) ;) (if_statement "if ((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))) {\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }" if (parenthesized_expression "((iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0))))" ( (binary_expression "(iVar3 != 0) &&\n       (((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)))" ( (parenthesized_expression "((iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0))" ( (binary_expression "(iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)) && (ptr = read_body(fp), ptr != (char *)0x0)" (parenthesized_expression "(iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0))" ( (comma_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44), iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e44)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(header,PTR_D0_238__0006a068 + 0x6e44)" ( identifier , (binary_expression "PTR_D0_238__0006a068 + 0x6e44" identifier + number_literal) )))) , (binary_expression "iVar3 == 0\n         || (iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)" (binary_expression "iVar3 == 0" identifier == number_literal) || (parenthesized_expression "(iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0)" ( (comma_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c),\n            iVar3 == 0" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(header,PTR_D0_238__0006a068 + 0x6e5c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(header,PTR_D0_238__0006a068 + 0x6e5c)" ( identifier , (binary_expression "PTR_D0_238__0006a068 + 0x6e5c" identifier + number_literal) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) )))) )) && (parenthesized_expression "(ptr = read_body(fp), ptr != (char *)0x0)" ( (comma_expression "ptr = read_body(fp), ptr != (char *)0x0" (assignment_expression "ptr = read_body(fp)" identifier = (call_expression "read_body(fp)" identifier (argument_list "(fp)" ( identifier )))) , (binary_expression "ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }" { comment (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) })) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(fp);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(fp)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp)" ( identifier ))) ;) })) (if_statement "if (iVar2 != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_0006a574)();\n    return (iVar2 + 0x2f) / 0x30;\n  }" if (parenthesized_expression "(iVar2 != *(int *)puVar1)" ( (binary_expression "iVar2 != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0006a574)();\n    return (iVar2 + 0x2f) / 0x30;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" * (cast_expression "(code *)PTR___stack_chk_fail_0006a574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return (iVar2 + 0x2f) / 0x30;" return (binary_expression "(iVar2 + 0x2f) / 0x30" (parenthesized_expression "(iVar2 + 0x2f)" ( (binary_expression "iVar2 + 0x2f" identifier + number_literal) )) / number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint ssh2_userkey_encrypted(undefined4 param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}\n\n" (function_definition "uint ssh2_userkey_encrypted(undefined4 param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}" type_identifier (function_declarator "ssh2_userkey_encrypted(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 auStack_54 [40];" type_identifier (array_declarator "auStack_54 [40]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0006a594" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0006a594;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0006a594" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0006a594" * (cast_expression "(int *)PTR___stack_chk_guard_0006a594" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (expression_statement "iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);" (assignment_expression "iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" identifier = (call_expression "f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" identifier (argument_list "(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6cc0" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0003c1a4;" goto statement_identifier ;) })) (expression_statement "iVar3 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar3 = FUN_00039050(iVar2,auStack_54)" identifier = (call_expression "FUN_00039050(iVar2,auStack_54)" identifier (argument_list "(iVar2,auStack_54)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e44)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6e44" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6e5c" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0003c190;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003c190;" goto statement_identifier ;)) })) (expression_statement "iVar3 = FUN_00039114(iVar2);" (assignment_expression "iVar3 = FUN_00039114(iVar2)" identifier = (call_expression "FUN_00039114(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }" { (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar3 = FUN_00039050(iVar2,auStack_54)" identifier = (call_expression "FUN_00039050(iVar2,auStack_54)" identifier (argument_list "(iVar2,auStack_54)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e74)" ( identifier , (binary_expression "PTR_DAT_0006a068 + 0x6e74" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }" { (expression_statement "iVar3 = FUN_00039114(iVar2);" (assignment_expression "iVar3 = FUN_00039114(iVar2)" identifier = (call_expression "FUN_00039114(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }" { (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" else (compound_statement "{\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" { (expression_statement "iVar4 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar4 = FUN_00039050(iVar2,auStack_54)" identifier = (call_expression "FUN_00039050(iVar2,auStack_54)" identifier (argument_list "(iVar2,auStack_54)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }" { (expression_statement "iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" ( identifier , (binary_expression "PTR_DAT_0006a068 + -0x1b6c" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }" { (expression_statement "iVar4 = FUN_00039114(iVar2);" (assignment_expression "iVar4 = FUN_00039114(iVar2)" identifier = (call_expression "FUN_00039114(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }" { (if_statement "if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    safefree(iVar4);\n                  }" { (expression_statement "safefree(iVar4);" (call_expression "safefree(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }) (else_clause "else {\n                    *param_2 = iVar4;\n                  }" else (compound_statement "{\n                    *param_2 = iVar4;\n                  }" { (expression_statement "*param_2 = iVar4;" (assignment_expression "*param_2 = iVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c)" identifier = (call_expression "(*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" ( (pointer_expression "*(code *)PTR_strcmp_0006a5c8" * (cast_expression "(code *)PTR_strcmp_0006a5c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_0006a068 + -0x1c1c)" ( identifier , (binary_expression "PTR_DAT_0006a068 + -0x1c1c" identifier + number_literal) )))) ;) (expression_statement "uVar5 = (uint)(iVar2 == 0);" (assignment_expression "uVar5 = (uint)(iVar2 == 0)" identifier = (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )))) ;) (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (goto_statement "goto LAB_0003c1a4;" goto statement_identifier ;) })) })) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) }))) (goto_statement "goto LAB_0003c1a4;" goto statement_identifier ;) })) })) })) })) (labeled_statement "LAB_0003c190:\n  uVar5 = 0;" statement_identifier : (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;)) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" ( (pointer_expression "*(code *)PTR_fclose_0006a4c8" * (cast_expression "(code *)PTR_fclose_0006a4c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (labeled_statement "LAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" * (cast_expression "(code *)PTR___stack_chk_fail_0006a574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return (local_2c + 0x2f) / 0x30;" return (binary_expression "(local_2c + 0x2f) / 0x30" (parenthesized_expression "(local_2c + 0x2f)" ( (binary_expression "local_2c + 0x2f" identifier + number_literal) )) / number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (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 (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (goto_statement goto statement_identifier ;) })) })) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) / LIT) ;) })))
(function_definition "uint ssh2_userkey_encrypted(undefined4 param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}" (type_identifier "uint") (function_declarator "ssh2_userkey_encrypted(undefined4 param_1,int *param_2)" (identifier "ssh2_userkey_encrypted") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  undefined1 auStack_54 [40];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(int *)PTR___stack_chk_guard_0006a594;\n  if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }\n  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);\n  if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }\n  iVar3 = FUN_00039050(iVar2,auStack_54);\n  if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }\nLAB_0003c190:\n  uVar5 = 0;\n  (*(code *)PTR_fclose_0006a4c8)(iVar2);\nLAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  return (local_2c + 0x2f) / 0x30;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined1 auStack_54 [40];" (type_identifier "undefined1") (array_declarator "auStack_54 [40]" (identifier "auStack_54") ([ "[") (number_literal "40") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0006a594" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_0006a594")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0006a594;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0006a594" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0006a594" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0006a594" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0006a594")))) (; ";")) (if_statement "if (param_2 != (int *)0x0) {\n    *param_2 = 0;\n  }" (if "if") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_2 = 0;\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);" (assignment_expression "iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" (identifier "iVar2") (= "=") (call_expression "f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" (identifier "f_open") (argument_list "(param_1,PTR_DAT_0006a068 + 0x6cc0,0)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_0006a068 + 0x6cc0" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x6cc0")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 0;\n    goto LAB_0003c1a4;\n  }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0003c1a4;" (goto "goto") (statement_identifier "LAB_0003c1a4") (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar3 = FUN_00039050(iVar2,auStack_54)" (identifier "iVar3") (= "=") (call_expression "FUN_00039050(iVar2,auStack_54)" (identifier "FUN_00039050") (argument_list "(iVar2,auStack_54)" (( "(") (identifier "iVar2") (, ",") (identifier "auStack_54") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);\n    if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }\n    iVar3 = FUN_00039114(iVar2);\n    if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0006a5c8" (* "*") (cast_expression "(code *)PTR_strcmp_0006a5c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0006a5c8"))) () ")")) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e44)" (( "(") (identifier "auStack_54") (, ",") (binary_expression "PTR_DAT_0006a068 + 0x6e44" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x6e44")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);\n      if (iVar3 != 0) goto LAB_0003c190;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0006a5c8" (* "*") (cast_expression "(code *)PTR_strcmp_0006a5c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0006a5c8"))) () ")")) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e5c)" (( "(") (identifier "auStack_54") (, ",") (binary_expression "PTR_DAT_0006a068 + 0x6e5c" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x6e5c")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_0003c190;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003c190;" (goto "goto") (statement_identifier "LAB_0003c190") (; ";"))) (} "}"))) (expression_statement "iVar3 = FUN_00039114(iVar2);" (assignment_expression "iVar3 = FUN_00039114(iVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_00039114(iVar2)" (identifier "FUN_00039114") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      safefree(iVar3);\n      iVar3 = FUN_00039050(iVar2,auStack_54);\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }\n    }" ({ "{") (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" (identifier "safefree") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar3 = FUN_00039050(iVar2,auStack_54)" (identifier "iVar3") (= "=") (call_expression "FUN_00039050(iVar2,auStack_54)" (identifier "FUN_00039050") (argument_list "(iVar2,auStack_54)" (( "(") (identifier "iVar2") (, ",") (identifier "auStack_54") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);\n        if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }\n      }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0006a5c8" (* "*") (cast_expression "(code *)PTR_strcmp_0006a5c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0006a5c8"))) () ")")) (argument_list "(auStack_54,PTR_DAT_0006a068 + 0x6e74)" (( "(") (identifier "auStack_54") (, ",") (binary_expression "PTR_DAT_0006a068 + 0x6e74" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x6e74")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar3 = FUN_00039114(iVar2);\n          if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }\n          goto LAB_0003c1a4;\n        }" ({ "{") (expression_statement "iVar3 = FUN_00039114(iVar2);" (assignment_expression "iVar3 = FUN_00039114(iVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_00039114(iVar2)" (identifier "FUN_00039114") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }\n          else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            uVar5 = 0;\n          }" ({ "{") (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" (( "(") (pointer_expression "*(code *)PTR_fclose_0006a4c8" (* "*") (cast_expression "(code *)PTR_fclose_0006a4c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fclose_0006a4c8"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" (else "else") (compound_statement "{\n            iVar4 = FUN_00039050(iVar2,auStack_54);\n            if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }\n            uVar5 = 1;\n            (*(code *)PTR_fclose_0006a4c8)(iVar2);\n            safefree(iVar3);\n          }" ({ "{") (expression_statement "iVar4 = FUN_00039050(iVar2,auStack_54);" (assignment_expression "iVar4 = FUN_00039050(iVar2,auStack_54)" (identifier "iVar4") (= "=") (call_expression "FUN_00039050(iVar2,auStack_54)" (identifier "FUN_00039050") (argument_list "(iVar2,auStack_54)" (( "(") (identifier "iVar2") (, ",") (identifier "auStack_54") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);\n              if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }\n            }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0006a5c8" (* "*") (cast_expression "(code *)PTR_strcmp_0006a5c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0006a5c8"))) () ")")) (argument_list "(auStack_54,PTR_DAT_0006a068 + -0x1b6c)" (( "(") (identifier "auStack_54") (, ",") (binary_expression "PTR_DAT_0006a068 + -0x1b6c" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "-0x1b6c")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                iVar4 = FUN_00039114(iVar2);\n                if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }\n              }" ({ "{") (expression_statement "iVar4 = FUN_00039114(iVar2);" (assignment_expression "iVar4 = FUN_00039114(iVar2)" (identifier "iVar4") (= "=") (call_expression "FUN_00039114(iVar2)" (identifier "FUN_00039114") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                  if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }\n                  (*(code *)PTR_fclose_0006a4c8)(iVar2);\n                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);\n                  uVar5 = (uint)(iVar2 == 0);\n                  safefree(iVar3);\n                  goto LAB_0003c1a4;\n                }" ({ "{") (if_statement "if (param_2 == (int *)0x0) {\n                    safefree(iVar4);\n                  }\n                  else {\n                    *param_2 = iVar4;\n                  }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    safefree(iVar4);\n                  }" ({ "{") (expression_statement "safefree(iVar4);" (call_expression "safefree(iVar4)" (identifier "safefree") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n                    *param_2 = iVar4;\n                  }" (else "else") (compound_statement "{\n                    *param_2 = iVar4;\n                  }" ({ "{") (expression_statement "*param_2 = iVar4;" (assignment_expression "*param_2 = iVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar4")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" (( "(") (pointer_expression "*(code *)PTR_fclose_0006a4c8" (* "*") (cast_expression "(code *)PTR_fclose_0006a4c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fclose_0006a4c8"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c)" (parenthesized_expression "(*(code *)PTR_strcmp_0006a5c8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0006a5c8" (* "*") (cast_expression "(code *)PTR_strcmp_0006a5c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0006a5c8"))) () ")")) (argument_list "(iVar3,PTR_DAT_0006a068 + -0x1c1c)" (( "(") (identifier "iVar3") (, ",") (binary_expression "PTR_DAT_0006a068 + -0x1c1c" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "-0x1c1c")) () ")")))) (; ";")) (expression_statement "uVar5 = (uint)(iVar2 == 0);" (assignment_expression "uVar5 = (uint)(iVar2 == 0)" (identifier "uVar5") (= "=") (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")))) (; ";")) (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" (identifier "safefree") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (goto_statement "goto LAB_0003c1a4;" (goto "goto") (statement_identifier "LAB_0003c1a4") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" (( "(") (pointer_expression "*(code *)PTR_fclose_0006a4c8" (* "*") (cast_expression "(code *)PTR_fclose_0006a4c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fclose_0006a4c8"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "safefree(iVar3);" (call_expression "safefree(iVar3)" (identifier "safefree") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_0003c1a4;" (goto "goto") (statement_identifier "LAB_0003c1a4") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0003c190:\n  uVar5 = 0;" (statement_identifier "LAB_0003c190") (: ":") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";"))) (expression_statement "(*(code *)PTR_fclose_0006a4c8)(iVar2);" (call_expression "(*(code *)PTR_fclose_0006a4c8)(iVar2)" (parenthesized_expression "(*(code *)PTR_fclose_0006a4c8)" (( "(") (pointer_expression "*(code *)PTR_fclose_0006a4c8" (* "*") (cast_expression "(code *)PTR_fclose_0006a4c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fclose_0006a4c8"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (labeled_statement "LAB_0003c1a4:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" (statement_identifier "LAB_0003c1a4") (: ":") (if_statement "if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar1)" (( "(") (binary_expression "local_2c == *(int *)puVar1" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return uVar5;\n  }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0006a574" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0006a574"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return (local_2c + 0x2f) / 0x30;" (return "return") (binary_expression "(local_2c + 0x2f) / 0x30" (parenthesized_expression "(local_2c + 0x2f)" (( "(") (binary_expression "local_2c + 0x2f" (identifier "local_2c") (+ "+") (number_literal "0x2f")) () ")")) (/ "/") (number_literal "0x30")) (; ";")) (} "}")))

int function_1(type_1 *filename,char **var_1)

{
  type_2 *puVar1;
  int var_10;
  type_3 *var_4;
  int var_6;
  char *var_8;
  char header [40];
  
  puVar1 = PTR___stack_chk_guard_0006a594;
  var_10 = *(int *)PTR___stack_chk_guard_0006a594;
  if (var_1 != (char **)0x0) {
    *var_1 = (char *)0x0;
  }
  var_4 = var_2(filename,var_3 + 0x6cc0,0);
  if (var_4 != (type_3 *)0x0) {
    var_6 = var_5(var_4,header);
    if ((var_6 != 0) &&
       (((var_6 = (*(type_4 *)PTR_strcmp_0006a5c8)(header,var_3 + 0x6e44), var_6 == 0
         || (var_6 = (*(type_4 *)PTR_strcmp_0006a5c8)(header,var_3 + 0x6e5c),
            var_6 == 0)) && (var_8 = var_7(var_4), var_8 != (char *)0x0)))) {
                    /* WARNING: Subroutine does not return */
      var_9(var_8);
    }
    (*(type_4 *)PTR_fclose_0006a4c8)(var_4);
  }
  if (var_10 != *(int *)puVar1) {
    (*(type_4 *)PTR___stack_chk_fail_0006a574)();
    return (var_10 + 0x2f) / 0x30;
  }
  return 0;
}


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

uint MASKED(undefined4 param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  undefined1 auStack_54 [40];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0006a594;
  local_2c = *(int *)PTR___stack_chk_guard_0006a594;
  if (param_2 != (int *)0x0) {
    *param_2 = 0;
  }
  iVar2 = f_open(param_1,PTR_DAT_0006a068 + 0x6cc0,0);
  if (iVar2 == 0) {
    uVar5 = 0;
    goto LAB_0003c1a4;
  }
  iVar3 = FUN_00039050(iVar2,auStack_54);
  if (iVar3 != 0) {
    iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e44);
    if (iVar3 != 0) {
      iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e5c);
      if (iVar3 != 0) goto LAB_0003c190;
    }
    iVar3 = FUN_00039114(iVar2);
    if (iVar3 != 0) {
      safefree(iVar3);
      iVar3 = FUN_00039050(iVar2,auStack_54);
      if (iVar3 != 0) {
        iVar3 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + 0x6e74);
        if (iVar3 == 0) {
          iVar3 = FUN_00039114(iVar2);
          if (iVar3 == 0) {
            (*(code *)PTR_fclose_0006a4c8)(iVar2);
            uVar5 = 0;
          }
          else {
            iVar4 = FUN_00039050(iVar2,auStack_54);
            if (iVar4 != 0) {
              iVar4 = (*(code *)PTR_strcmp_0006a5c8)(auStack_54,PTR_DAT_0006a068 + -0x1b6c);
              if (iVar4 == 0) {
                iVar4 = FUN_00039114(iVar2);
                if (iVar4 != 0) {
                  if (param_2 == (int *)0x0) {
                    safefree(iVar4);
                  }
                  else {
                    *param_2 = iVar4;
                  }
                  (*(code *)PTR_fclose_0006a4c8)(iVar2);
                  iVar2 = (*(code *)PTR_strcmp_0006a5c8)(iVar3,PTR_DAT_0006a068 + -0x1c1c);
                  uVar5 = (uint)(iVar2 == 0);
                  safefree(iVar3);
                  goto LAB_0003c1a4;
                }
              }
            }
            uVar5 = 1;
            (*(code *)PTR_fclose_0006a4c8)(iVar2);
            safefree(iVar3);
          }
          goto LAB_0003c1a4;
        }
      }
    }
  }
LAB_0003c190:
  uVar5 = 0;
  (*(code *)PTR_fclose_0006a4c8)(iVar2);
LAB_0003c1a4:
  if (local_2c == *(int *)puVar1) {
    return uVar5;
  }
  (*(code *)PTR___stack_chk_fail_0006a574)();
  return (local_2c + 0x2f) / 0x30;
}

