
void output_file_close(char *filename)

{
  int iVar1;
  undefined4 uVar2;
  undefined8 uVar3;
  char *format;
  
  if (stdoutput == (bfd *)0x0) {
    return;
  }
  iVar1 = had_errors();
  if (iVar1 == 0) {
    iVar1 = bfd_close(stdoutput);
  }
  else {
    iVar1 = bfd_cache_close_all();
  }
  stdoutput = (bfd *)0x0;
  if (iVar1 != 0) {
    return;
  }
  uVar2 = bfd_get_error();
  uVar3 = bfd_errmsg(uVar2);
  format = (char *)dcgettext(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
  as_fatal(format,filename,uVar3);
}



void FUN_00126d10(undefined8 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  if (DAT_00175a10 == 0) {
    return;
  }
  iVar1 = FUN_001262e0();
  if (iVar1 == 0) {
    iVar1 = bfd_close(DAT_00175a10);
  }
  else {
    iVar1 = bfd_cache_close_all();
  }
  DAT_00175a10 = 0;
  if (iVar1 != 0) {
    return;
  }
  uVar2 = bfd_get_error();
  uVar3 = bfd_errmsg(uVar2);
  uVar4 = dcgettext(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
  FUN_00126720(uVar4,param_1,uVar3);
}


CMP qword ptr [0x00175a10],0x0
JZ 0x00126d60
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
CALL 0x001262e0
TEST EAX,EAX
JNZ 0x00126d50
MOV RDI,qword ptr [0x00175a10]
CALL 0x00111640
MOV qword ptr [0x00175a10],0x0
TEST EAX,EAX
JZ 0x00126d61
ADD RSP,0x8
POP RBX
POP RBP
RET
CALL 0x001115d0
JMP 0x00126d38
RET
CALL 0x001112b0
MOV EDI,EAX
CALL 0x00111670
MOV EDX,0x5
LEA RSI,[0x14fd2f]
XOR EDI,EDI
MOV RBP,RAX
CALL 0x001111c0
MOV RDX,RBP
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00126720
(translation_unit "void FUN_00126d10(undefined8 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  FUN_00126720(uVar4,param_1,uVar3);\n}\n\n" (function_definition "void FUN_00126d10(undefined8 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  FUN_00126720(uVar4,param_1,uVar3);\n}" primitive_type (function_declarator "FUN_00126d10(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  FUN_00126720(uVar4,param_1,uVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (if_statement "if (DAT_00175a10 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00175a10 == 0)" ( (binary_expression "DAT_00175a10 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_001262e0();" (assignment_expression "iVar1 = FUN_001262e0()" identifier = (call_expression "FUN_001262e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_close(DAT_00175a10);\n  }" { (expression_statement "iVar1 = bfd_close(DAT_00175a10);" (assignment_expression "iVar1 = bfd_close(DAT_00175a10)" identifier = (call_expression "bfd_close(DAT_00175a10)" identifier (argument_list "(DAT_00175a10)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = bfd_cache_close_all();\n  }" else (compound_statement "{\n    iVar1 = bfd_cache_close_all();\n  }" { (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" identifier = (call_expression "bfd_cache_close_all()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "DAT_00175a10 = 0;" (assignment_expression "DAT_00175a10 = 0" 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 "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = bfd_errmsg(uVar2);" (assignment_expression "uVar3 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"can\'t close %s: %s",5)" identifier = (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) comment (expression_statement "FUN_00126720(uVar4,param_1,uVar3);" (call_expression "FUN_00126720(uVar4,param_1,uVar3)" identifier (argument_list "(uVar4,param_1,uVar3)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void output_file_close(char *filename)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  char *format;\n  \n  if (stdoutput == (bfd *)0x0) {\n    return;\n  }\n  iVar1 = had_errors();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(stdoutput);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  stdoutput = (bfd *)0x0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  as_fatal(format,filename,uVar3);\n}\n\n" (function_definition "void output_file_close(char *filename)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  char *format;\n  \n  if (stdoutput == (bfd *)0x0) {\n    return;\n  }\n  iVar1 = had_errors();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(stdoutput);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  stdoutput = (bfd *)0x0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  as_fatal(format,filename,uVar3);\n}" primitive_type (function_declarator "output_file_close(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  char *format;\n  \n  if (stdoutput == (bfd *)0x0) {\n    return;\n  }\n  iVar1 = had_errors();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(stdoutput);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  stdoutput = (bfd *)0x0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n  as_fatal(format,filename,uVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (if_statement "if (stdoutput == (bfd *)0x0) {\n    return;\n  }" if (parenthesized_expression "(stdoutput == (bfd *)0x0)" ( (binary_expression "stdoutput == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = had_errors();" (assignment_expression "iVar1 = had_errors()" identifier = (call_expression "had_errors()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_close(stdoutput);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_close(stdoutput);\n  }" { (expression_statement "iVar1 = bfd_close(stdoutput);" (assignment_expression "iVar1 = bfd_close(stdoutput)" identifier = (call_expression "bfd_close(stdoutput)" identifier (argument_list "(stdoutput)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = bfd_cache_close_all();\n  }" else (compound_statement "{\n    iVar1 = bfd_cache_close_all();\n  }" { (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" identifier = (call_expression "bfd_cache_close_all()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "stdoutput = (bfd *)0x0;" (assignment_expression "stdoutput = (bfd *)0x0" identifier = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = bfd_errmsg(uVar2);" (assignment_expression "uVar3 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "format = (char *)dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "format = (char *)dcgettext(0,"can\'t close %s: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"can\'t close %s: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal ))))) ;) comment (expression_statement "as_fatal(format,filename,uVar3);" (call_expression "as_fatal(format,filename,uVar3)" identifier (argument_list "(format,filename,uVar3)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void FUN_00126d10(undefined8 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n  FUN_00126720(uVar4,param_1,uVar3);\n}\n\n" (function_definition "void FUN_00126d10(undefined8 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n  FUN_00126720(uVar4,param_1,uVar3);\n}" primitive_type (function_declarator "FUN_00126d10(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n  FUN_00126720(uVar4,param_1,uVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (if_statement "if (DAT_00175a10 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00175a10 == 0)" ( (binary_expression "DAT_00175a10 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_001262e0();" (assignment_expression "iVar1 = FUN_001262e0()" identifier = (call_expression "FUN_001262e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = bfd_close(DAT_00175a10);\n  }" { (expression_statement "iVar1 = bfd_close(DAT_00175a10);" (assignment_expression "iVar1 = bfd_close(DAT_00175a10)" identifier = (call_expression "bfd_close(DAT_00175a10)" identifier (argument_list "(DAT_00175a10)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = bfd_cache_close_all();\n  }" else (compound_statement "{\n    iVar1 = bfd_cache_close_all();\n  }" { (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" identifier = (call_expression "bfd_cache_close_all()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "DAT_00175a10 = 0;" (assignment_expression "DAT_00175a10 = 0" 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 "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = bfd_errmsg(uVar2);" (assignment_expression "uVar3 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"can\'t close %s: %s",5)" identifier = (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_00126720(uVar4,param_1,uVar3);" (call_expression "FUN_00126720(uVar4,param_1,uVar3)" identifier (argument_list "(uVar4,param_1,uVar3)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (expression_statement (assignment_expression 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 ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_00126d10(undefined8 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n  FUN_00126720(uVar4,param_1,uVar3);\n}" (primitive_type "void") (function_declarator "FUN_00126d10(undefined8 param_1)" (identifier "FUN_00126d10") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  if (DAT_00175a10 == 0) {\n    return;\n  }\n  iVar1 = FUN_001262e0();\n  if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }\n  DAT_00175a10 = 0;\n  if (iVar1 != 0) {\n    return;\n  }\n  uVar2 = bfd_get_error();\n  uVar3 = bfd_errmsg(uVar2);\n  uVar4 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n  FUN_00126720(uVar4,param_1,uVar3);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (if_statement "if (DAT_00175a10 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_00175a10 == 0)" (( "(") (binary_expression "DAT_00175a10 == 0" (identifier "DAT_00175a10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_001262e0();" (assignment_expression "iVar1 = FUN_001262e0()" (identifier "iVar1") (= "=") (call_expression "FUN_001262e0()" (identifier "FUN_001262e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = bfd_close(DAT_00175a10);\n  }\n  else {\n    iVar1 = bfd_cache_close_all();\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = bfd_close(DAT_00175a10);\n  }" ({ "{") (expression_statement "iVar1 = bfd_close(DAT_00175a10);" (assignment_expression "iVar1 = bfd_close(DAT_00175a10)" (identifier "iVar1") (= "=") (call_expression "bfd_close(DAT_00175a10)" (identifier "bfd_close") (argument_list "(DAT_00175a10)" (( "(") (identifier "DAT_00175a10") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = bfd_cache_close_all();\n  }" (else "else") (compound_statement "{\n    iVar1 = bfd_cache_close_all();\n  }" ({ "{") (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" (identifier "iVar1") (= "=") (call_expression "bfd_cache_close_all()" (identifier "bfd_cache_close_all") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (expression_statement "DAT_00175a10 = 0;" (assignment_expression "DAT_00175a10 = 0" (identifier "DAT_00175a10") (= "=") (number_literal "0")) (; ";")) (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 "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" (identifier "uVar2") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = bfd_errmsg(uVar2);" (assignment_expression "uVar3 = bfd_errmsg(uVar2)" (identifier "uVar3") (= "=") (call_expression "bfd_errmsg(uVar2)" (identifier "bfd_errmsg") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"can\'t close %s: %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"can\'t close %s: %s",5)" (identifier "dcgettext") (argument_list "(0,"can\'t close %s: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""can\'t close %s: %s"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t close %s: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00126720(uVar4,param_1,uVar3);" (call_expression "FUN_00126720(uVar4,param_1,uVar3)" (identifier "FUN_00126720") (argument_list "(uVar4,param_1,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "param_1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))

void function_1(char *filename)

{
  int var_3;
  type_1 uVar2;
  type_2 uVar3;
  char *format;
  
  if (var_1 == (type_3 *)0x0) {
    return;
  }
  var_3 = var_2();
  if (var_3 == 0) {
    var_3 = var_4(var_1);
  }
  else {
    var_3 = var_5();
  }
  var_1 = (type_3 *)0x0;
  if (var_3 != 0) {
    return;
  }
  uVar2 = var_6();
  uVar3 = var_7(uVar2);
  format = (char *)var_8(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
  var_9(format,filename,uVar3);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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)))) (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)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))

void MASKED(undefined8 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  if (DAT_00175a10 == 0) {
    return;
  }
  iVar1 = FUN_001262e0();
  if (iVar1 == 0) {
    iVar1 = bfd_close(DAT_00175a10);
  }
  else {
    iVar1 = bfd_cache_close_all();
  }
  DAT_00175a10 = 0;
  if (iVar1 != 0) {
    return;
  }
  uVar2 = bfd_get_error();
  uVar3 = bfd_errmsg(uVar2);
  uVar4 = dcgettext(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
  FUN_00126720(uVar4,param_1,uVar3);
}

