
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void map(Output_file * this) */

void __thiscall gold::Output_file::map(Output_file *this)

{
  char *pcVar1;
  off_t oVar2;
  bool bVar3;
  int *piVar4;
  char *pcVar5;
  char *format;
  
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  if ((parameters->options_->mmap_output_file_).value != false) {
    bVar3 = map_no_anonymous(this,true);
    if (bVar3) {
      return;
    }
  }
  bVar3 = map_anonymous(this);
  if (bVar3) {
    return;
  }
  piVar4 = __errno_location();
  pcVar5 = strerror(*piVar4);
  oVar2 = this->file_size_;
  pcVar1 = this->name_;
  format = (char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");
                    /* WARNING: Subroutine does not return */
  gold_fatal(format,pcVar1,(int)oVar2,pcVar5);
}



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

void FUN_000be570(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  char cVar3;
  int *piVar4;
  char *pcVar5;
  undefined4 uVar6;
  
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);
  }
  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {
    cVar3 = FUN_000be3b0(param_1,1);
    if (cVar3 != '\0') {
      return;
    }
  }
  cVar3 = FUN_000be340(param_1);
  if (cVar3 != '\0') {
    return;
  }
  piVar4 = __errno_location();
  pcVar5 = strerror(*piVar4);
  uVar1 = param_1[2];
  uVar2 = *param_1;
  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");
                    /* WARNING: Subroutine does not return */
  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x243a87
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000be5da
CMP byte ptr [EAX + 0x2385],0x0
JNZ 0x000be5c0
SUB ESP,0xc
PUSH ESI
CALL 0x000be340
ADD ESP,0x10
TEST AL,AL
JZ 0x000be5f0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x1
PUSH ESI
CALL 0x000be3b0
ADD ESP,0x10
TEST AL,AL
JZ 0x000be59e
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EAX
LEA EAX,[EBX + 0xfff29d00]
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x5c
PUSH EAX
CALL 0x0005f0b0
CALL 0x00026090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00026100
MOV EDI,dword ptr [ESI + 0x8]
MOV ESI,dword ptr [ESI]
MOV EBP,EAX
LEA EAX,[EBX + 0xfff288ec]
MOV dword ptr [ESP],EAX
CALL 0x000263b0
ADD ESP,0x10
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0005aca0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000be570(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}\n\n" comment (function_definition "void FUN_000be570(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}" primitive_type (function_declarator "FUN_000be570(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" { comment (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385)" * (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x2385)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x2385)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x2385" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }" { (expression_statement "cVar3 = FUN_000be3b0(param_1,1);" (assignment_expression "cVar3 = FUN_000be3b0(param_1,1)" identifier = (call_expression "FUN_000be3b0(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (cVar3 != '\0') {\n      return;\n    }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "cVar3 = FUN_000be340(param_1);" (assignment_expression "cVar3 = FUN_000be340(param_1)" identifier = (call_expression "FUN_000be340(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (cVar3 != '\0') {\n    return;\n  }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");" (assignment_expression "uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" identifier = (call_expression "gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" identifier (argument_list "("%s: mmap: failed to allocate %lu bytes for output file: %s")" ( (string_literal ""%s: mmap: failed to allocate %lu bytes for output file: %s"" " string_content ") )))) ;) comment (expression_statement "FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);" (call_expression "FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5)" identifier (argument_list "(uVar6,uVar2,uVar1,pcVar5)" ( identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void map(Output_file * this) */\n\nvoid __thiscall gold::Output_file::map(Output_file *this)\n\n{\n  char *pcVar1;\n  off_t oVar2;\n  bool bVar3;\n  int *piVar4;\n  char *pcVar5;\n  char *format;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if ((parameters->options_->mmap_output_file_).value != false) {\n    bVar3 = map_no_anonymous(this,true);\n    if (bVar3) {\n      return;\n    }\n  }\n  bVar3 = map_anonymous(this);\n  if (bVar3) {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  oVar2 = this->file_size_;\n  pcVar1 = this->name_;\n  format = (char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(format,pcVar1,(int)oVar2,pcVar5);\n}\n\n" comment comment comment (function_definition "void __thiscall gold::Output_file::map(Output_file *this)\n\n{\n  char *pcVar1;\n  off_t oVar2;\n  bool bVar3;\n  int *piVar4;\n  char *pcVar5;\n  char *format;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if ((parameters->options_->mmap_output_file_).value != false) {\n    bVar3 = map_no_anonymous(this,true);\n    if (bVar3) {\n      return;\n    }\n  }\n  bVar3 = map_anonymous(this);\n  if (bVar3) {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  oVar2 = this->file_size_;\n  pcVar1 = this->name_;\n  format = (char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(format,pcVar1,(int)oVar2,pcVar5);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_file::" identifier : : identifier : :) (function_declarator "map(Output_file *this)" identifier (parameter_list "(Output_file *this)" ( (parameter_declaration "Output_file *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  off_t oVar2;\n  bool bVar3;\n  int *piVar4;\n  char *pcVar5;\n  char *format;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if ((parameters->options_->mmap_output_file_).value != false) {\n    bVar3 = map_no_anonymous(this,true);\n    if (bVar3) {\n      return;\n    }\n  }\n  bVar3 = map_anonymous(this);\n  if (bVar3) {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  oVar2 = this->file_size_;\n  pcVar1 = this->name_;\n  format = (char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(format,pcVar1,(int)oVar2,pcVar5);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "off_t oVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(parameters->options_ == (General_options *)0x0)" ( (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (if_statement "if ((parameters->options_->mmap_output_file_).value != false) {\n    bVar3 = map_no_anonymous(this,true);\n    if (bVar3) {\n      return;\n    }\n  }" if (parenthesized_expression "((parameters->options_->mmap_output_file_).value != false)" ( (binary_expression "(parameters->options_->mmap_output_file_).value != false" (field_expression "(parameters->options_->mmap_output_file_).value" (parenthesized_expression "(parameters->options_->mmap_output_file_)" ( (field_expression "parameters->options_->mmap_output_file_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n    bVar3 = map_no_anonymous(this,true);\n    if (bVar3) {\n      return;\n    }\n  }" { (expression_statement "bVar3 = map_no_anonymous(this,true);" (assignment_expression "bVar3 = map_no_anonymous(this,true)" identifier = (call_expression "map_no_anonymous(this,true)" identifier (argument_list "(this,true)" ( identifier , true )))) ;) (if_statement "if (bVar3) {\n      return;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "bVar3 = map_anonymous(this);" (assignment_expression "bVar3 = map_anonymous(this)" identifier = (call_expression "map_anonymous(this)" identifier (argument_list "(this)" ( identifier )))) ;) (if_statement "if (bVar3) {\n    return;\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "oVar2 = this->file_size_;" (assignment_expression "oVar2 = this->file_size_" identifier = (field_expression "this->file_size_" identifier -> field_identifier)) ;) (expression_statement "pcVar1 = this->name_;" (assignment_expression "pcVar1 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");" (assignment_expression "format = (char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" identifier = (cast_expression "(char *)gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" identifier (argument_list "("%s: mmap: failed to allocate %lu bytes for output file: %s")" ( (string_literal ""%s: mmap: failed to allocate %lu bytes for output file: %s"" " string_content ") ))))) ;) comment (expression_statement "gold_fatal(format,pcVar1,(int)oVar2,pcVar5);" (call_expression "gold_fatal(format,pcVar1,(int)oVar2,pcVar5)" identifier (argument_list "(format,pcVar1,(int)oVar2,pcVar5)" ( identifier , identifier , (cast_expression "(int)oVar2" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) })))
(translation_unit "void FUN_000be570(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    \n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}\n\n" (function_definition "void FUN_000be570(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    \n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}" primitive_type (function_declarator "FUN_000be570(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    \n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" { (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385)" * (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x2385)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x2385)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x2385" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }" { (expression_statement "cVar3 = FUN_000be3b0(param_1,1);" (assignment_expression "cVar3 = FUN_000be3b0(param_1,1)" identifier = (call_expression "FUN_000be3b0(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (cVar3 != '\0') {\n      return;\n    }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "cVar3 = FUN_000be340(param_1);" (assignment_expression "cVar3 = FUN_000be340(param_1)" identifier = (call_expression "FUN_000be340(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (cVar3 != '\0') {\n    return;\n  }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");" (assignment_expression "uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" identifier = (call_expression "gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" identifier (argument_list "("%s: mmap: failed to allocate %lu bytes for output file: %s")" ( (string_literal ""%s: mmap: failed to allocate %lu bytes for output file: %s"" " string_content ") )))) ;) (expression_statement "FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);" (call_expression "FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5)" identifier (argument_list "(uVar6,uVar2,uVar1,pcVar5)" ( identifier , identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (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 ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_000be570(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    \n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}" (primitive_type "void") (function_declarator "FUN_000be570(undefined4 *param_1)" (identifier "FUN_000be570") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char cVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }\n  cVar3 = FUN_000be340(param_1);\n  if (cVar3 != '\0') {\n    return;\n  }\n  piVar4 = __errno_location();\n  pcVar5 = strerror(*piVar4);\n  uVar1 = param_1[2];\n  uVar2 = *param_1;\n  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");\n                    \n  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/parameters.h",0x5c,"options",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385)" (* "*") (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x2385)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x2385)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) + 0x2385" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x2385")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 != '\0') {\n      return;\n    }\n  }" ({ "{") (expression_statement "cVar3 = FUN_000be3b0(param_1,1);" (assignment_expression "cVar3 = FUN_000be3b0(param_1,1)" (identifier "cVar3") (= "=") (call_expression "FUN_000be3b0(param_1,1)" (identifier "FUN_000be3b0") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (cVar3 != '\0') {\n      return;\n    }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "cVar3 = FUN_000be340(param_1);" (assignment_expression "cVar3 = FUN_000be340(param_1)" (identifier "cVar3") (= "=") (call_expression "FUN_000be340(param_1)" (identifier "FUN_000be340") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (cVar3 != '\0') {\n    return;\n  }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");" (assignment_expression "uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" (identifier "uVar6") (= "=") (call_expression "gettext("%s: mmap: failed to allocate %lu bytes for output file: %s")" (identifier "gettext") (argument_list "("%s: mmap: failed to allocate %lu bytes for output file: %s")" (( "(") (string_literal ""%s: mmap: failed to allocate %lu bytes for output file: %s"" (" """) (string_content "%s: mmap: failed to allocate %lu bytes for output file: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);" (call_expression "FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5)" (identifier "FUN_0005aca0") (argument_list "(uVar6,uVar2,uVar1,pcVar5)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar2") (, ",") (identifier "uVar1") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void map(Output_file * this) */

void __thiscall gold::type_1::function_1(type_1 *this)

{
  char *pcVar1;
  type_2 oVar2;
  bool bVar3;
  int *piVar4;
  char *pcVar5;
  char *format;
  
  if (parameters->options_ == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  if ((parameters->options_->mmap_output_file_).value != false) {
    bVar3 = var_2(this,true);
    if (bVar3) {
      return;
    }
  }
  bVar3 = var_3(this);
  if (bVar3) {
    return;
  }
  piVar4 = var_4();
  pcVar5 = var_5(*piVar4);
  oVar2 = this->file_size_;
  pcVar1 = this->name_;
  format = (char *)var_6("%s: mmap: failed to allocate %lu bytes for output file: %s");
                    /* WARNING: Subroutine does not return */
  var_7(format,pcVar1,(int)oVar2,pcVar5);
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement))))) (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: (char_literal (escape_sequence)))) 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 (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))))))

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

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  char cVar3;
  int *piVar4;
  char *pcVar5;
  undefined4 uVar6;
  
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);
  }
  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x2385) != '\0') {
    cVar3 = FUN_000be3b0(param_1,1);
    if (cVar3 != '\0') {
      return;
    }
  }
  cVar3 = FUN_000be340(param_1);
  if (cVar3 != '\0') {
    return;
  }
  piVar4 = __errno_location();
  pcVar5 = strerror(*piVar4);
  uVar1 = param_1[2];
  uVar2 = *param_1;
  uVar6 = gettext("%s: mmap: failed to allocate %lu bytes for output file: %s");
                    /* WARNING: Subroutine does not return */
  FUN_0005aca0(uVar6,uVar2,uVar1,pcVar5);
}

