
FILE * f_open(Filename *filename,char *mode,int is_private)

{
  int iVar1;
  FILE *pFVar2;
  
  if (is_private == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);
    return pFVar2;
  }
  if (*mode == 'w') {
    iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);
    if (-1 < iVar1) {
                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);
      return pFVar2;
    }
    return (FILE *)0x0;
  }
  pFVar2 = (FILE *)(*(code *)PTR___assert_fail_000a7840)
                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,
                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,
                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);
  return pFVar2;
}



undefined4 f_open(undefined4 *param_1,char *param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_3 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);
    return uVar2;
  }
  if (*param_2 == 'w') {
    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);
    if (-1 < iVar1) {
                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);
      return uVar2;
    }
    return 0;
  }
  uVar2 = (*(code *)PTR___assert_fail_000a7840)
                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,
                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,
                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);
  return uVar2;
}


lui gp,0x4
addiu gp,gp,0x2db8
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a2,zero,0x0006c354
_sw s0,0x18(sp)
lb v1,0x0(a1)
li v0,0x77
bne v1,v0,0x0006c36c
_or s0,a1,zero
lw t9,-0x7128(gp)
li a2,0x180
lw a0,0x0(a0)
jalr t9
_li a1,0x301
bltz v0,0x0006c340
_lw gp,0x10(sp)
lw ra,0x1c(sp)
or a1,s0,zero
lw t9,-0x774c(gp)
or a0,v0,zero
lw s0,0x18(sp)
jr t9
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw a0,0x0(a0)
lw t9,-0x71cc(gp)
jr t9
_addiu sp,sp,0x20
lw a3,-0x7fb8(gp)
li a2,0xfe
lw a1,-0x7fb8(gp)
lw a0,-0x7fb8(gp)
lw t9,-0x7850(gp)
addiu a3,a3,0x13c0
addiu a1,a1,0x130c
jalr t9
_addiu a0,a0,0x131c
(translation_unit "undefined4 f_open(undefined4 *param_1,char *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}\n\n" (function_definition "undefined4 f_open(undefined4 *param_1,char *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}" type_identifier (function_declarator "f_open(undefined4 *param_1,char *param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_3 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }" { comment comment (expression_statement "uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);" (assignment_expression "uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1)" identifier = (call_expression "(*(code *)PTR_fopen64_000a7ec4)(*param_1)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" ( (pointer_expression "*(code *)PTR_fopen64_000a7ec4" * (cast_expression "(code *)PTR_fopen64_000a7ec4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "(*param_2 == 'w')" ( (binary_expression "*param_2 == 'w'" (pointer_expression "*param_2" * identifier) == (char_literal "'w'" ' character ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);" (assignment_expression "iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180)" identifier = (call_expression "(*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180)" (parenthesized_expression "(*(code *)PTR_open64_000a7f68)" ( (pointer_expression "*(code *)PTR_open64_000a7f68" * (cast_expression "(code *)PTR_open64_000a7f68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1,0x301,0x180)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal )))) ;) (if_statement "if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }" { comment comment (expression_statement "uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);" (assignment_expression "uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2)" identifier = (call_expression "(*(code *)PTR_fdopen_000a7944)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_fdopen_000a7944)" ( (pointer_expression "*(code *)PTR_fdopen_000a7944" * (cast_expression "(code *)PTR_fdopen_000a7944" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2)" ( identifier , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" identifier = (call_expression "(*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000a7840)" ( (pointer_expression "*(code *)PTR___assert_fail_000a7840" * (cast_expression "(code *)PTR___assert_fail_000a7840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c" identifier + number_literal) , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "FILE * f_open(Filename *filename,char *mode,int is_private)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  \n  if (is_private == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);\n    return pFVar2;\n  }\n  if (*mode == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }\n    return (FILE *)0x0;\n  }\n  pFVar2 = (FILE *)(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return pFVar2;\n}\n\n" (function_definition "FILE * f_open(Filename *filename,char *mode,int is_private)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  \n  if (is_private == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);\n    return pFVar2;\n  }\n  if (*mode == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }\n    return (FILE *)0x0;\n  }\n  pFVar2 = (FILE *)(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return pFVar2;\n}" type_identifier (pointer_declarator "* f_open(Filename *filename,char *mode,int is_private)" * (function_declarator "f_open(Filename *filename,char *mode,int is_private)" identifier (parameter_list "(Filename *filename,char *mode,int is_private)" ( (parameter_declaration "Filename *filename" type_identifier (pointer_declarator "*filename" * identifier)) , (parameter_declaration "char *mode" primitive_type (pointer_declarator "*mode" * identifier)) , (parameter_declaration "int is_private" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  FILE *pFVar2;\n  \n  if (is_private == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);\n    return pFVar2;\n  }\n  if (*mode == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }\n    return (FILE *)0x0;\n  }\n  pFVar2 = (FILE *)(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return pFVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (if_statement "if (is_private == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);\n    return pFVar2;\n  }" if (parenthesized_expression "(is_private == 0)" ( (binary_expression "is_private == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);\n    return pFVar2;\n  }" { comment comment (expression_statement "pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path);" (assignment_expression "pFVar2 = (FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path)" identifier = (cast_expression "(FILE *)(*(code *)PTR_fopen64_000a7ec4)(filename->path)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_fopen64_000a7ec4)(filename->path)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" ( (pointer_expression "*(code *)PTR_fopen64_000a7ec4" * (cast_expression "(code *)PTR_fopen64_000a7ec4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename->path)" ( (field_expression "filename->path" identifier -> field_identifier) ))))) ;) (return_statement "return pFVar2;" return identifier ;) })) (if_statement "if (*mode == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }\n    return (FILE *)0x0;\n  }" if (parenthesized_expression "(*mode == 'w')" ( (binary_expression "*mode == 'w'" (pointer_expression "*mode" * identifier) == (char_literal "'w'" ' character ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);\n    if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }\n    return (FILE *)0x0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180);" (assignment_expression "iVar1 = (*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180)" identifier = (call_expression "(*(code *)PTR_open64_000a7f68)(filename->path,0x301,0x180)" (parenthesized_expression "(*(code *)PTR_open64_000a7f68)" ( (pointer_expression "*(code *)PTR_open64_000a7f68" * (cast_expression "(code *)PTR_open64_000a7f68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename->path,0x301,0x180)" ( (field_expression "filename->path" identifier -> field_identifier) , number_literal , number_literal )))) ;) (if_statement "if (-1 < iVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);\n      return pFVar2;\n    }" { comment comment (expression_statement "pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode);" (assignment_expression "pFVar2 = (FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode)" identifier = (cast_expression "(FILE *)(*(code *)PTR_fdopen_000a7944)(iVar1,mode)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_fdopen_000a7944)(iVar1,mode)" (parenthesized_expression "(*(code *)PTR_fdopen_000a7944)" ( (pointer_expression "*(code *)PTR_fdopen_000a7944" * (cast_expression "(code *)PTR_fdopen_000a7944" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,mode)" ( identifier , identifier ))))) ;) (return_statement "return pFVar2;" return identifier ;) })) (return_statement "return (FILE *)0x0;" return (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pFVar2 = (FILE *)(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);" (assignment_expression "pFVar2 = (FILE *)(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" identifier = (cast_expression "(FILE *)(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000a7840)\n                             (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000a7840)" ( (pointer_expression "*(code *)PTR___assert_fail_000a7840" * (cast_expression "(code *)PTR___assert_fail_000a7840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                              PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c" identifier + number_literal) , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0" identifier + number_literal) ))))) ;) (return_statement "return pFVar2;" return identifier ;) })))
(translation_unit "undefined4 f_open(undefined4 *param_1,char *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}\n\n" (function_definition "undefined4 f_open(undefined4 *param_1,char *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}" type_identifier (function_declarator "f_open(undefined4 *param_1,char *param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);" (assignment_expression "uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1)" identifier = (call_expression "(*(code *)PTR_fopen64_000a7ec4)(*param_1)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" ( (pointer_expression "*(code *)PTR_fopen64_000a7ec4" * (cast_expression "(code *)PTR_fopen64_000a7ec4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "(*param_2 == 'w')" ( (binary_expression "*param_2 == 'w'" (pointer_expression "*param_2" * identifier) == (char_literal "'w'" ' character ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);" (assignment_expression "iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180)" identifier = (call_expression "(*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180)" (parenthesized_expression "(*(code *)PTR_open64_000a7f68)" ( (pointer_expression "*(code *)PTR_open64_000a7f68" * (cast_expression "(code *)PTR_open64_000a7f68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1,0x301,0x180)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal )))) ;) (if_statement "if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }" { (expression_statement "uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);" (assignment_expression "uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2)" identifier = (call_expression "(*(code *)PTR_fdopen_000a7944)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_fdopen_000a7944)" ( (pointer_expression "*(code *)PTR_fdopen_000a7944" * (cast_expression "(code *)PTR_fdopen_000a7944" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2)" ( identifier , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" identifier = (call_expression "(*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000a7840)" ( (pointer_expression "*(code *)PTR___assert_fail_000a7840" * (cast_expression "(code *)PTR___assert_fail_000a7840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c" identifier + number_literal) , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 ( (pointer_expression * IDENT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (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 , IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 f_open(undefined4 *param_1,char *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "f_open(undefined4 *param_1,char *param_2,int param_3)" (identifier "f_open") (parameter_list "(undefined4 *param_1,char *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }\n  if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_3 == 0) {\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);" (assignment_expression "uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_fopen64_000a7ec4)(*param_1)" (parenthesized_expression "(*(code *)PTR_fopen64_000a7ec4)" (( "(") (pointer_expression "*(code *)PTR_fopen64_000a7ec4" (* "*") (cast_expression "(code *)PTR_fopen64_000a7ec4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fopen64_000a7ec4"))) () ")")) (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (*param_2 == 'w') {\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_2 == 'w')" (( "(") (binary_expression "*param_2 == 'w'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'w'" (' "'") (character "w") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);\n    if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }\n    return 0;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);" (assignment_expression "iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180)" (parenthesized_expression "(*(code *)PTR_open64_000a7f68)" (( "(") (pointer_expression "*(code *)PTR_open64_000a7f68" (* "*") (cast_expression "(code *)PTR_open64_000a7f68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open64_000a7f68"))) () ")")) (argument_list "(*param_1,0x301,0x180)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0x301") (, ",") (number_literal "0x180") () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n                    \n                    \n      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);" (assignment_expression "uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_fdopen_000a7944)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_fdopen_000a7944)" (( "(") (pointer_expression "*(code *)PTR_fdopen_000a7944" (* "*") (cast_expression "(code *)PTR_fdopen_000a7944" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fdopen_000a7944"))) () ")")) (argument_list "(iVar1,param_2)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_000a7840)\n                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000a7840)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000a7840" (* "*") (cast_expression "(code *)PTR___assert_fail_000a7840" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000a7840"))) () ")")) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,\n                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x131c")) (, ",") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x130c")) (, ",") (number_literal "0xfe") (, ",") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x13c0")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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 (pointer_expression argument: (identifier)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) 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 (pointer_expression argument: (identifier)) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) 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) (identifier))))) (return_statement (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 *param_1,char *param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_3 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006c364. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (*(code *)PTR_fopen64_000a7ec4)(*param_1);
    return uVar2;
  }
  if (*param_2 == 'w') {
    iVar1 = (*(code *)PTR_open64_000a7f68)(*param_1,0x301,0x180);
    if (-1 < iVar1) {
                    /* WARNING: Could not recover jumptable at 0x0006c338. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (*(code *)PTR_fdopen_000a7944)(iVar1,param_2);
      return uVar2;
    }
    return 0;
  }
  uVar2 = (*(code *)PTR___assert_fail_000a7840)
                    (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x131c,
                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x130c,0xfe,
                     PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x13c0);
  return uVar2;
}

