
/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */
/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */
/* DWARF original prototype: void write(Stringpool_template<char> * this, Output_file * of, off_t
   offset) */

ssize_t __thiscall
gold::Stringpool_template<char>::write
          (Stringpool_template<char> *this,int __fd,void *__buf,size_t __n)

{
  uint bufsize;
  undefined4 uVar1;
  ssize_t sVar2;
  undefined *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  code *pcVar8;
  undefined4 in_stack_fffffff4;
  
  bufsize = this->strtab_size_;
  pcVar8 = (code *)PTR_do_gold_unreachable_004c1a30;
  if (bufsize != 0) {
    if (-1 < (int)__buf) {
      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);
      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&
         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||
          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {
        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);
        return bufsize;
      }
    }
    pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);
    Output_file::get_output_view
              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);
  }
  uVar4 = 500;
  puVar3 = PTR_s_in_a_linker_script_004c191c + 0x2290;
  (*pcVar8)(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440);
  puVar6 = *(undefined4 **)(pcVar8 + 0x21755c);
  puVar5 = *(undefined4 **)(pcVar8 + 0x21333c);
  uVar7 = *puVar6;
  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac);
  (**(code **)(pcVar8 + 0x2174f8))
            (uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4));
  uVar7 = *puVar6;
  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0);
  sVar2 = (**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))
  ;
  return sVar2;
}



/* gold::Stringpool_template<char>::write(gold::Output_file*, long long) */

void gold::Stringpool_template<char>::write(Output_file *param_1,longlong param_2)

{
  uint uVar1;
  int in_a1;
  int in_a2;
  int iVar2;
  int in_a3;
  code *pcVar3;
  
  uVar1 = *(uint *)(param_1 + 0x38);
  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;
  if (uVar1 != 0) {
    if (-1 < in_a2) {
      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;
      if ((iVar2 <= *(int *)(in_a1 + 8)) &&
         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {
        write_to_buffer((Stringpool_template<char> *)param_1,
                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);
        return;
      }
    }
    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);
    FUN_002ae240();
  }
  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,
            PTR_s_in_a_linker_script_004c191c + 0x2440);
  return;
}


lui gp,0x22
addiu gp,gp,-0x5370
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,0x38(a0)
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq v0,zero,0x002ae638
_lw t9,-0x7810(gp)
bltz a2,0x002ae628
_addu t1,v0,a3
lw t0,0x8(a1)
sltu v1,t1,v0
addu a2,v1,a2
slt v1,t0,a2
bne v1,zero,0x002ae62c
_lw t9,-0x697c(gp)
beq t0,a2,0x002ae618
_nop
lw a1,0x10(a1)
or a2,v0,zero
lw ra,0x1c(sp)
addiu sp,sp,0x20
lw t9,-0x5acc(gp)
b 0x002ae4ac
_addu a1,a1,a3
lw v1,0xc(a1)
sltu t1,v1,t1
beq t1,zero,0x002ae5fc
_nop
lw t9,-0x697c(gp)
addiu t9,t9,-0x1dc0
bal 0x002ae240
_nop
lw a2,-0x7924(gp)
li a1,0x1f4
lw a0,-0x7924(gp)
addiu a2,a2,0x2440
jalr t9
_addiu a0,a0,0x2290
(translation_unit "/* gold::Stringpool_template<char>::write(gold::Output_file*, long long) */\n\nvoid gold::Stringpool_template<char>::write(Output_file *param_1,longlong param_2)\n\n{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}\n\n" comment (function_definition "void gold::Stringpool_template<char>::write(Output_file *param_1,longlong param_2)\n\n{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}" primitive_type (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "write(Output_file *param_1,longlong param_2)" identifier (parameter_list "(Output_file *param_1,longlong param_2)" ( (parameter_declaration "Output_file *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "longlong param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_a3;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x38);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x38)" identifier = (pointer_expression "*(uint *)(param_1 + 0x38)" * (cast_expression "(uint *)(param_1 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;" (assignment_expression "pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30" identifier = (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }" { (if_statement "if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(-1 < in_a2)" ( (binary_expression "-1 < in_a2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }" { (expression_statement "iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;" (assignment_expression "iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2" identifier = (binary_expression "(uint)(uVar1 + in_a3 < uVar1) + in_a2" (call_expression "(uint)(uVar1 + in_a3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 + in_a3 < uVar1)" ( (binary_expression "uVar1 + in_a3 < uVar1" (binary_expression "uVar1 + in_a3" identifier + identifier) < identifier) ))) + identifier)) ;) (if_statement "if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }" if (parenthesized_expression "((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)))))" ( (binary_expression "(iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))" (parenthesized_expression "(iVar2 <= *(int *)(in_a1 + 8))" ( (binary_expression "iVar2 <= *(int *)(in_a1 + 8)" identifier <= (pointer_expression "*(int *)(in_a1 + 8)" * (cast_expression "(int *)(in_a1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 8)" ( (binary_expression "in_a1 + 8" identifier + number_literal) ))))) )) && (parenthesized_expression "((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))" ( (parenthesized_expression "(*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)))" ( (binary_expression "*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))" (binary_expression "*(int *)(in_a1 + 8) != iVar2" (pointer_expression "*(int *)(in_a1 + 8)" * (cast_expression "(int *)(in_a1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 8)" ( (binary_expression "in_a1 + 8" identifier + number_literal) )))) != identifier) || (parenthesized_expression "(uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))" ( (binary_expression "uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)" (binary_expression "uVar1 + in_a3" identifier + identifier) <= (pointer_expression "*(uint *)(in_a1 + 0xc)" * (cast_expression "(uint *)(in_a1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 0xc)" ( (binary_expression "in_a1 + 0xc" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }" { (expression_statement "write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);" (call_expression "write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" identifier (argument_list "((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" ( (parenthesized_expression "(Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" ( (comma_expression "Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1" (binary_expression "Stringpool_template<char> *)param_1" (binary_expression "Stringpool_template<char" identifier < identifier) > (pointer_expression "*)param_1" * (ERROR ")" )) identifier)) , (comma_expression "(uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1" (cast_expression "(uchar *)(*(int *)(in_a1 + 0x10) + in_a3)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_a1 + 0x10) + in_a3)" ( (binary_expression "*(int *)(in_a1 + 0x10) + in_a3" (pointer_expression "*(int *)(in_a1 + 0x10)" * (cast_expression "(int *)(in_a1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 0x10)" ( (binary_expression "in_a1 + 0x10" identifier + number_literal) )))) + identifier) ))) , identifier)) )) ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0)" identifier = (cast_expression "(code *)(PTR_LAB_004c28c4 + -0x1dc0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_004c28c4 + -0x1dc0)" ( (binary_expression "PTR_LAB_004c28c4 + -0x1dc0" identifier + number_literal) )))) ;) (expression_statement "FUN_002ae240();" (call_expression "FUN_002ae240()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);" (call_expression "(*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440)" ( (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" identifier + number_literal) , number_literal , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2440" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */\n/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */\n/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */\n/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */\n/* DWARF original prototype: void write(Stringpool_template<char> * this, Output_file * of, off_t\n   offset) */\n\nssize_t __thiscall\ngold::Stringpool_template<char>::write\n          (Stringpool_template<char> *this,int __fd,void *__buf,size_t __n)\n\n{\n  uint bufsize;\n  undefined4 uVar1;\n  ssize_t sVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  code *pcVar8;\n  undefined4 in_stack_fffffff4;\n  \n  bufsize = this->strtab_size_;\n  pcVar8 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (bufsize != 0) {\n    if (-1 < (int)__buf) {\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }\n    pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    Output_file::get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);\n  }\n  uVar4 = 500;\n  puVar3 = PTR_s_in_a_linker_script_004c191c + 0x2290;\n  (*pcVar8)(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440);\n  puVar6 = *(undefined4 **)(pcVar8 + 0x21755c);\n  puVar5 = *(undefined4 **)(pcVar8 + 0x21333c);\n  uVar7 = *puVar6;\n  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac);\n  (**(code **)(pcVar8 + 0x2174f8))\n            (uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4));\n  uVar7 = *puVar6;\n  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0);\n  sVar2 = (**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))\n  ;\n  return sVar2;\n}\n\n" comment comment comment comment comment comment comment (function_definition "ssize_t __thiscall\ngold::Stringpool_template<char>::write\n          (Stringpool_template<char> *this,int __fd,void *__buf,size_t __n)\n\n{\n  uint bufsize;\n  undefined4 uVar1;\n  ssize_t sVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  code *pcVar8;\n  undefined4 in_stack_fffffff4;\n  \n  bufsize = this->strtab_size_;\n  pcVar8 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (bufsize != 0) {\n    if (-1 < (int)__buf) {\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }\n    pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    Output_file::get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);\n  }\n  uVar4 = 500;\n  puVar3 = PTR_s_in_a_linker_script_004c191c + 0x2290;\n  (*pcVar8)(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440);\n  puVar6 = *(undefined4 **)(pcVar8 + 0x21755c);\n  puVar5 = *(undefined4 **)(pcVar8 + 0x21333c);\n  uVar7 = *puVar6;\n  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac);\n  (**(code **)(pcVar8 + 0x2174f8))\n            (uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4));\n  uVar7 = *puVar6;\n  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0);\n  sVar2 = (**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))\n  ;\n  return sVar2;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "write\n          (Stringpool_template<char> *this,int __fd,void *__buf,size_t __n)" identifier (parameter_list "(Stringpool_template<char> *this,int __fd,void *__buf,size_t __n)" ( (parameter_declaration "Stringpool_template<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "int __fd" primitive_type identifier) , (parameter_declaration "void *__buf" primitive_type (pointer_declarator "*__buf" * identifier)) , (parameter_declaration "size_t __n" primitive_type identifier) ))) (compound_statement "{\n  uint bufsize;\n  undefined4 uVar1;\n  ssize_t sVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  code *pcVar8;\n  undefined4 in_stack_fffffff4;\n  \n  bufsize = this->strtab_size_;\n  pcVar8 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (bufsize != 0) {\n    if (-1 < (int)__buf) {\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }\n    pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    Output_file::get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);\n  }\n  uVar4 = 500;\n  puVar3 = PTR_s_in_a_linker_script_004c191c + 0x2290;\n  (*pcVar8)(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440);\n  puVar6 = *(undefined4 **)(pcVar8 + 0x21755c);\n  puVar5 = *(undefined4 **)(pcVar8 + 0x21333c);\n  uVar7 = *puVar6;\n  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac);\n  (**(code **)(pcVar8 + 0x2174f8))\n            (uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4));\n  uVar7 = *puVar6;\n  uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0);\n  sVar2 = (**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))\n  ;\n  return sVar2;\n}" { (declaration "uint bufsize;" type_identifier identifier ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "ssize_t sVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 in_stack_fffffff4;" type_identifier identifier ;) (expression_statement "bufsize = this->strtab_size_;" (assignment_expression "bufsize = this->strtab_size_" identifier = (field_expression "this->strtab_size_" identifier -> field_identifier)) ;) (expression_statement "pcVar8 = (code *)PTR_do_gold_unreachable_004c1a30;" (assignment_expression "pcVar8 = (code *)PTR_do_gold_unreachable_004c1a30" identifier = (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (bufsize != 0) {\n    if (-1 < (int)__buf) {\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }\n    pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    Output_file::get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);\n  }" if (parenthesized_expression "(bufsize != 0)" ( (binary_expression "bufsize != 0" identifier != number_literal) )) (compound_statement "{\n    if (-1 < (int)__buf) {\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }\n    pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    Output_file::get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);\n  }" { (if_statement "if (-1 < (int)__buf) {\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }" if (parenthesized_expression "(-1 < (int)__buf)" ( (binary_expression "-1 < (int)__buf" number_literal < (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      __buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);\n      if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }\n    }" { (expression_statement "__buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf);" (assignment_expression "__buf = (void *)((uint)(bufsize + __n < bufsize) + (int)__buf)" identifier = (cast_expression "(void *)((uint)(bufsize + __n < bufsize) + (int)__buf)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(bufsize + __n < bufsize) + (int)__buf)" ( (binary_expression "(uint)(bufsize + __n < bufsize) + (int)__buf" (call_expression "(uint)(bufsize + __n < bufsize)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bufsize + __n < bufsize)" ( (binary_expression "bufsize + __n < bufsize" (binary_expression "bufsize + __n" identifier + identifier) < identifier) ))) + (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))) {\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }" if (parenthesized_expression "(((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc)))))" ( (binary_expression "((int)__buf <= (int)*(Output_file **)(__fd + 8)) &&\n         ((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))" (parenthesized_expression "((int)__buf <= (int)*(Output_file **)(__fd + 8))" ( (binary_expression "(int)__buf <= (int)*(Output_file **)(__fd + 8)" (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)*(Output_file **)(__fd + 8)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(Output_file **)(__fd + 8)" * (cast_expression "(Output_file **)(__fd + 8)" ( (type_descriptor "Output_file **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(__fd + 8)" ( (binary_expression "__fd + 8" identifier + number_literal) )))))) )) && (parenthesized_expression "((*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))))" ( (parenthesized_expression "(*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc)))" ( (binary_expression "*(Output_file **)(__fd + 8) != (Output_file *)__buf ||\n          (bufsize + __n <= *(uint *)(__fd + 0xc))" (binary_expression "*(Output_file **)(__fd + 8) != (Output_file *)__buf" (pointer_expression "*(Output_file **)(__fd + 8)" * (cast_expression "(Output_file **)(__fd + 8)" ( (type_descriptor "Output_file **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(__fd + 8)" ( (binary_expression "__fd + 8" identifier + number_literal) )))) != (cast_expression "(Output_file *)__buf" ( (type_descriptor "Output_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) || (parenthesized_expression "(bufsize + __n <= *(uint *)(__fd + 0xc))" ( (binary_expression "bufsize + __n <= *(uint *)(__fd + 0xc)" (binary_expression "bufsize + __n" identifier + identifier) <= (pointer_expression "*(uint *)(__fd + 0xc)" * (cast_expression "(uint *)(__fd + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__fd + 0xc)" ( (binary_expression "__fd + 0xc" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n        write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);\n        return bufsize;\n      }" { (expression_statement "write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize);" (call_expression "write_to_buffer(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize)" identifier (argument_list "(this,(uchar *)(*(int *)(__fd + 0x10) + __n),bufsize)" ( identifier , (cast_expression "(uchar *)(*(int *)(__fd + 0x10) + __n)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(__fd + 0x10) + __n)" ( (binary_expression "*(int *)(__fd + 0x10) + __n" (pointer_expression "*(int *)(__fd + 0x10)" * (cast_expression "(int *)(__fd + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__fd + 0x10)" ( (binary_expression "__fd + 0x10" identifier + number_literal) )))) + identifier) ))) , identifier ))) ;) (return_statement "return bufsize;" return identifier ;) })) })) (expression_statement "pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_004c28c4 + -0x1dc0)" identifier = (cast_expression "(code *)(PTR_LAB_004c28c4 + -0x1dc0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_004c28c4 + -0x1dc0)" ( (binary_expression "PTR_LAB_004c28c4 + -0x1dc0" identifier + number_literal) )))) ;) (labeled_statement "Output_file::get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);" statement_identifier : (ERROR ":" :) (expression_statement "get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf);" (call_expression "get_output_view\n              ((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf)" identifier (argument_list "((Output_file *)this,CONCAT44(0x4c9240,in_stack_fffffff4),__fd,(Output_file *)__buf)" ( (cast_expression "(Output_file *)this" ( (type_descriptor "Output_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (call_expression "CONCAT44(0x4c9240,in_stack_fffffff4)" identifier (argument_list "(0x4c9240,in_stack_fffffff4)" ( number_literal , identifier ))) , identifier , (cast_expression "(Output_file *)__buf" ( (type_descriptor "Output_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) })) (expression_statement "uVar4 = 500;" (assignment_expression "uVar4 = 500" identifier = number_literal) ;) (expression_statement "puVar3 = PTR_s_in_a_linker_script_004c191c + 0x2290;" (assignment_expression "puVar3 = PTR_s_in_a_linker_script_004c191c + 0x2290" identifier = (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" identifier + number_literal)) ;) (expression_statement "(*pcVar8)(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440);" (call_expression "(*pcVar8)(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(puVar3,500,PTR_s_in_a_linker_script_004c191c + 0x2440)" ( identifier , number_literal , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2440" identifier + number_literal) ))) ;) (expression_statement "puVar6 = *(undefined4 **)(pcVar8 + 0x21755c);" (assignment_expression "puVar6 = *(undefined4 **)(pcVar8 + 0x21755c)" identifier = (pointer_expression "*(undefined4 **)(pcVar8 + 0x21755c)" * (cast_expression "(undefined4 **)(pcVar8 + 0x21755c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x21755c)" ( (binary_expression "pcVar8 + 0x21755c" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = *(undefined4 **)(pcVar8 + 0x21333c);" (assignment_expression "puVar5 = *(undefined4 **)(pcVar8 + 0x21333c)" identifier = (pointer_expression "*(undefined4 **)(pcVar8 + 0x21333c)" * (cast_expression "(undefined4 **)(pcVar8 + 0x21333c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x21333c)" ( (binary_expression "pcVar8 + 0x21333c" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *puVar6;" (assignment_expression "uVar7 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac);" (assignment_expression "uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac)" identifier = (call_expression "(**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22ac)" (parenthesized_expression "(**(code **)(pcVar8 + 0x2175e0))" ( (pointer_expression "**(code **)(pcVar8 + 0x2175e0)" * (pointer_expression "*(code **)(pcVar8 + 0x2175e0)" * (cast_expression "(code **)(pcVar8 + 0x2175e0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x2175e0)" ( (binary_expression "pcVar8 + 0x2175e0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar8 + 0x2132cc) + 0x22ac)" ( (binary_expression "*(int *)(pcVar8 + 0x2132cc) + 0x22ac" (pointer_expression "*(int *)(pcVar8 + 0x2132cc)" * (cast_expression "(int *)(pcVar8 + 0x2132cc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x2132cc)" ( (binary_expression "pcVar8 + 0x2132cc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(pcVar8 + 0x2174f8))\n            (uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4));" (call_expression "(**(code **)(pcVar8 + 0x2174f8))\n            (uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4))" (parenthesized_expression "(**(code **)(pcVar8 + 0x2174f8))" ( (pointer_expression "**(code **)(pcVar8 + 0x2174f8)" * (pointer_expression "*(code **)(pcVar8 + 0x2174f8)" * (cast_expression "(code **)(pcVar8 + 0x2174f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x2174f8)" ( (binary_expression "pcVar8 + 0x2174f8" identifier + number_literal) ))))) )) (argument_list "(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0xc),*(undefined4 *)(puVar3 + 4))" ( identifier , identifier , (pointer_expression "*puVar5" * identifier) , identifier , (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" * (cast_expression "(undefined4 *)(puVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(puVar3 + 4)" * (cast_expression "(undefined4 *)(puVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "uVar7 = *puVar6;" (assignment_expression "uVar7 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0);" (assignment_expression "uVar1 = (**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0)" identifier = (call_expression "(**(code **)(pcVar8 + 0x2175e0))(*(int *)(pcVar8 + 0x2132cc) + 0x22d0)" (parenthesized_expression "(**(code **)(pcVar8 + 0x2175e0))" ( (pointer_expression "**(code **)(pcVar8 + 0x2175e0)" * (pointer_expression "*(code **)(pcVar8 + 0x2175e0)" * (cast_expression "(code **)(pcVar8 + 0x2175e0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x2175e0)" ( (binary_expression "pcVar8 + 0x2175e0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar8 + 0x2132cc) + 0x22d0)" ( (binary_expression "*(int *)(pcVar8 + 0x2132cc) + 0x22d0" (pointer_expression "*(int *)(pcVar8 + 0x2132cc)" * (cast_expression "(int *)(pcVar8 + 0x2132cc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0x2132cc)" ( (binary_expression "pcVar8 + 0x2132cc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "sVar2 = (**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))\n  ;" (assignment_expression "sVar2 = (**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))" identifier = (call_expression "(**(code **)(pcVar8 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))" (parenthesized_expression "(**(code **)(pcVar8 + 0x2174f8))" ( (pointer_expression "**(code **)(pcVar8 + 0x2174f8)" * (pointer_expression "*(code **)(pcVar8 + 0x2174f8)" * (cast_expression "(code **)(pcVar8 + 0x2174f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0x2174f8)" ( (binary_expression "pcVar8 + 0x2174f8" identifier + number_literal) ))))) )) (argument_list "(uVar7,uVar1,*puVar5,uVar4,*(undefined4 *)(puVar3 + 0x34))" ( identifier , identifier , (pointer_expression "*puVar5" * identifier) , identifier , (pointer_expression "*(undefined4 *)(puVar3 + 0x34)" * (cast_expression "(undefined4 *)(puVar3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x34)" ( (binary_expression "puVar3 + 0x34" identifier + number_literal) )))) )))) ;) (return_statement "return sVar2;" return identifier ;) })))
(translation_unit "void gold::Stringpool_template<char>::write(Output_file *param_1,longlong param_2)\n\n{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}\n\n" (function_definition "void gold::Stringpool_template<char>::write(Output_file *param_1,longlong param_2)\n\n{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}" primitive_type (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "write(Output_file *param_1,longlong param_2)" identifier (parameter_list "(Output_file *param_1,longlong param_2)" ( (parameter_declaration "Output_file *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "longlong param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_a3;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x38);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x38)" identifier = (pointer_expression "*(uint *)(param_1 + 0x38)" * (cast_expression "(uint *)(param_1 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;" (assignment_expression "pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30" identifier = (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }" { (if_statement "if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(-1 < in_a2)" ( (binary_expression "-1 < in_a2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }" { (expression_statement "iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;" (assignment_expression "iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2" identifier = (binary_expression "(uint)(uVar1 + in_a3 < uVar1) + in_a2" (call_expression "(uint)(uVar1 + in_a3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 + in_a3 < uVar1)" ( (binary_expression "uVar1 + in_a3 < uVar1" (binary_expression "uVar1 + in_a3" identifier + identifier) < identifier) ))) + identifier)) ;) (if_statement "if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }" if (parenthesized_expression "((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)))))" ( (binary_expression "(iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))" (parenthesized_expression "(iVar2 <= *(int *)(in_a1 + 8))" ( (binary_expression "iVar2 <= *(int *)(in_a1 + 8)" identifier <= (pointer_expression "*(int *)(in_a1 + 8)" * (cast_expression "(int *)(in_a1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 8)" ( (binary_expression "in_a1 + 8" identifier + number_literal) ))))) )) && (parenthesized_expression "((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))" ( (parenthesized_expression "(*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)))" ( (binary_expression "*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))" (binary_expression "*(int *)(in_a1 + 8) != iVar2" (pointer_expression "*(int *)(in_a1 + 8)" * (cast_expression "(int *)(in_a1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 8)" ( (binary_expression "in_a1 + 8" identifier + number_literal) )))) != identifier) || (parenthesized_expression "(uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))" ( (binary_expression "uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)" (binary_expression "uVar1 + in_a3" identifier + identifier) <= (pointer_expression "*(uint *)(in_a1 + 0xc)" * (cast_expression "(uint *)(in_a1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 0xc)" ( (binary_expression "in_a1 + 0xc" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }" { (expression_statement "write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);" (call_expression "write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" identifier (argument_list "((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" ( (parenthesized_expression "(Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" ( (comma_expression "Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1" (binary_expression "Stringpool_template<char> *)param_1" (binary_expression "Stringpool_template<char" identifier < identifier) > (pointer_expression "*)param_1" * (ERROR ")" )) identifier)) , (comma_expression "(uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1" (cast_expression "(uchar *)(*(int *)(in_a1 + 0x10) + in_a3)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_a1 + 0x10) + in_a3)" ( (binary_expression "*(int *)(in_a1 + 0x10) + in_a3" (pointer_expression "*(int *)(in_a1 + 0x10)" * (cast_expression "(int *)(in_a1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1 + 0x10)" ( (binary_expression "in_a1 + 0x10" identifier + number_literal) )))) + identifier) ))) , identifier)) )) ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0)" identifier = (cast_expression "(code *)(PTR_LAB_004c28c4 + -0x1dc0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_004c28c4 + -0x1dc0)" ( (binary_expression "PTR_LAB_004c28c4 + -0x1dc0" identifier + number_literal) )))) ;) (expression_statement "FUN_002ae240();" (call_expression "FUN_002ae240()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);" (call_expression "(*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440)" ( (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" identifier + number_literal) , number_literal , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2440" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT : : IDENT < TYPE > : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) < IDENT) ))) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) || (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (parenthesized_expression ( (comma_expression (binary_expression (binary_expression IDENT < IDENT) > (pointer_expression * (ERROR )) IDENT)) , (comma_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) ))) , IDENT)) )) ))) ;) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void gold::Stringpool_template<char>::write(Output_file *param_1,longlong param_2)\n\n{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}" (primitive_type "void") (ERROR "gold::Stringpool_template<char>::" (identifier "gold") (: ":") (: ":") (identifier "Stringpool_template") (< "<") (primitive_type "char") (> ">") (: ":") (: ":")) (function_declarator "write(Output_file *param_1,longlong param_2)" (identifier "write") (parameter_list "(Output_file *param_1,longlong param_2)" (( "(") (parameter_declaration "Output_file *param_1" (type_identifier "Output_file") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "longlong param_2" (type_identifier "longlong") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int in_a1;\n  int in_a2;\n  int iVar2;\n  int in_a3;\n  code *pcVar3;\n  \n  uVar1 = *(uint *)(param_1 + 0x38);\n  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;\n  if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }\n  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int in_a1;" (primitive_type "int") (identifier "in_a1") (; ";")) (declaration "int in_a2;" (primitive_type "int") (identifier "in_a2") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_a3;" (primitive_type "int") (identifier "in_a3") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x38);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x38)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x38)" (* "*") (cast_expression "(uint *)(param_1 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;" (assignment_expression "pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30" (identifier "pcVar3") (= "=") (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_gold_unreachable_004c1a30"))) (; ";")) (if_statement "if (uVar1 != 0) {\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);\n    FUN_002ae240();\n  }" ({ "{") (if_statement "if (-1 < in_a2) {\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(-1 < in_a2)" (( "(") (binary_expression "-1 < in_a2" (number_literal "-1") (< "<") (identifier "in_a2")) () ")")) (compound_statement "{\n      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;\n      if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;" (assignment_expression "iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2" (identifier "iVar2") (= "=") (binary_expression "(uint)(uVar1 + in_a3 < uVar1) + in_a2" (call_expression "(uint)(uVar1 + in_a3 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 + in_a3 < uVar1)" (( "(") (binary_expression "uVar1 + in_a3 < uVar1" (binary_expression "uVar1 + in_a3" (identifier "uVar1") (+ "+") (identifier "in_a3")) (< "<") (identifier "uVar1")) () ")"))) (+ "+") (identifier "in_a2"))) (; ";")) (if_statement "if ((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }" (if "if") (parenthesized_expression "((iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)))))" (( "(") (binary_expression "(iVar2 <= *(int *)(in_a1 + 8)) &&\n         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))" (parenthesized_expression "(iVar2 <= *(int *)(in_a1 + 8))" (( "(") (binary_expression "iVar2 <= *(int *)(in_a1 + 8)" (identifier "iVar2") (<= "<=") (pointer_expression "*(int *)(in_a1 + 8)" (* "*") (cast_expression "(int *)(in_a1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_a1 + 8)" (( "(") (binary_expression "in_a1 + 8" (identifier "in_a1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))" (( "(") (parenthesized_expression "(*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)))" (( "(") (binary_expression "*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))" (binary_expression "*(int *)(in_a1 + 8) != iVar2" (pointer_expression "*(int *)(in_a1 + 8)" (* "*") (cast_expression "(int *)(in_a1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_a1 + 8)" (( "(") (binary_expression "in_a1 + 8" (identifier "in_a1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "iVar2")) (|| "||") (parenthesized_expression "(uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))" (( "(") (binary_expression "uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc)" (binary_expression "uVar1 + in_a3" (identifier "uVar1") (+ "+") (identifier "in_a3")) (<= "<=") (pointer_expression "*(uint *)(in_a1 + 0xc)" (* "*") (cast_expression "(uint *)(in_a1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_a1 + 0xc)" (( "(") (binary_expression "in_a1 + 0xc" (identifier "in_a1") (+ "+") (number_literal "0xc")) () ")"))))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);\n        return;\n      }" ({ "{") (expression_statement "write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);" (call_expression "write_to_buffer((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" (identifier "write_to_buffer") (argument_list "((Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" (( "(") (parenthesized_expression "(Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1)" (( "(") (comma_expression "Stringpool_template<char> *)param_1,\n                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1" (binary_expression "Stringpool_template<char> *)param_1" (binary_expression "Stringpool_template<char" (identifier "Stringpool_template") (< "<") (identifier "char")) (> ">") (pointer_expression "*)param_1" (* "*") (ERROR ")" () ")")) (identifier "param_1"))) (, ",") (comma_expression "(uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1" (cast_expression "(uchar *)(*(int *)(in_a1 + 0x10) + in_a3)" (( "(") (type_descriptor "uchar *" (type_identifier "uchar") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(in_a1 + 0x10) + in_a3)" (( "(") (binary_expression "*(int *)(in_a1 + 0x10) + in_a3" (pointer_expression "*(int *)(in_a1 + 0x10)" (* "*") (cast_expression "(int *)(in_a1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_a1 + 0x10)" (( "(") (binary_expression "in_a1 + 0x10" (identifier "in_a1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "in_a3")) () ")"))) (, ",") (identifier "uVar1"))) () ")")) () ""))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_LAB_004c28c4 + -0x1dc0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_004c28c4 + -0x1dc0)" (( "(") (binary_expression "PTR_LAB_004c28c4 + -0x1dc0" (identifier "PTR_LAB_004c28c4") (+ "+") (number_literal "-0x1dc0")) () ")")))) (; ";")) (expression_statement "FUN_002ae240();" (call_expression "FUN_002ae240()" (identifier "FUN_002ae240") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440);" (call_expression "(*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,500,\n            PTR_s_in_a_linker_script_004c191c + 0x2440)" (( "(") (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" (identifier "PTR_s_in_a_linker_script_004c191c") (+ "+") (number_literal "0x2290")) (, ",") (number_literal "500") (, ",") (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2440" (identifier "PTR_s_in_a_linker_script_004c191c") (+ "+") (number_literal "0x2440")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */
/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */
/* DWARF original prototype: void write(Stringpool_template<char> * this, Output_file * of, off_t
   offset) */

ssize_t __thiscall
gold::type_1<char>::function_1
          (type_1<char> *this,int var_3,void *__buf,size_t var_2)

{
  type_2 var_1;
  type_3 uVar1;
  ssize_t sVar2;
  type_4 *var_10;
  type_3 uVar4;
  type_3 *puVar5;
  type_3 *puVar6;
  type_3 uVar7;
  type_5 *var_9;
  type_3 in_stack_fffffff4;
  
  var_1 = this->strtab_size_;
  var_9 = (type_5 *)PTR_do_gold_unreachable_004c1a30;
  if (var_1 != 0) {
    if (-1 < (int)__buf) {
      __buf = (void *)((type_2)(var_1 + var_2 < var_1) + (int)__buf);
      if (((int)__buf <= (int)*(type_6 **)(var_3 + 8)) &&
         ((*(type_6 **)(var_3 + 8) != (type_6 *)__buf ||
          (var_1 + var_2 <= *(type_2 *)(var_3 + 0xc))))) {
        var_4(this,(type_7 *)(*(int *)(var_3 + 0x10) + var_2),var_1);
        return var_1;
      }
    }
    var_9 = (type_5 *)(var_5 + -0x1dc0);
    Output_file::var_6
              ((type_6 *)this,var_7(0x4c9240,in_stack_fffffff4),var_3,(type_6 *)__buf);
  }
  uVar4 = 500;
  var_10 = var_8 + 0x2290;
  (*var_9)(var_10,500,var_8 + 0x2440);
  puVar6 = *(type_3 **)(var_9 + 0x21755c);
  puVar5 = *(type_3 **)(var_9 + 0x21333c);
  uVar7 = *puVar6;
  uVar1 = (**(type_5 **)(var_9 + 0x2175e0))(*(int *)(var_9 + 0x2132cc) + 0x22ac);
  (**(type_5 **)(var_9 + 0x2174f8))
            (uVar7,uVar1,*puVar5,uVar4,*(type_3 *)(var_10 + 0xc),*(type_3 *)(var_10 + 4));
  uVar7 = *puVar6;
  uVar1 = (**(type_5 **)(var_9 + 0x2175e0))(*(int *)(var_9 + 0x2132cc) + 0x22d0);
  sVar2 = (**(type_5 **)(var_9 + 0x2174f8))(uVar7,uVar1,*puVar5,uVar4,*(type_3 *)(var_10 + 0x34))
  ;
  return sVar2;
}


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

/* gold::Stringpool_template<char>::MASKED(gold::Output_file*, long long) */

void gold::Stringpool_template<char>::MASKED(Output_file *param_1,longlong param_2)

{
  uint uVar1;
  int in_a1;
  int in_a2;
  int iVar2;
  int in_a3;
  code *pcVar3;
  
  uVar1 = *(uint *)(param_1 + 0x38);
  pcVar3 = (code *)PTR_do_gold_unreachable_004c1a30;
  if (uVar1 != 0) {
    if (-1 < in_a2) {
      iVar2 = (uint)(uVar1 + in_a3 < uVar1) + in_a2;
      if ((iVar2 <= *(int *)(in_a1 + 8)) &&
         ((*(int *)(in_a1 + 8) != iVar2 || (uVar1 + in_a3 <= *(uint *)(in_a1 + 0xc))))) {
        MASKED_to_buffer((Stringpool_template<char> *)param_1,
                        (uchar *)(*(int *)(in_a1 + 0x10) + in_a3),uVar1);
        return;
      }
    }
    pcVar3 = (code *)(PTR_LAB_004c28c4 + -0x1dc0);
    FUN_002ae240();
  }
  (*pcVar3)(PTR_s_in_a_linker_script_004c191c + 0x2290,500,
            PTR_s_in_a_linker_script_004c191c + 0x2440);
  return;
}

