
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 display_bfd(bfd *abfd)

{
  int iVar1;
  char **matching;
  
  matching = (char **)0x120fa;
  iVar1 = bfd_check_format(abfd,2);
  if (iVar1 == 0) {
    iVar1 = bfd_check_format_matches(abfd,1,&matching);
    if (iVar1 != 0) {
      print_sizes(abfd);
      putchar(10);
      return;
    }
    iVar1 = bfd_get_error();
    if (iVar1 == 0xd) {
      bfd_nonfatal(abfd->filename);
      list_matching_formats(matching);
      free(matching);
      return_code = 3;
    }
    else {
      iVar1 = bfd_check_format_matches(abfd,3,&matching);
      if (iVar1 == 0) {
        bfd_nonfatal(abfd->filename);
        iVar1 = bfd_get_error();
        if (iVar1 == 0xd) {
          list_matching_formats(matching);
          free(matching);
        }
        return_code = 3;
        return;
      }
      print_sizes(abfd);
      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);
      iVar1 = bfd_core_file_failing_command(abfd);
      if (iVar1 != 0) {
        printf(" invoked as %s",iVar1);
      }
      puts(")\n");
    }
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_000120f0(undefined4 *param_1)

{
  int iVar1;
  void *local_10;
  
  local_10 = (void *)0x120fa;
  iVar1 = bfd_check_format(param_1,2);
  if (iVar1 == 0) {
    iVar1 = bfd_check_format_matches(param_1,1,&local_10);
    if (iVar1 != 0) {
      FUN_00011cf0();
      putchar(10);
      return;
    }
    iVar1 = bfd_get_error();
    if (iVar1 == 0xd) {
      FUN_000124c0(*param_1);
      FUN_00012840(local_10);
      free(local_10);
      DAT_00019210 = 3;
    }
    else {
      iVar1 = bfd_check_format_matches(param_1,3,&local_10);
      if (iVar1 == 0) {
        FUN_000124c0(*param_1);
        iVar1 = bfd_get_error();
        if (iVar1 == 0xd) {
          FUN_00012840(local_10);
          free(local_10);
        }
        DAT_00019210 = 3;
        return;
      }
      FUN_00011cf0();
      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);
      iVar1 = bfd_core_file_failing_command(param_1);
      if (iVar1 != 0) {
        printf(" invoked as %s",iVar1);
      }
      puts(")\n");
    }
  }
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00011870
ADD EBX,0x6f06
SUB ESP,0x18
PUSH 0x2
PUSH EAX
CALL 0x00011410
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00012120
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EDI,[ESP + 0x10]
PUSH EDI
PUSH 0x1
PUSH ESI
CALL 0x000113e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000121f0
CALL 0x00011170
CMP EAX,0xd
JZ 0x00012210
SUB ESP,0x4
PUSH EDI
PUSH 0x3
PUSH ESI
CALL 0x000113e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00012190
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x000124c0
CALL 0x00011170
ADD ESP,0x10
CMP EAX,0xd
JZ 0x00012240
MOV dword ptr [EBX + 0x210],0x3
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,ESI
CALL 0x00011cf0
MOV EAX,dword ptr [EBX + 0xfffffff0]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xffffc41a]
PUSH 0xb
PUSH 0x1
PUSH EAX
CALL 0x00011190
MOV dword ptr [ESP],ESI
CALL 0x00011050
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000121d1
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffffc426]
PUSH EAX
CALL 0x00011060
ADD ESP,0x10
SUB ESP,0xc
LEA EAX,[EBX + 0xffffc47c]
PUSH EAX
CALL 0x00011240
ADD ESP,0x10
JMP 0x00012112
MOV EAX,ESI
CALL 0x00011cf0
SUB ESP,0xc
PUSH 0xa
CALL 0x00011310
ADD ESP,0x10
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x000124c0
POP EDX
PUSH dword ptr [ESP + 0x18]
CALL 0x00012840
POP ECX
PUSH dword ptr [ESP + 0x18]
CALL 0x000110b0
ADD ESP,0x10
MOV dword ptr [EBX + 0x210],0x3
JMP 0x00012112
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00012840
POP EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x000110b0
ADD ESP,0x10
JMP 0x00012177
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000120f0(undefined4 *param_1)\n\n{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000120f0(undefined4 *param_1)\n\n{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000120f0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (void *)0x120fa;" (assignment_expression "local_10 = (void *)0x120fa" identifier = (cast_expression "(void *)0x120fa" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = bfd_check_format(param_1,2);" (assignment_expression "iVar1 = bfd_check_format(param_1,2)" identifier = (call_expression "bfd_check_format(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" { (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,&local_10);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,&local_10)" identifier = (call_expression "bfd_check_format_matches(param_1,1,&local_10)" identifier (argument_list "(param_1,1,&local_10)" ( identifier , number_literal , (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }" { (expression_statement "FUN_00011cf0();" (call_expression "FUN_00011cf0()" identifier (argument_list "()" ( ))) ;) (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }" { (expression_statement "FUN_000124c0(*param_1);" (call_expression "FUN_000124c0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "FUN_00012840(local_10);" (call_expression "FUN_00012840(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "free(local_10);" (call_expression "free(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "DAT_00019210 = 3;" (assignment_expression "DAT_00019210 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" else (compound_statement "{\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" { (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,&local_10);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,&local_10)" identifier = (call_expression "bfd_check_format_matches(param_1,3,&local_10)" identifier (argument_list "(param_1,3,&local_10)" ( identifier , number_literal , (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }" { (expression_statement "FUN_000124c0(*param_1);" (call_expression "FUN_000124c0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n          FUN_00012840(local_10);\n          free(local_10);\n        }" { (expression_statement "FUN_00012840(local_10);" (call_expression "FUN_00012840(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "free(local_10);" (call_expression "free(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) })) (expression_statement "DAT_00019210 = 3;" (assignment_expression "DAT_00019210 = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00011cf0();" (call_expression "FUN_00011cf0()" identifier (argument_list "()" ( ))) ;) (expression_statement "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);" (call_expression "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" identifier (argument_list "(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" ( (string_literal "" (core file"" " string_content ") , number_literal , number_literal , (pointer_expression "*(FILE **)PTR_stdout_00018ff0" * (cast_expression "(FILE **)PTR_stdout_00018ff0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "iVar1 = bfd_core_file_failing_command(param_1);" (assignment_expression "iVar1 = bfd_core_file_failing_command(param_1)" identifier = (call_expression "bfd_core_file_failing_command(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        printf(" invoked as %s",iVar1);\n      }" { (expression_statement "printf(" invoked as %s",iVar1);" (call_expression "printf(" invoked as %s",iVar1)" identifier (argument_list "(" invoked as %s",iVar1)" ( (string_literal "" invoked as %s"" " string_content ") , identifier ))) ;) })) (expression_statement "puts(")\n");" (call_expression "puts(")\n")" identifier (argument_list "(")\n")" ( (string_literal "")\n"" " string_content escape_sequence ") ))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 display_bfd(bfd *abfd)\n\n{\n  int iVar1;\n  char **matching;\n  \n  matching = (char **)0x120fa;\n  iVar1 = bfd_check_format(abfd,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(abfd,1,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 display_bfd(bfd *abfd)\n\n{\n  int iVar1;\n  char **matching;\n  \n  matching = (char **)0x120fa;\n  iVar1 = bfd_check_format(abfd,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(abfd,1,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "display_bfd(bfd *abfd)" identifier (parameter_list "(bfd *abfd)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char **matching;\n  \n  matching = (char **)0x120fa;\n  iVar1 = bfd_check_format(abfd,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(abfd,1,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **matching;" primitive_type (pointer_declarator "**matching" * (pointer_declarator "*matching" * identifier)) ;) (expression_statement "matching = (char **)0x120fa;" (assignment_expression "matching = (char **)0x120fa" identifier = (cast_expression "(char **)0x120fa" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "iVar1 = bfd_check_format(abfd,2);" (assignment_expression "iVar1 = bfd_check_format(abfd,2)" identifier = (call_expression "bfd_check_format(abfd,2)" identifier (argument_list "(abfd,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(abfd,1,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_check_format_matches(abfd,1,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" { (expression_statement "iVar1 = bfd_check_format_matches(abfd,1,&matching);" (assignment_expression "iVar1 = bfd_check_format_matches(abfd,1,&matching)" identifier = (call_expression "bfd_check_format_matches(abfd,1,&matching)" identifier (argument_list "(abfd,1,&matching)" ( identifier , number_literal , (pointer_expression "&matching" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      print_sizes(abfd);\n      putchar(10);\n      return;\n    }" { (expression_statement "print_sizes(abfd);" (call_expression "print_sizes(abfd)" identifier (argument_list "(abfd)" ( identifier ))) ;) (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n      bfd_nonfatal(abfd->filename);\n      list_matching_formats(matching);\n      free(matching);\n      return_code = 3;\n    }" { (expression_statement "bfd_nonfatal(abfd->filename);" (call_expression "bfd_nonfatal(abfd->filename)" identifier (argument_list "(abfd->filename)" ( (field_expression "abfd->filename" identifier -> field_identifier) ))) ;) (expression_statement "list_matching_formats(matching);" (call_expression "list_matching_formats(matching)" identifier (argument_list "(matching)" ( identifier ))) ;) (expression_statement "free(matching);" (call_expression "free(matching)" identifier (argument_list "(matching)" ( identifier ))) ;) (expression_statement "return_code = 3;" (assignment_expression "return_code = 3" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" else (compound_statement "{\n      iVar1 = bfd_check_format_matches(abfd,3,&matching);\n      if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(abfd);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" { (expression_statement "iVar1 = bfd_check_format_matches(abfd,3,&matching);" (assignment_expression "iVar1 = bfd_check_format_matches(abfd,3,&matching)" identifier = (call_expression "bfd_check_format_matches(abfd,3,&matching)" identifier (argument_list "(abfd,3,&matching)" ( identifier , number_literal , (pointer_expression "&matching" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        bfd_nonfatal(abfd->filename);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }\n        return_code = 3;\n        return;\n      }" { (expression_statement "bfd_nonfatal(abfd->filename);" (call_expression "bfd_nonfatal(abfd->filename)" identifier (argument_list "(abfd->filename)" ( (field_expression "abfd->filename" identifier -> field_identifier) ))) ;) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n          list_matching_formats(matching);\n          free(matching);\n        }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n          list_matching_formats(matching);\n          free(matching);\n        }" { (expression_statement "list_matching_formats(matching);" (call_expression "list_matching_formats(matching)" identifier (argument_list "(matching)" ( identifier ))) ;) (expression_statement "free(matching);" (call_expression "free(matching)" identifier (argument_list "(matching)" ( identifier ))) ;) })) (expression_statement "return_code = 3;" (assignment_expression "return_code = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "print_sizes(abfd);" (call_expression "print_sizes(abfd)" identifier (argument_list "(abfd)" ( identifier ))) ;) (expression_statement "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);" (call_expression "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" identifier (argument_list "(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" ( (string_literal "" (core file"" " string_content ") , number_literal , number_literal , (pointer_expression "*(FILE **)PTR_stdout_00018ff0" * (cast_expression "(FILE **)PTR_stdout_00018ff0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "iVar1 = bfd_core_file_failing_command(abfd);" (assignment_expression "iVar1 = bfd_core_file_failing_command(abfd)" identifier = (call_expression "bfd_core_file_failing_command(abfd)" identifier (argument_list "(abfd)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        printf(" invoked as %s",iVar1);\n      }" { (expression_statement "printf(" invoked as %s",iVar1);" (call_expression "printf(" invoked as %s",iVar1)" identifier (argument_list "(" invoked as %s",iVar1)" ( (string_literal "" invoked as %s"" " string_content ") , identifier ))) ;) })) (expression_statement "puts(")\n");" (call_expression "puts(")\n")" identifier (argument_list "(")\n")" ( (string_literal "")\n"" " string_content escape_sequence ") ))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000120f0(undefined4 *param_1)\n\n{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000120f0(undefined4 *param_1)\n\n{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000120f0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (void *)0x120fa;" (assignment_expression "local_10 = (void *)0x120fa" identifier = (cast_expression "(void *)0x120fa" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = bfd_check_format(param_1,2);" (assignment_expression "iVar1 = bfd_check_format(param_1,2)" identifier = (call_expression "bfd_check_format(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" { (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,&local_10);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,&local_10)" identifier = (call_expression "bfd_check_format_matches(param_1,1,&local_10)" identifier (argument_list "(param_1,1,&local_10)" ( identifier , number_literal , (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }" { (expression_statement "FUN_00011cf0();" (call_expression "FUN_00011cf0()" identifier (argument_list "()" ( ))) ;) (expression_statement "putchar(10);" (call_expression "putchar(10)" identifier (argument_list "(10)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }" { (expression_statement "FUN_000124c0(*param_1);" (call_expression "FUN_000124c0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "FUN_00012840(local_10);" (call_expression "FUN_00012840(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "free(local_10);" (call_expression "free(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "DAT_00019210 = 3;" (assignment_expression "DAT_00019210 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" else (compound_statement "{\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" { (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,&local_10);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,&local_10)" identifier = (call_expression "bfd_check_format_matches(param_1,3,&local_10)" identifier (argument_list "(param_1,3,&local_10)" ( identifier , number_literal , (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }" { (expression_statement "FUN_000124c0(*param_1);" (call_expression "FUN_000124c0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n          FUN_00012840(local_10);\n          free(local_10);\n        }" { (expression_statement "FUN_00012840(local_10);" (call_expression "FUN_00012840(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "free(local_10);" (call_expression "free(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) })) (expression_statement "DAT_00019210 = 3;" (assignment_expression "DAT_00019210 = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00011cf0();" (call_expression "FUN_00011cf0()" identifier (argument_list "()" ( ))) ;) (expression_statement "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);" (call_expression "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" identifier (argument_list "(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" ( (string_literal "" (core file"" " string_content ") , number_literal , number_literal , (pointer_expression "*(FILE **)PTR_stdout_00018ff0" * (cast_expression "(FILE **)PTR_stdout_00018ff0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "iVar1 = bfd_core_file_failing_command(param_1);" (assignment_expression "iVar1 = bfd_core_file_failing_command(param_1)" identifier = (call_expression "bfd_core_file_failing_command(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        printf(" invoked as %s",iVar1);\n      }" { (expression_statement "printf(" invoked as %s",iVar1);" (call_expression "printf(" invoked as %s",iVar1)" identifier (argument_list "(" invoked as %s",iVar1)" ( (string_literal "" invoked as %s"" " string_content ") , identifier ))) ;) })) (expression_statement "puts(")\n");" (call_expression "puts(")\n")" identifier (argument_list "(")\n")" ( (string_literal "")\n"" " string_content escape_sequence ") ))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") ))) ;) }))) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000120f0(undefined4 *param_1)\n\n{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000120f0(undefined4 *param_1)" (identifier "FUN_000120f0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  void *local_10;\n  \n  local_10 = (void *)0x120fa;\n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *local_10;" (primitive_type "void") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (expression_statement "local_10 = (void *)0x120fa;" (assignment_expression "local_10 = (void *)0x120fa" (identifier "local_10") (= "=") (cast_expression "(void *)0x120fa" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x120fa"))) (; ";")) (expression_statement "iVar1 = bfd_check_format(param_1,2);" (assignment_expression "iVar1 = bfd_check_format(param_1,2)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format(param_1,2)" (identifier "bfd_check_format") (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = bfd_check_format_matches(param_1,1,&local_10);\n    if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }\n    iVar1 = bfd_get_error();\n    if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }\n  }" ({ "{") (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,&local_10);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,&local_10)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format_matches(param_1,1,&local_10)" (identifier "bfd_check_format_matches") (argument_list "(param_1,1,&local_10)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00011cf0();\n      putchar(10);\n      return;\n    }" ({ "{") (expression_statement "FUN_00011cf0();" (call_expression "FUN_00011cf0()" (identifier "FUN_00011cf0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "putchar(10);" (call_expression "putchar(10)" (identifier "putchar") (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" (identifier "iVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0xd) {\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }\n    else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" (if "if") (parenthesized_expression "(iVar1 == 0xd)" (( "(") (binary_expression "iVar1 == 0xd" (identifier "iVar1") (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n      FUN_000124c0(*param_1);\n      FUN_00012840(local_10);\n      free(local_10);\n      DAT_00019210 = 3;\n    }" ({ "{") (expression_statement "FUN_000124c0(*param_1);" (call_expression "FUN_000124c0(*param_1)" (identifier "FUN_000124c0") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "FUN_00012840(local_10);" (call_expression "FUN_00012840(local_10)" (identifier "FUN_00012840") (argument_list "(local_10)" (( "(") (identifier "local_10") () ")"))) (; ";")) (expression_statement "free(local_10);" (call_expression "free(local_10)" (identifier "free") (argument_list "(local_10)" (( "(") (identifier "local_10") () ")"))) (; ";")) (expression_statement "DAT_00019210 = 3;" (assignment_expression "DAT_00019210 = 3" (identifier "DAT_00019210") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" (else "else") (compound_statement "{\n      iVar1 = bfd_check_format_matches(param_1,3,&local_10);\n      if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }\n      FUN_00011cf0();\n      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);\n      iVar1 = bfd_core_file_failing_command(param_1);\n      if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }\n      puts(")\n");\n    }" ({ "{") (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,&local_10);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,&local_10)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format_matches(param_1,3,&local_10)" (identifier "bfd_check_format_matches") (argument_list "(param_1,3,&local_10)" (( "(") (identifier "param_1") (, ",") (number_literal "3") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000124c0(*param_1);\n        iVar1 = bfd_get_error();\n        if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }\n        DAT_00019210 = 3;\n        return;\n      }" ({ "{") (expression_statement "FUN_000124c0(*param_1);" (call_expression "FUN_000124c0(*param_1)" (identifier "FUN_000124c0") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "iVar1 = bfd_get_error();" (assignment_expression "iVar1 = bfd_get_error()" (identifier "iVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0xd) {\n          FUN_00012840(local_10);\n          free(local_10);\n        }" (if "if") (parenthesized_expression "(iVar1 == 0xd)" (( "(") (binary_expression "iVar1 == 0xd" (identifier "iVar1") (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n          FUN_00012840(local_10);\n          free(local_10);\n        }" ({ "{") (expression_statement "FUN_00012840(local_10);" (call_expression "FUN_00012840(local_10)" (identifier "FUN_00012840") (argument_list "(local_10)" (( "(") (identifier "local_10") () ")"))) (; ";")) (expression_statement "free(local_10);" (call_expression "free(local_10)" (identifier "free") (argument_list "(local_10)" (( "(") (identifier "local_10") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00019210 = 3;" (assignment_expression "DAT_00019210 = 3" (identifier "DAT_00019210") (= "=") (number_literal "3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00011cf0();" (call_expression "FUN_00011cf0()" (identifier "FUN_00011cf0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);" (call_expression "fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" (identifier "fwrite") (argument_list "(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0)" (( "(") (string_literal "" (core file"" (" """) (string_content " (core file") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "0xb") (, ",") (pointer_expression "*(FILE **)PTR_stdout_00018ff0" (* "*") (cast_expression "(FILE **)PTR_stdout_00018ff0" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_00018ff0"))) () ")"))) (; ";")) (expression_statement "iVar1 = bfd_core_file_failing_command(param_1);" (assignment_expression "iVar1 = bfd_core_file_failing_command(param_1)" (identifier "iVar1") (= "=") (call_expression "bfd_core_file_failing_command(param_1)" (identifier "bfd_core_file_failing_command") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        printf(" invoked as %s",iVar1);\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        printf(" invoked as %s",iVar1);\n      }" ({ "{") (expression_statement "printf(" invoked as %s",iVar1);" (call_expression "printf(" invoked as %s",iVar1)" (identifier "printf") (argument_list "(" invoked as %s",iVar1)" (( "(") (string_literal "" invoked as %s"" (" """) (string_content " invoked as %s") (" """)) (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "puts(")\n");" (call_expression "puts(")\n")" (identifier "puts") (argument_list "(")\n")" (( "(") (string_literal "")\n"" (" """) (string_content ")") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 *abfd)

{
  int var_2;
  char **matching;
  
  matching = (char **)0x120fa;
  var_2 = var_1(abfd,2);
  if (var_2 == 0) {
    var_2 = var_3(abfd,1,&matching);
    if (var_2 != 0) {
      var_4(abfd);
      var_5(10);
      return;
    }
    var_2 = var_6();
    if (var_2 == 0xd) {
      var_7(abfd->filename);
      var_8(matching);
      var_9(matching);
      return_code = 3;
    }
    else {
      var_2 = var_3(abfd,3,&matching);
      if (var_2 == 0) {
        var_7(abfd->filename);
        var_2 = var_6();
        if (var_2 == 0xd) {
          var_8(matching);
          var_9(matching);
        }
        return_code = 3;
        return;
      }
      var_4(abfd);
      var_10(" (core file",1,0xb,*(type_2 **)PTR_stdout_00018ff0);
      var_2 = var_11(abfd);
      if (var_2 != 0) {
        var_12(" invoked as %s",var_2);
      }
      var_13(")\n");
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)))))))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(undefined4 *param_1)

{
  int iVar1;
  void *local_10;
  
  local_10 = (void *)0x120fa;
  iVar1 = bfd_check_format(param_1,2);
  if (iVar1 == 0) {
    iVar1 = bfd_check_format_matches(param_1,1,&local_10);
    if (iVar1 != 0) {
      FUN_00011cf0();
      putchar(10);
      return;
    }
    iVar1 = bfd_get_error();
    if (iVar1 == 0xd) {
      FUN_000124c0(*param_1);
      FUN_00012840(local_10);
      free(local_10);
      DAT_00019210 = 3;
    }
    else {
      iVar1 = bfd_check_format_matches(param_1,3,&local_10);
      if (iVar1 == 0) {
        FUN_000124c0(*param_1);
        iVar1 = bfd_get_error();
        if (iVar1 == 0xd) {
          FUN_00012840(local_10);
          free(local_10);
        }
        DAT_00019210 = 3;
        return;
      }
      FUN_00011cf0();
      fwrite(" (core file",1,0xb,*(FILE **)PTR_stdout_00018ff0);
      iVar1 = bfd_core_file_failing_command(param_1);
      if (iVar1 != 0) {
        printf(" invoked as %s",iVar1);
      }
      puts(")\n");
    }
  }
  return;
}

