
bfd_boolean
ar_emul_default_replace(bfd **after_bfd,char *file_name,char *target,bfd_boolean verbose)

{
  bfd *pbVar1;
  
  pbVar1 = (bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target);
  if (pbVar1 == (bfd *)0x0) {
                    /* WARNING: Subroutine does not return */
    bfd_fatal(file_name);
  }
  if (verbose == 0) {
    pbVar1->archive_next = *after_bfd;
    *after_bfd = pbVar1;
    return 1;
  }
  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,file_name);
  pbVar1->archive_next = *after_bfd;
  *after_bfd = pbVar1;
  return 1;
}



undefined4 FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  undefined4 uVar2;
  undefined *puVar3;
  
  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);
  if (iVar1 == 0) {
    puVar3 = PTR_bfd_fatal_0002f11c;
    bfd_fatal(param_2);
    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();
      return uVar2;
    }
    return 0;
  }
  if (param_4 == 0) {
    *(int *)(iVar1 + 0x98) = *param_1;
    *param_1 = iVar1;
    return 1;
  }
  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);
  *(int *)(iVar1 + 0x98) = *param_1;
  *param_1 = iVar1;
  return 1;
}


lui gp,0x2
addiu gp,gp,-0x1968
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7d20(gp)
sw s2,0x24(sp)
or s2,a1,zero
sw gp,0x10(sp)
or a1,a2,zero
sw s3,0x28(sp)
or s3,a3,zero
sw s1,0x20(sp)
or s1,a0,zero
sw ra,0x2c(sp)
or a0,s2,zero
jalr t9
_sw s0,0x1c(sp)
beq v0,zero,0x00018ad8
_lw gp,0x10(sp)
bne s3,zero,0x00018a98
_or s0,v0,zero
lw v1,0x0(s1)
li v0,0x1
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
sw v1,0x98(s0)
sw s0,0x0(s1)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw a0,-0x7fc8(gp)
or a1,s2,zero
lw t9,-0x7cf0(gp)
jalr t9
_addiu a0,a0,-0x240c
li v0,0x1
lw v1,0x0(s1)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
sw v1,0x98(s0)
sw s0,0x0(s1)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7f94(gp)
bal 0x00018fbc
_or a0,s2,zero
(translation_unit "undefined4 FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}" type_identifier (function_declarator "FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3)" identifier = (call_expression "(*(code *)PTR_bfd_openr_0002f390)(param_2,param_3)" (parenthesized_expression "(*(code *)PTR_bfd_openr_0002f390)" ( (pointer_expression "*(code *)PTR_bfd_openr_0002f390" * (cast_expression "(code *)PTR_bfd_openr_0002f390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }" { (expression_statement "puVar3 = PTR_bfd_fatal_0002f11c;" (assignment_expression "puVar3 = PTR_bfd_fatal_0002f11c" identifier = identifier) ;) (expression_statement "bfd_fatal(param_2);" (call_expression "bfd_fatal(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0)" ( (binary_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0" (pointer_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" * (cast_expression "(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (binary_expression "*(int *)(puVar3 + 0x1671c) + 0xc" (pointer_expression "*(int *)(puVar3 + 0x1671c)" * (cast_expression "(int *)(puVar3 + 0x1671c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1671c)" ( (binary_expression "puVar3 + 0x1671c" identifier + number_literal) )))) + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }" { comment comment (expression_statement "uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();" (assignment_expression "uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))()" identifier = (call_expression "(**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))()" (parenthesized_expression "(**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))" ( (pointer_expression "**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" * (pointer_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" * (cast_expression "(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (binary_expression "*(int *)(puVar3 + 0x1671c) + 0xc" (pointer_expression "*(int *)(puVar3 + 0x1671c)" * (cast_expression "(int *)(puVar3 + 0x1671c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1671c)" ( (binary_expression "puVar3 + 0x1671c" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }" { (expression_statement "*(int *)(iVar1 + 0x98) = *param_1;" (assignment_expression "*(int *)(iVar1 + 0x98) = *param_1" (pointer_expression "*(int *)(iVar1 + 0x98)" * (cast_expression "(int *)(iVar1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x98)" ( (binary_expression "iVar1 + 0x98" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);" (call_expression "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2)" (parenthesized_expression "(*(code *)PTR_printf_0002f3c0)" ( (pointer_expression "*(code *)PTR_printf_0002f3c0" * (cast_expression "(code *)PTR_printf_0002f3c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0002f0e8 + -0x240c,param_2)" ( (binary_expression "PTR_DAT_0002f0e8 + -0x240c" identifier + number_literal) , identifier ))) ;) (expression_statement "*(int *)(iVar1 + 0x98) = *param_1;" (assignment_expression "*(int *)(iVar1 + 0x98) = *param_1" (pointer_expression "*(int *)(iVar1 + 0x98)" * (cast_expression "(int *)(iVar1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x98)" ( (binary_expression "iVar1 + 0x98" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bfd_boolean\nar_emul_default_replace(bfd **after_bfd,char *file_name,char *target,bfd_boolean verbose)\n\n{\n  bfd *pbVar1;\n  \n  pbVar1 = (bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target);\n  if (pbVar1 == (bfd *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(file_name);\n  }\n  if (verbose == 0) {\n    pbVar1->archive_next = *after_bfd;\n    *after_bfd = pbVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,file_name);\n  pbVar1->archive_next = *after_bfd;\n  *after_bfd = pbVar1;\n  return 1;\n}\n\n" (function_definition "bfd_boolean\nar_emul_default_replace(bfd **after_bfd,char *file_name,char *target,bfd_boolean verbose)\n\n{\n  bfd *pbVar1;\n  \n  pbVar1 = (bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target);\n  if (pbVar1 == (bfd *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(file_name);\n  }\n  if (verbose == 0) {\n    pbVar1->archive_next = *after_bfd;\n    *after_bfd = pbVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,file_name);\n  pbVar1->archive_next = *after_bfd;\n  *after_bfd = pbVar1;\n  return 1;\n}" type_identifier (function_declarator "ar_emul_default_replace(bfd **after_bfd,char *file_name,char *target,bfd_boolean verbose)" identifier (parameter_list "(bfd **after_bfd,char *file_name,char *target,bfd_boolean verbose)" ( (parameter_declaration "bfd **after_bfd" type_identifier (pointer_declarator "**after_bfd" * (pointer_declarator "*after_bfd" * identifier))) , (parameter_declaration "char *file_name" primitive_type (pointer_declarator "*file_name" * identifier)) , (parameter_declaration "char *target" primitive_type (pointer_declarator "*target" * identifier)) , (parameter_declaration "bfd_boolean verbose" type_identifier identifier) ))) (compound_statement "{\n  bfd *pbVar1;\n  \n  pbVar1 = (bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target);\n  if (pbVar1 == (bfd *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(file_name);\n  }\n  if (verbose == 0) {\n    pbVar1->archive_next = *after_bfd;\n    *after_bfd = pbVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,file_name);\n  pbVar1->archive_next = *after_bfd;\n  *after_bfd = pbVar1;\n  return 1;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (expression_statement "pbVar1 = (bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target);" (assignment_expression "pbVar1 = (bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target)" identifier = (cast_expression "(bfd *)(*(code *)PTR_bfd_openr_0002f390)(file_name,target)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_bfd_openr_0002f390)(file_name,target)" (parenthesized_expression "(*(code *)PTR_bfd_openr_0002f390)" ( (pointer_expression "*(code *)PTR_bfd_openr_0002f390" * (cast_expression "(code *)PTR_bfd_openr_0002f390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file_name,target)" ( identifier , identifier ))))) ;) (if_statement "if (pbVar1 == (bfd *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(file_name);\n  }" if (parenthesized_expression "(pbVar1 == (bfd *)0x0)" ( (binary_expression "pbVar1 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(file_name);\n  }" { comment (expression_statement "bfd_fatal(file_name);" (call_expression "bfd_fatal(file_name)" identifier (argument_list "(file_name)" ( identifier ))) ;) })) (if_statement "if (verbose == 0) {\n    pbVar1->archive_next = *after_bfd;\n    *after_bfd = pbVar1;\n    return 1;\n  }" if (parenthesized_expression "(verbose == 0)" ( (binary_expression "verbose == 0" identifier == number_literal) )) (compound_statement "{\n    pbVar1->archive_next = *after_bfd;\n    *after_bfd = pbVar1;\n    return 1;\n  }" { (expression_statement "pbVar1->archive_next = *after_bfd;" (assignment_expression "pbVar1->archive_next = *after_bfd" (field_expression "pbVar1->archive_next" identifier -> field_identifier) = (pointer_expression "*after_bfd" * identifier)) ;) (expression_statement "*after_bfd = pbVar1;" (assignment_expression "*after_bfd = pbVar1" (pointer_expression "*after_bfd" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,file_name);" (call_expression "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,file_name)" (parenthesized_expression "(*(code *)PTR_printf_0002f3c0)" ( (pointer_expression "*(code *)PTR_printf_0002f3c0" * (cast_expression "(code *)PTR_printf_0002f3c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0002f0e8 + -0x240c,file_name)" ( (binary_expression "PTR_DAT_0002f0e8 + -0x240c" identifier + number_literal) , identifier ))) ;) (expression_statement "pbVar1->archive_next = *after_bfd;" (assignment_expression "pbVar1->archive_next = *after_bfd" (field_expression "pbVar1->archive_next" identifier -> field_identifier) = (pointer_expression "*after_bfd" * identifier)) ;) (expression_statement "*after_bfd = pbVar1;" (assignment_expression "*after_bfd = pbVar1" (pointer_expression "*after_bfd" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}" type_identifier (function_declarator "FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3)" identifier = (call_expression "(*(code *)PTR_bfd_openr_0002f390)(param_2,param_3)" (parenthesized_expression "(*(code *)PTR_bfd_openr_0002f390)" ( (pointer_expression "*(code *)PTR_bfd_openr_0002f390" * (cast_expression "(code *)PTR_bfd_openr_0002f390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }" { (expression_statement "puVar3 = PTR_bfd_fatal_0002f11c;" (assignment_expression "puVar3 = PTR_bfd_fatal_0002f11c" identifier = identifier) ;) (expression_statement "bfd_fatal(param_2);" (call_expression "bfd_fatal(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (if_statement "if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0)" ( (binary_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0" (pointer_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" * (cast_expression "(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (binary_expression "*(int *)(puVar3 + 0x1671c) + 0xc" (pointer_expression "*(int *)(puVar3 + 0x1671c)" * (cast_expression "(int *)(puVar3 + 0x1671c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1671c)" ( (binary_expression "puVar3 + 0x1671c" identifier + number_literal) )))) + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }" { (expression_statement "uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();" (assignment_expression "uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))()" identifier = (call_expression "(**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))()" (parenthesized_expression "(**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))" ( (pointer_expression "**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" * (pointer_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" * (cast_expression "(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar3 + 0x1671c) + 0xc)" ( (binary_expression "*(int *)(puVar3 + 0x1671c) + 0xc" (pointer_expression "*(int *)(puVar3 + 0x1671c)" * (cast_expression "(int *)(puVar3 + 0x1671c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1671c)" ( (binary_expression "puVar3 + 0x1671c" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }" { (expression_statement "*(int *)(iVar1 + 0x98) = *param_1;" (assignment_expression "*(int *)(iVar1 + 0x98) = *param_1" (pointer_expression "*(int *)(iVar1 + 0x98)" * (cast_expression "(int *)(iVar1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x98)" ( (binary_expression "iVar1 + 0x98" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);" (call_expression "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2)" (parenthesized_expression "(*(code *)PTR_printf_0002f3c0)" ( (pointer_expression "*(code *)PTR_printf_0002f3c0" * (cast_expression "(code *)PTR_printf_0002f3c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0002f0e8 + -0x240c,param_2)" ( (binary_expression "PTR_DAT_0002f0e8 + -0x240c" identifier + number_literal) , identifier ))) ;) (expression_statement "*(int *)(iVar1 + 0x98) = *param_1;" (assignment_expression "*(int *)(iVar1 + 0x98) = *param_1" (pointer_expression "*(int *)(iVar1 + 0x98)" * (cast_expression "(int *)(iVar1 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x98)" ( (binary_expression "iVar1 + 0x98" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00018a18(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00018a18") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);\n  if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }\n  if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }\n  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);\n  *(int *)(iVar1 + 0x98) = *param_1;\n  *param_1 = iVar1;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_bfd_openr_0002f390)(param_2,param_3)" (parenthesized_expression "(*(code *)PTR_bfd_openr_0002f390)" (( "(") (pointer_expression "*(code *)PTR_bfd_openr_0002f390" (* "*") (cast_expression "(code *)PTR_bfd_openr_0002f390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_openr_0002f390"))) () ")")) (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar3 = PTR_bfd_fatal_0002f11c;\n    bfd_fatal(param_2);\n    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }\n    return 0;\n  }" ({ "{") (expression_statement "puVar3 = PTR_bfd_fatal_0002f11c;" (assignment_expression "puVar3 = PTR_bfd_fatal_0002f11c" (identifier "puVar3") (= "=") (identifier "PTR_bfd_fatal_0002f11c")) (; ";")) (expression_statement "bfd_fatal(param_2);" (call_expression "bfd_fatal(param_2)" (identifier "bfd_fatal") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0)" (( "(") (binary_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0" (pointer_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" (* "*") (cast_expression "(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(puVar3 + 0x1671c) + 0xc)" (( "(") (binary_expression "*(int *)(puVar3 + 0x1671c) + 0xc" (pointer_expression "*(int *)(puVar3 + 0x1671c)" (* "*") (cast_expression "(int *)(puVar3 + 0x1671c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x1671c)" (( "(") (binary_expression "puVar3 + 0x1671c" (identifier "puVar3") (+ "+") (number_literal "0x1671c")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n                    \n      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();" (assignment_expression "uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))()" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))()" (parenthesized_expression "(**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))" (( "(") (pointer_expression "**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" (* "*") (pointer_expression "*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" (* "*") (cast_expression "(code **)(*(int *)(puVar3 + 0x1671c) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(puVar3 + 0x1671c) + 0xc)" (( "(") (binary_expression "*(int *)(puVar3 + 0x1671c) + 0xc" (pointer_expression "*(int *)(puVar3 + 0x1671c)" (* "*") (cast_expression "(int *)(puVar3 + 0x1671c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x1671c)" (( "(") (binary_expression "puVar3 + 0x1671c" (identifier "puVar3") (+ "+") (number_literal "0x1671c")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(iVar1 + 0x98) = *param_1;\n    *param_1 = iVar1;\n    return 1;\n  }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x98) = *param_1;" (assignment_expression "*(int *)(iVar1 + 0x98) = *param_1" (pointer_expression "*(int *)(iVar1 + 0x98)" (* "*") (cast_expression "(int *)(iVar1 + 0x98)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x98)" (( "(") (binary_expression "iVar1 + 0x98" (identifier "iVar1") (+ "+") (number_literal "0x98")) () ")")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);" (call_expression "(*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2)" (parenthesized_expression "(*(code *)PTR_printf_0002f3c0)" (( "(") (pointer_expression "*(code *)PTR_printf_0002f3c0" (* "*") (cast_expression "(code *)PTR_printf_0002f3c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_printf_0002f3c0"))) () ")")) (argument_list "(PTR_DAT_0002f0e8 + -0x240c,param_2)" (( "(") (binary_expression "PTR_DAT_0002f0e8 + -0x240c" (identifier "PTR_DAT_0002f0e8") (+ "+") (number_literal "-0x240c")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x98) = *param_1;" (assignment_expression "*(int *)(iVar1 + 0x98) = *param_1" (pointer_expression "*(int *)(iVar1 + 0x98)" (* "*") (cast_expression "(int *)(iVar1 + 0x98)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x98)" (( "(") (binary_expression "iVar1 + 0x98" (identifier "iVar1") (+ "+") (number_literal "0x98")) () ")")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1
function_1(type_2 **after_bfd,char *file_name,char *target,type_1 var_3)

{
  type_2 *var_1;
  
  var_1 = (type_2 *)(*(type_3 *)PTR_bfd_openr_0002f390)(file_name,target);
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2(file_name);
  }
  if (var_3 == 0) {
    var_1->archive_next = *after_bfd;
    *after_bfd = var_1;
    return 1;
  }
  (*(type_3 *)PTR_printf_0002f3c0)(var_4 + -0x240c,file_name);
  var_1->archive_next = *after_bfd;
  *after_bfd = var_1;
  return 1;
}


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

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

{
  int iVar1;
  undefined4 uVar2;
  undefined *puVar3;
  
  iVar1 = (*(code *)PTR_bfd_openr_0002f390)(param_2,param_3);
  if (iVar1 == 0) {
    puVar3 = PTR_bfd_fatal_0002f11c;
    bfd_fatal(param_2);
    if (*(code **)(*(int *)(puVar3 + 0x1671c) + 0xc) != (code *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00018b00. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*(int *)(puVar3 + 0x1671c) + 0xc))();
      return uVar2;
    }
    return 0;
  }
  if (param_4 == 0) {
    *(int *)(iVar1 + 0x98) = *param_1;
    *param_1 = iVar1;
    return 1;
  }
  (*(code *)PTR_printf_0002f3c0)(PTR_DAT_0002f0e8 + -0x240c,param_2);
  *(int *)(iVar1 + 0x98) = *param_1;
  *param_1 = iVar1;
  return 1;
}

