
void display_bfd(bfd *abfd)

{
  int iVar1;
  long lVar2;
  char **matching;
  
  iVar1 = bfd_check_format(abfd,2);
  if (iVar1 != 0) {
    return;
  }
  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);
  }
  else {
    iVar1 = bfd_check_format_matches(abfd,3,&matching);
    if (iVar1 != 0) {
      print_sizes(abfd);
      fwrite(" (core file",1,0xb,stdout);
      lVar2 = bfd_core_file_failing_command(abfd);
      if (lVar2 != 0) {
        printf(" invoked as %s",lVar2);
      }
      puts(")\n");
      return;
    }
    bfd_nonfatal(abfd->filename);
    iVar1 = bfd_get_error();
    if (iVar1 != 0xd) {
      return_code = 3;
      return;
    }
  }
  list_matching_formats(matching);
  free(matching);
  return_code = 3;
  return;
}



void FUN_00103010(undefined8 *param_1)

{
  int iVar1;
  long lVar2;
  void *local_20 [2];
  
  iVar1 = bfd_check_format(param_1,2);
  if (iVar1 != 0) {
    return;
  }
  iVar1 = bfd_check_format_matches(param_1,1,local_20);
  if (iVar1 != 0) {
    FUN_00102c10(param_1);
    putchar(10);
    return;
  }
  iVar1 = bfd_get_error();
  if (iVar1 == 0xd) {
    FUN_00103300(*param_1);
  }
  else {
    iVar1 = bfd_check_format_matches(param_1,3,local_20);
    if (iVar1 != 0) {
      FUN_00102c10(param_1);
      fwrite(" (core file",1,0xb,stdout);
      lVar2 = bfd_core_file_failing_command(param_1);
      if (lVar2 != 0) {
        printf(" invoked as %s",lVar2);
      }
      puts(")\n");
      return;
    }
    FUN_00103300(*param_1);
    iVar1 = bfd_get_error();
    if (iVar1 != 0xd) {
      DAT_00109858 = 3;
      return;
    }
  }
  FUN_00103740(local_20[0]);
  free(local_20[0]);
  DAT_00109858 = 3;
  return;
}


PUSH RBP
MOV ESI,0x2
PUSH RBX
MOV RBX,RDI
SUB RSP,0x18
CALL 0x00102450
TEST EAX,EAX
JZ 0x00103030
ADD RSP,0x18
POP RBX
POP RBP
RET
LEA RBP,[RSP + 0x8]
MOV ESI,0x1
MOV RDI,RBX
MOV RDX,RBP
CALL 0x00102400
TEST EAX,EAX
JNZ 0x001030f8
CALL 0x00102210
CMP EAX,0xd
JZ 0x00103118
MOV RDX,RBP
MOV ESI,0x3
MOV RDI,RBX
CALL 0x00102400
TEST EAX,EAX
JNZ 0x001030a0
MOV RDI,qword ptr [RBX]
CALL 0x00103300
CALL 0x00102210
CMP EAX,0xd
JZ 0x00103120
MOV dword ptr [0x00109858],0x3
ADD RSP,0x18
POP RBX
POP RBP
RET
MOV RDI,RBX
CALL 0x00102c10
MOV EDX,0xb
MOV ESI,0x1
MOV RCX,qword ptr [0x00109380]
LEA RDI,[0x106426]
CALL 0x00102440
MOV RDI,RBX
CALL 0x001020b0
TEST RAX,RAX
JZ 0x001030e3
MOV RSI,RAX
LEA RDI,[0x106432]
XOR EAX,EAX
CALL 0x001021a0
LEA RDI,[0x106488]
CALL 0x001020d0
JMP 0x00103027
MOV RDI,RBX
CALL 0x00102c10
MOV EDI,0xa
CALL 0x00102070
ADD RSP,0x18
POP RBX
POP RBP
RET
MOV RDI,qword ptr [RBX]
CALL 0x00103300
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00103740
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00102050
JMP 0x00103085
(translation_unit "void FUN_00103010(undefined8 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}\n\n" (function_definition "void FUN_00103010(undefined8 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}" primitive_type (function_declarator "FUN_00103010(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "void *local_20 [2];" primitive_type (pointer_declarator "*local_20 [2]" * (array_declarator "local_20 [2]" identifier [ 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    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,1,local_20)" identifier (argument_list "(param_1,1,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }" { (expression_statement "FUN_00102c10(param_1);" (call_expression "FUN_00102c10(param_1)" identifier (argument_list "(param_1)" ( 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    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n    FUN_00103300(*param_1);\n  }" { (expression_statement "FUN_00103300(*param_1);" (call_expression "FUN_00103300(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" { (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,3,local_20)" identifier (argument_list "(param_1,3,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" { (expression_statement "FUN_00102c10(param_1);" (call_expression "FUN_00102c10(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "fwrite(" (core file",1,0xb,stdout);" (call_expression "fwrite(" (core file",1,0xb,stdout)" identifier (argument_list "(" (core file",1,0xb,stdout)" ( (string_literal "" (core file"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "lVar2 = bfd_core_file_failing_command(param_1);" (assignment_expression "lVar2 = 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 (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        printf(" invoked as %s",lVar2);\n      }" { (expression_statement "printf(" invoked as %s",lVar2);" (call_expression "printf(" invoked as %s",lVar2)" identifier (argument_list "(" invoked as %s",lVar2)" ( (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 ;) })) (expression_statement "FUN_00103300(*param_1);" (call_expression "FUN_00103300(*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      DAT_00109858 = 3;\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n      DAT_00109858 = 3;\n      return;\n    }" { (expression_statement "DAT_00109858 = 3;" (assignment_expression "DAT_00109858 = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "FUN_00103740(local_20[0]);" (call_expression "FUN_00103740(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (expression_statement "free(local_20[0]);" (call_expression "free(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (expression_statement "DAT_00109858 = 3;" (assignment_expression "DAT_00109858 = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void display_bfd(bfd *abfd)\n\n{\n  int iVar1;\n  long lVar2;\n  char **matching;\n  \n  iVar1 = bfd_check_format(abfd,2);\n  if (iVar1 != 0) {\n    return;\n  }\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  }\n  else {\n    iVar1 = bfd_check_format_matches(abfd,3,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    bfd_nonfatal(abfd->filename);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      return_code = 3;\n      return;\n    }\n  }\n  list_matching_formats(matching);\n  free(matching);\n  return_code = 3;\n  return;\n}\n\n" (function_definition "void display_bfd(bfd *abfd)\n\n{\n  int iVar1;\n  long lVar2;\n  char **matching;\n  \n  iVar1 = bfd_check_format(abfd,2);\n  if (iVar1 != 0) {\n    return;\n  }\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  }\n  else {\n    iVar1 = bfd_check_format_matches(abfd,3,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    bfd_nonfatal(abfd->filename);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      return_code = 3;\n      return;\n    }\n  }\n  list_matching_formats(matching);\n  free(matching);\n  return_code = 3;\n  return;\n}" primitive_type (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  long lVar2;\n  char **matching;\n  \n  iVar1 = bfd_check_format(abfd,2);\n  if (iVar1 != 0) {\n    return;\n  }\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  }\n  else {\n    iVar1 = bfd_check_format_matches(abfd,3,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    bfd_nonfatal(abfd->filename);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      return_code = 3;\n      return;\n    }\n  }\n  list_matching_formats(matching);\n  free(matching);\n  return_code = 3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char **matching;" primitive_type (pointer_declarator "**matching" * (pointer_declarator "*matching" * identifier)) ;) (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    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (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  }\n  else {\n    iVar1 = bfd_check_format_matches(abfd,3,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    bfd_nonfatal(abfd->filename);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      return_code = 3;\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n    bfd_nonfatal(abfd->filename);\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) ))) ;) }) (else_clause "else {\n    iVar1 = bfd_check_format_matches(abfd,3,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    bfd_nonfatal(abfd->filename);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      return_code = 3;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_check_format_matches(abfd,3,&matching);\n    if (iVar1 != 0) {\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    bfd_nonfatal(abfd->filename);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      return_code = 3;\n      return;\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      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      print_sizes(abfd);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(abfd);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" { (expression_statement "print_sizes(abfd);" (call_expression "print_sizes(abfd)" identifier (argument_list "(abfd)" ( identifier ))) ;) (expression_statement "fwrite(" (core file",1,0xb,stdout);" (call_expression "fwrite(" (core file",1,0xb,stdout)" identifier (argument_list "(" (core file",1,0xb,stdout)" ( (string_literal "" (core file"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "lVar2 = bfd_core_file_failing_command(abfd);" (assignment_expression "lVar2 = bfd_core_file_failing_command(abfd)" identifier = (call_expression "bfd_core_file_failing_command(abfd)" identifier (argument_list "(abfd)" ( identifier )))) ;) (if_statement "if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        printf(" invoked as %s",lVar2);\n      }" { (expression_statement "printf(" invoked as %s",lVar2);" (call_expression "printf(" invoked as %s",lVar2)" identifier (argument_list "(" invoked as %s",lVar2)" ( (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 ;) })) (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      return_code = 3;\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n      return_code = 3;\n      return;\n    }" { (expression_statement "return_code = 3;" (assignment_expression "return_code = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })) }))) (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 ;) })))
(translation_unit "void FUN_00103010(undefined8 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}\n\n" (function_definition "void FUN_00103010(undefined8 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}" primitive_type (function_declarator "FUN_00103010(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "void *local_20 [2];" primitive_type (pointer_declarator "*local_20 [2]" * (array_declarator "local_20 [2]" identifier [ 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    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,1,local_20)" identifier (argument_list "(param_1,1,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }" { (expression_statement "FUN_00102c10(param_1);" (call_expression "FUN_00102c10(param_1)" identifier (argument_list "(param_1)" ( 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    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0xd)" ( (binary_expression "iVar1 == 0xd" identifier == number_literal) )) (compound_statement "{\n    FUN_00103300(*param_1);\n  }" { (expression_statement "FUN_00103300(*param_1);" (call_expression "FUN_00103300(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" { (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,local_20)" identifier = (call_expression "bfd_check_format_matches(param_1,3,local_20)" identifier (argument_list "(param_1,3,local_20)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" { (expression_statement "FUN_00102c10(param_1);" (call_expression "FUN_00102c10(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "fwrite(" (core file",1,0xb,stdout);" (call_expression "fwrite(" (core file",1,0xb,stdout)" identifier (argument_list "(" (core file",1,0xb,stdout)" ( (string_literal "" (core file"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "lVar2 = bfd_core_file_failing_command(param_1);" (assignment_expression "lVar2 = 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 (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        printf(" invoked as %s",lVar2);\n      }" { (expression_statement "printf(" invoked as %s",lVar2);" (call_expression "printf(" invoked as %s",lVar2)" identifier (argument_list "(" invoked as %s",lVar2)" ( (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 ;) })) (expression_statement "FUN_00103300(*param_1);" (call_expression "FUN_00103300(*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      DAT_00109858 = 3;\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n      DAT_00109858 = 3;\n      return;\n    }" { (expression_statement "DAT_00109858 = 3;" (assignment_expression "DAT_00109858 = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "FUN_00103740(local_20[0]);" (call_expression "FUN_00103740(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (expression_statement "free(local_20[0]);" (call_expression "free(local_20[0])" identifier (argument_list "(local_20[0])" ( (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) (expression_statement "DAT_00109858 = 3;" (assignment_expression "DAT_00109858 = 3" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (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 ( 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) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (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 ( (string_literal " string_content ") , LIT , LIT , 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 ;) })) (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 (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00103010(undefined8 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00103010(undefined8 *param_1)" (identifier "FUN_00103010") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  void *local_20 [2];\n  \n  iVar1 = bfd_check_format(param_1,2);\n  if (iVar1 != 0) {\n    return;\n  }\n  iVar1 = bfd_check_format_matches(param_1,1,local_20);\n  if (iVar1 != 0) {\n    FUN_00102c10(param_1);\n    putchar(10);\n    return;\n  }\n  iVar1 = bfd_get_error();\n  if (iVar1 == 0xd) {\n    FUN_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }\n  FUN_00103740(local_20[0]);\n  free(local_20[0]);\n  DAT_00109858 = 3;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "void *local_20 [2];" (primitive_type "void") (pointer_declarator "*local_20 [2]" (* "*") (array_declarator "local_20 [2]" (identifier "local_20") ([ "[") (number_literal "2") (] "]"))) (; ";")) (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    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_check_format_matches(param_1,1,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,1,local_20)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format_matches(param_1,1,local_20)" (identifier "bfd_check_format_matches") (argument_list "(param_1,1,local_20)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    FUN_00102c10(param_1);\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_00102c10(param_1);\n    putchar(10);\n    return;\n  }" ({ "{") (expression_statement "FUN_00102c10(param_1);" (call_expression "FUN_00102c10(param_1)" (identifier "FUN_00102c10") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (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_00103300(*param_1);\n  }\n  else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0xd)" (( "(") (binary_expression "iVar1 == 0xd" (identifier "iVar1") (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n    FUN_00103300(*param_1);\n  }" ({ "{") (expression_statement "FUN_00103300(*param_1);" (call_expression "FUN_00103300(*param_1)" (identifier "FUN_00103300") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = bfd_check_format_matches(param_1,3,local_20);\n    if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }\n    FUN_00103300(*param_1);\n    iVar1 = bfd_get_error();\n    if (iVar1 != 0xd) {\n      DAT_00109858 = 3;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = bfd_check_format_matches(param_1,3,local_20);" (assignment_expression "iVar1 = bfd_check_format_matches(param_1,3,local_20)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format_matches(param_1,3,local_20)" (identifier "bfd_check_format_matches") (argument_list "(param_1,3,local_20)" (( "(") (identifier "param_1") (, ",") (number_literal "3") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00102c10(param_1);\n      fwrite(" (core file",1,0xb,stdout);\n      lVar2 = bfd_core_file_failing_command(param_1);\n      if (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }\n      puts(")\n");\n      return;\n    }" ({ "{") (expression_statement "FUN_00102c10(param_1);" (call_expression "FUN_00102c10(param_1)" (identifier "FUN_00102c10") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "fwrite(" (core file",1,0xb,stdout);" (call_expression "fwrite(" (core file",1,0xb,stdout)" (identifier "fwrite") (argument_list "(" (core file",1,0xb,stdout)" (( "(") (string_literal "" (core file"" (" """) (string_content " (core file") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "0xb") (, ",") (identifier "stdout") () ")"))) (; ";")) (expression_statement "lVar2 = bfd_core_file_failing_command(param_1);" (assignment_expression "lVar2 = bfd_core_file_failing_command(param_1)" (identifier "lVar2") (= "=") (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 (lVar2 != 0) {\n        printf(" invoked as %s",lVar2);\n      }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        printf(" invoked as %s",lVar2);\n      }" ({ "{") (expression_statement "printf(" invoked as %s",lVar2);" (call_expression "printf(" invoked as %s",lVar2)" (identifier "printf") (argument_list "(" invoked as %s",lVar2)" (( "(") (string_literal "" invoked as %s"" (" """) (string_content " invoked as %s") (" """)) (, ",") (identifier "lVar2") () ")"))) (; ";")) (} "}"))) (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") (; ";")) (} "}"))) (expression_statement "FUN_00103300(*param_1);" (call_expression "FUN_00103300(*param_1)" (identifier "FUN_00103300") (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      DAT_00109858 = 3;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0xd)" (( "(") (binary_expression "iVar1 != 0xd" (identifier "iVar1") (!= "!=") (number_literal "0xd")) () ")")) (compound_statement "{\n      DAT_00109858 = 3;\n      return;\n    }" ({ "{") (expression_statement "DAT_00109858 = 3;" (assignment_expression "DAT_00109858 = 3" (identifier "DAT_00109858") (= "=") (number_literal "3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00103740(local_20[0]);" (call_expression "FUN_00103740(local_20[0])" (identifier "FUN_00103740") (argument_list "(local_20[0])" (( "(") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "free(local_20[0]);" (call_expression "free(local_20[0])" (identifier "free") (argument_list "(local_20[0])" (( "(") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "DAT_00109858 = 3;" (assignment_expression "DAT_00109858 = 3" (identifier "DAT_00109858") (= "=") (number_literal "3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *abfd)

{
  int var_2;
  long var_10;
  char **matching;
  
  var_2 = var_1(abfd,2);
  if (var_2 != 0) {
    return;
  }
  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);
  }
  else {
    var_2 = var_3(abfd,3,&matching);
    if (var_2 != 0) {
      var_4(abfd);
      var_8(" (core file",1,0xb,stdout);
      var_10 = var_9(abfd);
      if (var_10 != 0) {
        var_11(" invoked as %s",var_10);
      }
      var_12(")\n");
      return;
    }
    var_7(abfd->filename);
    var_2 = var_6();
    if (var_2 != 0xd) {
      return_code = 3;
      return;
    }
  }
  var_13(matching);
  var_14(matching);
  return_code = 3;
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (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 (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (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)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (number_literal) (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))) (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 (assignment_expression left: (identifier) right: (number_literal))) (return_statement)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  int iVar1;
  long lVar2;
  void *local_20 [2];
  
  iVar1 = bfd_check_format(param_1,2);
  if (iVar1 != 0) {
    return;
  }
  iVar1 = bfd_check_format_matches(param_1,1,local_20);
  if (iVar1 != 0) {
    FUN_00102c10(param_1);
    putchar(10);
    return;
  }
  iVar1 = bfd_get_error();
  if (iVar1 == 0xd) {
    FUN_00103300(*param_1);
  }
  else {
    iVar1 = bfd_check_format_matches(param_1,3,local_20);
    if (iVar1 != 0) {
      FUN_00102c10(param_1);
      fwrite(" (core file",1,0xb,stdout);
      lVar2 = bfd_core_file_failing_command(param_1);
      if (lVar2 != 0) {
        printf(" invoked as %s",lVar2);
      }
      puts(")\n");
      return;
    }
    FUN_00103300(*param_1);
    iVar1 = bfd_get_error();
    if (iVar1 != 0xd) {
      DAT_00109858 = 3;
      return;
    }
  }
  FUN_00103740(local_20[0]);
  free(local_20[0]);
  DAT_00109858 = 3;
  return;
}

