
/* DWARF original prototype: void unmap(Output_file * this) */

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

{
  char *pcVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  char *format;
  
  if (this->map_is_anonymous_ == false) {
    iVar2 = munmap(this->base_,this->file_size_);
    if (iVar2 < 0) {
      piVar3 = __errno_location();
      pcVar4 = strerror(*piVar3);
      pcVar1 = this->name_;
      format = (char *)gettext("%s: munmap: %s");
      gold_error(format,pcVar1,pcVar4);
    }
  }
  this->base_ = (uchar *)0x0;
  return;
}



void FUN_001c3f00(undefined8 *param_1)

{
  undefined8 uVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  undefined8 uVar5;
  
  if (*(char *)(param_1 + 4) == '\0') {
    iVar2 = munmap((void *)param_1[3],param_1[2]);
    if (iVar2 < 0) {
      piVar3 = __errno_location();
      pcVar4 = strerror(*piVar3);
      uVar1 = *param_1;
      uVar5 = gettext("%s: munmap: %s");
      FUN_001690a0(uVar5,uVar1,pcVar4);
    }
  }
  param_1[3] = 0;
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
CMP byte ptr [RDI + 0x20],0x0
MOV RBX,RDI
JZ 0x001c3f20
MOV qword ptr [RBX + 0x18],0x0
POP RBX
POP RBP
POP R12
RET
MOV RSI,qword ptr [RDI + 0x10]
MOV RDI,qword ptr [RDI + 0x18]
CALL 0x0013e860
TEST EAX,EAX
JNS 0x001c3f0d
CALL 0x0013e770
MOV EDI,dword ptr [RAX]
CALL 0x0013e610
MOV RBP,qword ptr [RBX]
LEA RDI,[0x3185ee]
MOV R12,RAX
CALL 0x0013e320
MOV RDX,R12
MOV RSI,RBP
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001690a0
JMP 0x001c3f0d
(translation_unit "void FUN_001c3f00(undefined8 *param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}\n\n" (function_definition "void FUN_001c3f00(undefined8 *param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001c3f00(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" ( (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }" { (expression_statement "iVar2 = munmap((void *)param_1[3],param_1[2]);" (assignment_expression "iVar2 = munmap((void *)param_1[3],param_1[2])" identifier = (call_expression "munmap((void *)param_1[3],param_1[2])" identifier (argument_list "((void *)param_1[3],param_1[2])" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = gettext("%s: munmap: %s");" (assignment_expression "uVar5 = gettext("%s: munmap: %s")" identifier = (call_expression "gettext("%s: munmap: %s")" identifier (argument_list "("%s: munmap: %s")" ( (string_literal ""%s: munmap: %s"" " string_content ") )))) ;) (expression_statement "FUN_001690a0(uVar5,uVar1,pcVar4);" (call_expression "FUN_001690a0(uVar5,uVar1,pcVar4)" identifier (argument_list "(uVar5,uVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void unmap(Output_file * this) */\n\nvoid __thiscall gold::Output_file::unmap(Output_file *this)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  \n  if (this->map_is_anonymous_ == false) {\n    iVar2 = munmap(this->base_,this->file_size_);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }\n  }\n  this->base_ = (uchar *)0x0;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Output_file::unmap(Output_file *this)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  \n  if (this->map_is_anonymous_ == false) {\n    iVar2 = munmap(this->base_,this->file_size_);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }\n  }\n  this->base_ = (uchar *)0x0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_file::" identifier : : identifier : :) (function_declarator "unmap(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  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  \n  if (this->map_is_anonymous_ == false) {\n    iVar2 = munmap(this->base_,this->file_size_);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }\n  }\n  this->base_ = (uchar *)0x0;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (if_statement "if (this->map_is_anonymous_ == false) {\n    iVar2 = munmap(this->base_,this->file_size_);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }\n  }" if (parenthesized_expression "(this->map_is_anonymous_ == false)" ( (binary_expression "this->map_is_anonymous_ == false" (field_expression "this->map_is_anonymous_" identifier -> field_identifier) == false) )) (compound_statement "{\n    iVar2 = munmap(this->base_,this->file_size_);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }\n  }" { (expression_statement "iVar2 = munmap(this->base_,this->file_size_);" (assignment_expression "iVar2 = munmap(this->base_,this->file_size_)" identifier = (call_expression "munmap(this->base_,this->file_size_)" identifier (argument_list "(this->base_,this->file_size_)" ( (field_expression "this->base_" identifier -> field_identifier) , (field_expression "this->file_size_" identifier -> field_identifier) )))) ;) (if_statement "if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      pcVar1 = this->name_;\n      format = (char *)gettext("%s: munmap: %s");\n      gold_error(format,pcVar1,pcVar4);\n    }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * 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: munmap: %s");" (assignment_expression "format = (char *)gettext("%s: munmap: %s")" identifier = (cast_expression "(char *)gettext("%s: munmap: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: munmap: %s")" identifier (argument_list "("%s: munmap: %s")" ( (string_literal ""%s: munmap: %s"" " string_content ") ))))) ;) (expression_statement "gold_error(format,pcVar1,pcVar4);" (call_expression "gold_error(format,pcVar1,pcVar4)" identifier (argument_list "(format,pcVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })) })) (expression_statement "this->base_ = (uchar *)0x0;" (assignment_expression "this->base_ = (uchar *)0x0" (field_expression "this->base_" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001c3f00(undefined8 *param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}\n\n" (function_definition "void FUN_001c3f00(undefined8 *param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001c3f00(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" ( (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }" { (expression_statement "iVar2 = munmap((void *)param_1[3],param_1[2]);" (assignment_expression "iVar2 = munmap((void *)param_1[3],param_1[2])" identifier = (call_expression "munmap((void *)param_1[3],param_1[2])" identifier (argument_list "((void *)param_1[3],param_1[2])" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = gettext("%s: munmap: %s");" (assignment_expression "uVar5 = gettext("%s: munmap: %s")" identifier = (call_expression "gettext("%s: munmap: %s")" identifier (argument_list "("%s: munmap: %s")" ( (string_literal ""%s: munmap: %s"" " string_content ") )))) ;) (expression_statement "FUN_001690a0(uVar5,uVar1,pcVar4);" (call_expression "FUN_001690a0(uVar5,uVar1,pcVar4)" identifier (argument_list "(uVar5,uVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = 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 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) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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 = (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 ))) ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001c3f00(undefined8 *param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001c3f00(undefined8 *param_1)" (identifier "FUN_001c3f00") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }\n  param_1[3] = 0;\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = munmap((void *)param_1[3],param_1[2]);\n    if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }\n  }" ({ "{") (expression_statement "iVar2 = munmap((void *)param_1[3],param_1[2]);" (assignment_expression "iVar2 = munmap((void *)param_1[3],param_1[2])" (identifier "iVar2") (= "=") (call_expression "munmap((void *)param_1[3],param_1[2])" (identifier "munmap") (argument_list "((void *)param_1[3],param_1[2])" (( "(") (cast_expression "(void *)param_1[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar3 = __errno_location();\n      pcVar4 = strerror(*piVar3);\n      uVar1 = *param_1;\n      uVar5 = gettext("%s: munmap: %s");\n      FUN_001690a0(uVar5,uVar1,pcVar4);\n    }" ({ "{") (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" (identifier "pcVar4") (= "=") (call_expression "strerror(*piVar3)" (identifier "strerror") (argument_list "(*piVar3)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) () ")")))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar5 = gettext("%s: munmap: %s");" (assignment_expression "uVar5 = gettext("%s: munmap: %s")" (identifier "uVar5") (= "=") (call_expression "gettext("%s: munmap: %s")" (identifier "gettext") (argument_list "("%s: munmap: %s")" (( "(") (string_literal ""%s: munmap: %s"" (" """) (string_content "%s: munmap: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001690a0(uVar5,uVar1,pcVar4);" (call_expression "FUN_001690a0(uVar5,uVar1,pcVar4)" (identifier "FUN_001690a0") (argument_list "(uVar5,uVar1,pcVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar1") (, ",") (identifier "pcVar4") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void unmap(Output_file * this) */

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

{
  char *pcVar1;
  int var_2;
  int *piVar3;
  char *pcVar4;
  char *format;
  
  if (this->map_is_anonymous_ == false) {
    var_2 = var_1(this->base_,this->file_size_);
    if (var_2 < 0) {
      piVar3 = var_3();
      pcVar4 = var_4(*piVar3);
      pcVar1 = this->name_;
      format = (char *)var_5("%s: munmap: %s");
      var_6(format,pcVar1,pcVar4);
    }
  }
  this->base_ = (type_2 *)0x0;
  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: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (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)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  undefined8 uVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  undefined8 uVar5;
  
  if (*(char *)(param_1 + 4) == '\0') {
    iVar2 = munmap((void *)param_1[3],param_1[2]);
    if (iVar2 < 0) {
      piVar3 = __errno_location();
      pcVar4 = strerror(*piVar3);
      uVar1 = *param_1;
      uVar5 = gettext("%s: munmap: %s");
      FUN_001690a0(uVar5,uVar1,pcVar4);
    }
  }
  param_1[3] = 0;
  return;
}

