
/* DWARF original prototype: bool open(Mapfile * this, char * map_filename) */

int __thiscall gold::Mapfile::open(Mapfile *this,char *__file,int __oflag,...)

{
  int iVar1;
  FILE *pFVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  
  iVar1 = (*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18);
  if (iVar1 == 0) {
    iVar1 = 1;
    this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;
  }
  else {
    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)
                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);
    iVar1 = 1;
    this->map_file_ = pFVar2;
    if (pFVar2 == (FILE *)0x0) {
      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();
      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);
      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);
      iVar1 = 0;
    }
  }
  return iVar1;
}



/* gold::Mapfile::open(char const*) */

undefined4 __thiscall gold::Mapfile::open(Mapfile *this,char *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);
  if (iVar1 == 0) {
    uVar4 = 1;
    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;
  }
  else {
    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);
    uVar4 = 1;
    *(int *)this = iVar1;
    if (iVar1 == 0) {
      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);
      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();
      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);
      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);
      uVar4 = 0;
    }
  }
  return uVar4;
}


lui gp,0x30
addiu gp,gp,-0x3a28
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x37d8(gp)
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
or a0,a1,zero
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
lw a1,-0x77f0(gp)
jalr t9
_addiu a1,a1,0x4b18
bne v0,zero,0x001cccd4
_lw gp,0x10(sp)
lw v0,-0x3758(gp)
li v1,0x1
lw v0,0x0(v0)
sw v0,0x0(s1)
lw ra,0x24(sp)
or v0,v1,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a1,-0x7924(gp)
or a0,s0,zero
lw t9,-0x37e8(gp)
jalr t9
_addiu a1,a1,-0x59fc
li v1,0x1
lw gp,0x10(sp)
bne v0,zero,0x001cccbc
_sw v0,0x0(s1)
lw a0,-0x77f0(gp)
lw t9,-0x3610(gp)
jalr t9
_addiu a0,a0,0x4b1c
lw gp,0x10(sp)
lw t9,-0x3520(gp)
jalr t9
_or s1,v0,zero
lw gp,0x10(sp)
lw t9,-0x3540(gp)
jalr t9
_lw a0,0x0(v0)
or a1,s0,zero
lw gp,0x10(sp)
or a2,v0,zero
lw t9,-0x7814(gp)
jalr t9
_or a0,s1,zero
b 0x001cccbc
_or v1,zero,zero
(translation_unit "/* gold::Mapfile::open(char const*) */\n\nundefined4 __thiscall gold::Mapfile::open(Mapfile *this,char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 __thiscall gold::Mapfile::open(Mapfile *this,char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Mapfile::" identifier : : identifier : :) (function_declarator "open(Mapfile *this,char *param_1)" identifier (parameter_list "(Mapfile *this,char *param_1)" ( (parameter_declaration "Mapfile *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18)" identifier = (call_expression "(*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" ( (pointer_expression "*(code *)PTR_strcmp_004c5a68" * (cast_expression "(code *)PTR_strcmp_004c5a68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_s__s_004c1a50 + 0x4b18)" ( identifier , (binary_expression "PTR_s__s_004c1a50 + 0x4b18" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)PTR_stdout_004c5ae8" * (cast_expression "(undefined4 *)PTR_stdout_004c5ae8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" identifier = (call_expression "(*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" (parenthesized_expression "(*(code *)PTR_fopen64_004c5a58)" ( (pointer_expression "*(code *)PTR_fopen64_004c5a58" * (cast_expression "(code *)PTR_fopen64_004c5a58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" ( identifier , (binary_expression "PTR_s_in_a_linker_script_004c191c + -0x59fc" identifier + number_literal) )))) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);" (assignment_expression "uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" identifier = (call_expression "(*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" (parenthesized_expression "(*(code *)PTR_gettext_004c5c30)" ( (pointer_expression "*(code *)PTR_gettext_004c5c30" * (cast_expression "(code *)PTR_gettext_004c5c30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s__s_004c1a50 + 0x4b1c)" ( (binary_expression "PTR_s__s_004c1a50 + 0x4b1c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_004c5d20)()" (parenthesized_expression "(*(code *)PTR___errno_location_004c5d20)" ( (pointer_expression "*(code *)PTR___errno_location_004c5d20" * (cast_expression "(code *)PTR___errno_location_004c5d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);" (assignment_expression "uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2)" identifier = (call_expression "(*(code *)PTR_strerror_004c5d00)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_004c5d00)" ( (pointer_expression "*(code *)PTR_strerror_004c5d00" * (cast_expression "(code *)PTR_strerror_004c5d00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (expression_statement "(*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);" (call_expression "(*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3)" (parenthesized_expression "(*(code *)PTR_gold_error_004c1a2c)" ( (pointer_expression "*(code *)PTR_gold_error_004c1a2c" * (cast_expression "(code *)PTR_gold_error_004c1a2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,param_1,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: bool open(Mapfile * this, char * map_filename) */\n\nint __thiscall gold::Mapfile::open(Mapfile *this,char *__file,int __oflag,...)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    iVar1 = 1;\n    this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;\n  }\n  else {\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    iVar1 = 1;\n    this->map_file_ = pFVar2;\n    if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int __thiscall gold::Mapfile::open(Mapfile *this,char *__file,int __oflag,...)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    iVar1 = 1;\n    this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;\n  }\n  else {\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    iVar1 = 1;\n    this->map_file_ = pFVar2;\n    if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Mapfile::" identifier : : identifier : :) (function_declarator "open(Mapfile *this,char *__file,int __oflag,...)" identifier (parameter_list "(Mapfile *this,char *__file,int __oflag,...)" ( (parameter_declaration "Mapfile *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *__file" primitive_type (pointer_declarator "*__file" * identifier)) , (parameter_declaration "int __oflag" primitive_type identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    iVar1 = 1;\n    this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;\n  }\n  else {\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    iVar1 = 1;\n    this->map_file_ = pFVar2;\n    if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18)" identifier = (call_expression "(*(code *)PTR_strcmp_004c5a68)(__file,PTR_s__s_004c1a50 + 0x4b18)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" ( (pointer_expression "*(code *)PTR_strcmp_004c5a68" * (cast_expression "(code *)PTR_strcmp_004c5a68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(__file,PTR_s__s_004c1a50 + 0x4b18)" ( identifier , (binary_expression "PTR_s__s_004c1a50 + 0x4b18" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = 1;\n    this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;\n  }\n  else {\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    iVar1 = 1;\n    this->map_file_ = pFVar2;\n    if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 1;\n    this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "this->map_file_ = *(FILE **)PTR_stdout_004c5ae8;" (assignment_expression "this->map_file_ = *(FILE **)PTR_stdout_004c5ae8" (field_expression "this->map_file_" identifier -> field_identifier) = (pointer_expression "*(FILE **)PTR_stdout_004c5ae8" * (cast_expression "(FILE **)PTR_stdout_004c5ae8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    iVar1 = 1;\n    this->map_file_ = pFVar2;\n    if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }\n  }" else (compound_statement "{\n    pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    iVar1 = 1;\n    this->map_file_ = pFVar2;\n    if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }\n  }" { (expression_statement "pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc);" (assignment_expression "pFVar2 = (FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc)" identifier = (cast_expression "(FILE *)(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_fopen64_004c5a58)\n                               (__file,PTR_s_in_a_linker_script_004c191c + -0x59fc)" (parenthesized_expression "(*(code *)PTR_fopen64_004c5a58)" ( (pointer_expression "*(code *)PTR_fopen64_004c5a58" * (cast_expression "(code *)PTR_fopen64_004c5a58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(__file,PTR_s_in_a_linker_script_004c191c + -0x59fc)" ( identifier , (binary_expression "PTR_s_in_a_linker_script_004c191c + -0x59fc" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "this->map_file_ = pFVar2;" (assignment_expression "this->map_file_ = pFVar2" (field_expression "this->map_file_" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar2 == (FILE *)0x0) {\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(pFVar2 == (FILE *)0x0)" ( (binary_expression "pFVar2 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);\n      iVar1 = 0;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);" (assignment_expression "uVar3 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" identifier = (call_expression "(*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" (parenthesized_expression "(*(code *)PTR_gettext_004c5c30)" ( (pointer_expression "*(code *)PTR_gettext_004c5c30" * (cast_expression "(code *)PTR_gettext_004c5c30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s__s_004c1a50 + 0x4b1c)" ( (binary_expression "PTR_s__s_004c1a50 + 0x4b1c" identifier + number_literal) )))) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_004c5d20)()" (parenthesized_expression "(*(code *)PTR___errno_location_004c5d20)" ( (pointer_expression "*(code *)PTR___errno_location_004c5d20" * (cast_expression "(code *)PTR___errno_location_004c5d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4);" (assignment_expression "uVar5 = (*(code *)PTR_strerror_004c5d00)(*puVar4)" identifier = (call_expression "(*(code *)PTR_strerror_004c5d00)(*puVar4)" (parenthesized_expression "(*(code *)PTR_strerror_004c5d00)" ( (pointer_expression "*(code *)PTR_strerror_004c5d00" * (cast_expression "(code *)PTR_strerror_004c5d00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "(*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5);" (call_expression "(*(code *)PTR_gold_error_004c1a2c)(uVar3,__file,uVar5)" (parenthesized_expression "(*(code *)PTR_gold_error_004c1a2c)" ( (pointer_expression "*(code *)PTR_gold_error_004c1a2c" * (cast_expression "(code *)PTR_gold_error_004c1a2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,__file,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 __thiscall gold::Mapfile::open(Mapfile *this,char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 __thiscall gold::Mapfile::open(Mapfile *this,char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Mapfile::" identifier : : identifier : :) (function_declarator "open(Mapfile *this,char *param_1)" identifier (parameter_list "(Mapfile *this,char *param_1)" ( (parameter_declaration "Mapfile *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18)" identifier = (call_expression "(*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" ( (pointer_expression "*(code *)PTR_strcmp_004c5a68" * (cast_expression "(code *)PTR_strcmp_004c5a68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_s__s_004c1a50 + 0x4b18)" ( identifier , (binary_expression "PTR_s__s_004c1a50 + 0x4b18" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)PTR_stdout_004c5ae8" * (cast_expression "(undefined4 *)PTR_stdout_004c5ae8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" identifier = (call_expression "(*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" (parenthesized_expression "(*(code *)PTR_fopen64_004c5a58)" ( (pointer_expression "*(code *)PTR_fopen64_004c5a58" * (cast_expression "(code *)PTR_fopen64_004c5a58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" ( identifier , (binary_expression "PTR_s_in_a_linker_script_004c191c + -0x59fc" identifier + number_literal) )))) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);" (assignment_expression "uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" identifier = (call_expression "(*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" (parenthesized_expression "(*(code *)PTR_gettext_004c5c30)" ( (pointer_expression "*(code *)PTR_gettext_004c5c30" * (cast_expression "(code *)PTR_gettext_004c5c30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s__s_004c1a50 + 0x4b1c)" ( (binary_expression "PTR_s__s_004c1a50 + 0x4b1c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_004c5d20)()" (parenthesized_expression "(*(code *)PTR___errno_location_004c5d20)" ( (pointer_expression "*(code *)PTR___errno_location_004c5d20" * (cast_expression "(code *)PTR___errno_location_004c5d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);" (assignment_expression "uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2)" identifier = (call_expression "(*(code *)PTR_strerror_004c5d00)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_004c5d00)" ( (pointer_expression "*(code *)PTR_strerror_004c5d00" * (cast_expression "(code *)PTR_strerror_004c5d00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (expression_statement "(*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);" (call_expression "(*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3)" (parenthesized_expression "(*(code *)PTR_gold_error_004c1a2c)" ( (pointer_expression "*(code *)PTR_gold_error_004c1a2c" * (cast_expression "(code *)PTR_gold_error_004c1a2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,param_1,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __thiscall gold::Mapfile::open(Mapfile *this,char *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::Mapfile::" (identifier "gold") (: ":") (: ":") (identifier "Mapfile") (: ":") (: ":")) (function_declarator "open(Mapfile *this,char *param_1)" (identifier "open") (parameter_list "(Mapfile *this,char *param_1)" (( "(") (parameter_declaration "Mapfile *this" (type_identifier "Mapfile") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);\n  if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" (( "(") (pointer_expression "*(code *)PTR_strcmp_004c5a68" (* "*") (cast_expression "(code *)PTR_strcmp_004c5a68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_004c5a68"))) () ")")) (argument_list "(param_1,PTR_s__s_004c1a50 + 0x4b18)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s__s_004c1a50 + 0x4b18" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "0x4b18")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }\n  else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 1;\n    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;\n  }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8" (pointer_expression "*(undefined4 *)this" (* "*") (cast_expression "(undefined4 *)this" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (pointer_expression "*(undefined4 *)PTR_stdout_004c5ae8" (* "*") (cast_expression "(undefined4 *)PTR_stdout_004c5ae8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_004c5ae8")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);\n    uVar4 = 1;\n    *(int *)this = iVar1;\n    if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);" (assignment_expression "iVar1 = (*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_fopen64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" (parenthesized_expression "(*(code *)PTR_fopen64_004c5a58)" (( "(") (pointer_expression "*(code *)PTR_fopen64_004c5a58" (* "*") (cast_expression "(code *)PTR_fopen64_004c5a58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fopen64_004c5a58"))) () ")")) (argument_list "(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s_in_a_linker_script_004c191c + -0x59fc" (identifier "PTR_s_in_a_linker_script_004c191c") (+ "+") (number_literal "-0x59fc")) () ")")))) (; ";")) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);\n      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();\n      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);\n      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);" (assignment_expression "uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c)" (parenthesized_expression "(*(code *)PTR_gettext_004c5c30)" (( "(") (pointer_expression "*(code *)PTR_gettext_004c5c30" (* "*") (cast_expression "(code *)PTR_gettext_004c5c30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gettext_004c5c30"))) () ")")) (argument_list "(PTR_s__s_004c1a50 + 0x4b1c)" (( "(") (binary_expression "PTR_s__s_004c1a50 + 0x4b1c" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "0x4b1c")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_004c5d20)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_004c5d20)()" (parenthesized_expression "(*(code *)PTR___errno_location_004c5d20)" (( "(") (pointer_expression "*(code *)PTR___errno_location_004c5d20" (* "*") (cast_expression "(code *)PTR___errno_location_004c5d20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_004c5d20"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);" (assignment_expression "uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_strerror_004c5d00)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_004c5d00)" (( "(") (pointer_expression "*(code *)PTR_strerror_004c5d00" (* "*") (cast_expression "(code *)PTR_strerror_004c5d00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_004c5d00"))) () ")")) (argument_list "(*puVar2)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);" (call_expression "(*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3)" (parenthesized_expression "(*(code *)PTR_gold_error_004c1a2c)" (( "(") (pointer_expression "*(code *)PTR_gold_error_004c1a2c" (* "*") (cast_expression "(code *)PTR_gold_error_004c1a2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gold_error_004c1a2c"))) () ")")) (argument_list "(uVar4,param_1,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "param_1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

/* gold::Mapfile::MASKED(char const*) */

undefined4 __thiscall gold::Mapfile::MASKED(Mapfile *this,char *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  iVar1 = (*(code *)PTR_strcmp_004c5a68)(param_1,PTR_s__s_004c1a50 + 0x4b18);
  if (iVar1 == 0) {
    uVar4 = 1;
    *(undefined4 *)this = *(undefined4 *)PTR_stdout_004c5ae8;
  }
  else {
    iVar1 = (*(code *)PTR_fMASKED64_004c5a58)(param_1,PTR_s_in_a_linker_script_004c191c + -0x59fc);
    uVar4 = 1;
    *(int *)this = iVar1;
    if (iVar1 == 0) {
      uVar4 = (*(code *)PTR_gettext_004c5c30)(PTR_s__s_004c1a50 + 0x4b1c);
      puVar2 = (undefined4 *)(*(code *)PTR___errno_location_004c5d20)();
      uVar3 = (*(code *)PTR_strerror_004c5d00)(*puVar2);
      (*(code *)PTR_gold_error_004c1a2c)(uVar4,param_1,uVar3);
      uVar4 = 0;
    }
  }
  return uVar4;
}

