
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void close(Mapfile * this) */

int __thiscall gold::Mapfile::close(Mapfile *this,int __fd)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  char *format;
  
  iVar1 = fclose((FILE *)this->map_file_);
  if (iVar1 == 0) {
    this->map_file_ = (FILE *)0x0;
    return 0;
  }
  piVar2 = __errno_location();
  pcVar3 = strerror(*piVar2);
  format = (char *)gettext("cannot close map file: %s");
  gold_error(format,pcVar3);
  this->map_file_ = (FILE *)0x0;
  return (int)format;
}



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

void FUN_000b0200(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  iVar1 = fclose((FILE *)*param_1);
  if (iVar1 == 0) {
    *param_1 = 0;
    return;
  }
  piVar2 = __errno_location();
  pcVar3 = strerror(*piVar2);
  uVar4 = gettext("cannot close map file: %s");
  FUN_000654b0(uVar4,pcVar3);
  *param_1 = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00035840
ADD EBX,0x2dedf4
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x00029580
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000b0230
MOV dword ptr [ESI],0x0
POP EBX
POP ESI
POP EDI
RET
CALL 0x00029090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00029100
MOV EDI,EAX
LEA EAX,[EBX + 0xffefce5c]
MOV dword ptr [ESP],EAX
CALL 0x000293b0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x000654b0
ADD ESP,0x10
MOV dword ptr [ESI],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000b0200(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_000b0200(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_000b0200(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = fclose((FILE *)*param_1);" (assignment_expression "iVar1 = fclose((FILE *)*param_1)" identifier = (call_expression "fclose((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = 0;\n    return;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar4 = gettext("cannot close map file: %s");" (assignment_expression "uVar4 = gettext("cannot close map file: %s")" identifier = (call_expression "gettext("cannot close map file: %s")" identifier (argument_list "("cannot close map file: %s")" ( (string_literal ""cannot close map file: %s"" " string_content ") )))) ;) (expression_statement "FUN_000654b0(uVar4,pcVar3);" (call_expression "FUN_000654b0(uVar4,pcVar3)" identifier (argument_list "(uVar4,pcVar3)" ( identifier , identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void close(Mapfile * this) */\n\nint __thiscall gold::Mapfile::close(Mapfile *this,int __fd)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *format;\n  \n  iVar1 = fclose((FILE *)this->map_file_);\n  if (iVar1 == 0) {\n    this->map_file_ = (FILE *)0x0;\n    return 0;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  format = (char *)gettext("cannot close map file: %s");\n  gold_error(format,pcVar3);\n  this->map_file_ = (FILE *)0x0;\n  return (int)format;\n}\n\n" comment comment (function_definition "int __thiscall gold::Mapfile::close(Mapfile *this,int __fd)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *format;\n  \n  iVar1 = fclose((FILE *)this->map_file_);\n  if (iVar1 == 0) {\n    this->map_file_ = (FILE *)0x0;\n    return 0;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  format = (char *)gettext("cannot close map file: %s");\n  gold_error(format,pcVar3);\n  this->map_file_ = (FILE *)0x0;\n  return (int)format;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Mapfile::" identifier : : identifier : :) (function_declarator "close(Mapfile *this,int __fd)" identifier (parameter_list "(Mapfile *this,int __fd)" ( (parameter_declaration "Mapfile *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int __fd" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *format;\n  \n  iVar1 = fclose((FILE *)this->map_file_);\n  if (iVar1 == 0) {\n    this->map_file_ = (FILE *)0x0;\n    return 0;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  format = (char *)gettext("cannot close map file: %s");\n  gold_error(format,pcVar3);\n  this->map_file_ = (FILE *)0x0;\n  return (int)format;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "iVar1 = fclose((FILE *)this->map_file_);" (assignment_expression "iVar1 = fclose((FILE *)this->map_file_)" identifier = (call_expression "fclose((FILE *)this->map_file_)" identifier (argument_list "((FILE *)this->map_file_)" ( (cast_expression "(FILE *)this->map_file_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->map_file_" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    this->map_file_ = (FILE *)0x0;\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    this->map_file_ = (FILE *)0x0;\n    return 0;\n  }" { (expression_statement "this->map_file_ = (FILE *)0x0;" (assignment_expression "this->map_file_ = (FILE *)0x0" (field_expression "this->map_file_" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "format = (char *)gettext("cannot close map file: %s");" (assignment_expression "format = (char *)gettext("cannot close map file: %s")" identifier = (cast_expression "(char *)gettext("cannot close map file: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("cannot close map file: %s")" identifier (argument_list "("cannot close map file: %s")" ( (string_literal ""cannot close map file: %s"" " string_content ") ))))) ;) (expression_statement "gold_error(format,pcVar3);" (call_expression "gold_error(format,pcVar3)" identifier (argument_list "(format,pcVar3)" ( identifier , identifier ))) ;) (expression_statement "this->map_file_ = (FILE *)0x0;" (assignment_expression "this->map_file_ = (FILE *)0x0" (field_expression "this->map_file_" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return (int)format;" return (cast_expression "(int)format" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "void FUN_000b0200(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}\n\n" (function_definition "void FUN_000b0200(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_000b0200(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = fclose((FILE *)*param_1);" (assignment_expression "iVar1 = fclose((FILE *)*param_1)" identifier = (call_expression "fclose((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = 0;\n    return;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar4 = gettext("cannot close map file: %s");" (assignment_expression "uVar4 = gettext("cannot close map file: %s")" identifier = (call_expression "gettext("cannot close map file: %s")" identifier (argument_list "("cannot close map file: %s")" ( (string_literal ""cannot close map file: %s"" " string_content ") )))) ;) (expression_statement "FUN_000654b0(uVar4,pcVar3);" (call_expression "FUN_000654b0(uVar4,pcVar3)" identifier (argument_list "(uVar4,pcVar3)" ( identifier , identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_000b0200(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000b0200(undefined4 *param_1)" (identifier "FUN_000b0200") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  iVar1 = fclose((FILE *)*param_1);\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }\n  piVar2 = __errno_location();\n  pcVar3 = strerror(*piVar2);\n  uVar4 = gettext("cannot close map file: %s");\n  FUN_000654b0(uVar4,pcVar3);\n  *param_1 = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = fclose((FILE *)*param_1);" (assignment_expression "iVar1 = fclose((FILE *)*param_1)" (identifier "iVar1") (= "=") (call_expression "fclose((FILE *)*param_1)" (identifier "fclose") (argument_list "((FILE *)*param_1)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    *param_1 = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_1 = 0;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "uVar4 = gettext("cannot close map file: %s");" (assignment_expression "uVar4 = gettext("cannot close map file: %s")" (identifier "uVar4") (= "=") (call_expression "gettext("cannot close map file: %s")" (identifier "gettext") (argument_list "("cannot close map file: %s")" (( "(") (string_literal ""cannot close map file: %s"" (" """) (string_content "cannot close map file: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000654b0(uVar4,pcVar3);" (call_expression "FUN_000654b0(uVar4,pcVar3)" (identifier "FUN_000654b0") (argument_list "(uVar4,pcVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void close(Mapfile * this) */

int __thiscall gold::type_1::function_1(type_1 *this,int __fd)

{
  int var_2;
  int *piVar2;
  char *pcVar3;
  char *format;
  
  var_2 = var_1((type_2 *)this->map_file_);
  if (var_2 == 0) {
    this->map_file_ = (type_2 *)0x0;
    return 0;
  }
  piVar2 = var_3();
  pcVar3 = var_4(*piVar2);
  format = (char *)var_5("cannot close map file: %s");
  var_6(format,pcVar3);
  this->map_file_ = (type_2 *)0x0;
  return (int)format;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (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: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  iVar1 = fclose((FILE *)*param_1);
  if (iVar1 == 0) {
    *param_1 = 0;
    return;
  }
  piVar2 = __errno_location();
  pcVar3 = strerror(*piVar2);
  uVar4 = gettext("cannot close map file: %s");
  FUN_000654b0(uVar4,pcVar3);
  *param_1 = 0;
  return;
}

