
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void write_to_buffer(Stringpool_template<char> * this, uchar * buffer,
   section_size_type bufsize) */

void __thiscall
gold::Stringpool_template<char>::write_to_buffer
          (Stringpool_template<char> *this,uchar *buffer,section_size_type bufsize)

{
  undefined1 *puVar1;
  int iVar2;
  undefined4 uVar3;
  _Hash_node_base *p_Var4;
  
  if (this->strtab_size_ == 0) {
    uVar3 = 0x1de;
  }
  else {
    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;
    if (this->zero_null_ != false) {
      *buffer = '\0';
    }
    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;
    while( true ) {
      if (p_Var4 == (_Hash_node_base *)0x0) {
        return;
      }
      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);
      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.
                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>
                            ._M_impl._M_start[(uint)puVar1 >> 0xd].
                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +
                      ((uint)puVar1 & 0x1fff) * 4);
      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;
      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);
      p_Var4 = p_Var4->_M_nxt;
    }
    uVar3 = 0x1e9;
  }
  do {
    (*(code *)PTR_do_gold_unreachable_004c1a30)
              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,
               PTR_s_in_a_linker_script_004c191c + 0x2420);
LAB_002ae5a0:
    uVar3 = 0x1df;
  } while( true );
}



/* gold::Stringpool_template<char>::write_to_buffer(unsigned char*, unsigned int) */

void __thiscall
gold::Stringpool_template<char>::write_to_buffer
          (Stringpool_template<char> *this,uchar *param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  if (*(uint *)(this + 0x38) == 0) {
    uVar2 = 0x1de;
  }
  else {
    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;
    if (this[0x3c] != (Stringpool_template<char>)0x0) {
      *param_1 = '\0';
    }
    piVar3 = *(int **)(this + 8);
    while( true ) {
      if (piVar3 == (int *)0x0) {
        return;
      }
      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +
                      (piVar3[4] - 1U & 0x1fff) * 4);
      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;
      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);
      piVar3 = (int *)*piVar3;
    }
    uVar2 = 0x1e9;
  }
  do {
    (*(code *)PTR_do_gold_unreachable_004c1a30)
              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,
               PTR_s_in_a_linker_script_004c191c + 0x2420);
LAB_002ae5a0:
    uVar2 = 0x1df;
  } while( true );
}


lui gp,0x22
addiu gp,gp,-0x526c
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x38(a0)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq v0,zero,0x002ae5a8
_sw s0,0x18(sp)
sltu v0,a2,v0
bne v0,zero,0x002ae5a0
_or s2,a0,zero
lbu v0,0x3c(a0)
bne v0,zero,0x002ae57c
_or s1,a1,zero
lw s0,0x8(s2)
beq s0,zero,0x002ae568
_lw ra,0x24(sp)
lw v0,0x10(s0)
lw a0,0x1c(s2)
lw a2,0x8(s0)
addiu v0,v0,-0x1
lw a3,0x38(s2)
srl a1,v0,0xd
andi v0,v0,0x1fff
sll v1,a1,0x1
sll v0,v0,0x2
addu v1,v1,a1
addiu a2,a2,0x1
sll v1,v1,0x2
addu v1,a0,v1
lw v1,0x0(v1)
addu v0,v1,v0
lw a0,0x0(v0)
addu v0,a2,a0
sltu v0,a3,v0
bne v0,zero,0x002ae584
_lw t9,-0x3698(gp)
addu a0,s1,a0
jalr t9
_lw a1,0x4(s0)
lw s0,0x0(s0)
bne s0,zero,0x002ae4fc
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
b 0x002ae4f0
_sb zero,0x0(a1)
li a1,0x1e9
lw a2,-0x7924(gp)
lw a0,-0x7924(gp)
lw t9,-0x7810(gp)
addiu a2,a2,0x2420
jalr t9
_addiu a0,a0,0x2290
b 0x002ae588
_li a1,0x1df
b 0x002ae588
_li a1,0x1de
(translation_unit "/* gold::Stringpool_template<char>::write_to_buffer(unsigned char*, unsigned int) */\n\nvoid __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}\n\n" comment (function_definition "void __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)" identifier (parameter_list "(Stringpool_template<char> *this,uchar *param_1,uint param_2)" ( (parameter_declaration "Stringpool_template<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" if (parenthesized_expression "(*(uint *)(this + 0x38) == 0)" ( (binary_expression "*(uint *)(this + 0x38) == 0" (pointer_expression "*(uint *)(this + 0x38)" * (cast_expression "(uint *)(this + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar2 = 0x1de;\n  }" { (expression_statement "uVar2 = 0x1de;" (assignment_expression "uVar2 = 0x1de" identifier = number_literal) ;) }) (else_clause "else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" else (compound_statement "{\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" { (if_statement "if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;" if (parenthesized_expression "(param_2 < *(uint *)(this + 0x38))" ( (binary_expression "param_2 < *(uint *)(this + 0x38)" identifier < (pointer_expression "*(uint *)(this + 0x38)" * (cast_expression "(uint *)(this + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) ))))) )) (goto_statement "goto LAB_002ae5a0;" goto statement_identifier ;)) (if_statement "if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }" if (parenthesized_expression "(this[0x3c] != (Stringpool_template<char>)0x0)" ( (binary_expression "this[0x3c] != (Stringpool_template<char>)0x0)" (subscript_expression "this[0x3c]" identifier [ number_literal ]) != (parenthesized_expression "(Stringpool_template<char>)0x0)" ( (binary_expression "Stringpool_template<char>)0x0" (binary_expression "Stringpool_template<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) )) (compound_statement "{\n      *param_1 = '\0';\n    }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "piVar3 = *(int **)(this + 8);" (assignment_expression "piVar3 = *(int **)(this + 8)" identifier = (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }" { (if_statement "if (piVar3 == (int *)0x0) {\n        return;\n      }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" identifier = (pointer_expression "*(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" * (cast_expression "(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" ( (binary_expression "*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4" (pointer_expression "*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" * (cast_expression "(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" ( (binary_expression "*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc" (pointer_expression "*(int *)(this + 0x1c)" * (cast_expression "(int *)(this + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) )))) + (binary_expression "(piVar3[4] - 1U >> 0xd) * 0xc" (parenthesized_expression "(piVar3[4] - 1U >> 0xd)" ( (binary_expression "piVar3[4] - 1U >> 0xd" (binary_expression "piVar3[4] - 1U" (subscript_expression "piVar3[4]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(piVar3[4] - 1U & 0x1fff) * 4" (parenthesized_expression "(piVar3[4] - 1U & 0x1fff)" ( (binary_expression "piVar3[4] - 1U & 0x1fff" (binary_expression "piVar3[4] - 1U" (subscript_expression "piVar3[4]" identifier [ number_literal ]) - number_literal) & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;" if (parenthesized_expression "(*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1))" ( (binary_expression "*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)" (pointer_expression "*(uint *)(this + 0x38)" * (cast_expression "(uint *)(this + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) < (call_expression "(uint)(piVar3[2] + 1 + iVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[2] + 1 + iVar1)" ( (binary_expression "piVar3[2] + 1 + iVar1" (binary_expression "piVar3[2] + 1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) + number_literal) + identifier) )))) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1])" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" ( (pointer_expression "*(code *)PTR_memcpy_004c5ba8" * (cast_expression "(code *)PTR_memcpy_004c5ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + iVar1,piVar3[1])" ( (binary_expression "param_1 + iVar1" identifier + identifier) , (subscript_expression "piVar3[1]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) })) (expression_statement "uVar2 = 0x1e9;" (assignment_expression "uVar2 = 0x1e9" identifier = number_literal) ;) }))) (do_statement "do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );" do (compound_statement "{\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  }" { (expression_statement "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);" (call_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)" ( (pointer_expression "*(code *)PTR_do_gold_unreachable_004c1a30" * (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" ( (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" identifier + number_literal) , identifier , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2420" identifier + number_literal) ))) ;) (labeled_statement "LAB_002ae5a0:\n    uVar2 = 0x1df;" statement_identifier : (expression_statement "uVar2 = 0x1df;" (assignment_expression "uVar2 = 0x1df" identifier = number_literal) ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: void write_to_buffer(Stringpool_template<char> * this, uchar * buffer,\n   section_size_type bufsize) */\n\nvoid __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *buffer,section_size_type bufsize)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  _Hash_node_base *p_Var4;\n  \n  if (this->strtab_size_ == 0) {\n    uVar3 = 0x1de;\n  }\n  else {\n    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;\n    if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }\n    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n    while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }\n    uVar3 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar3 = 0x1df;\n  } while( true );\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *buffer,section_size_type bufsize)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  _Hash_node_base *p_Var4;\n  \n  if (this->strtab_size_ == 0) {\n    uVar3 = 0x1de;\n  }\n  else {\n    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;\n    if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }\n    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n    while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }\n    uVar3 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar3 = 0x1df;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "write_to_buffer\n          (Stringpool_template<char> *this,uchar *buffer,section_size_type bufsize)" identifier (parameter_list "(Stringpool_template<char> *this,uchar *buffer,section_size_type bufsize)" ( (parameter_declaration "Stringpool_template<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *buffer" type_identifier (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "section_size_type bufsize" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  _Hash_node_base *p_Var4;\n  \n  if (this->strtab_size_ == 0) {\n    uVar3 = 0x1de;\n  }\n  else {\n    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;\n    if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }\n    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n    while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }\n    uVar3 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar3 = 0x1df;\n  } while( true );\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "_Hash_node_base *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (if_statement "if (this->strtab_size_ == 0) {\n    uVar3 = 0x1de;\n  }\n  else {\n    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;\n    if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }\n    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n    while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }\n    uVar3 = 0x1e9;\n  }" if (parenthesized_expression "(this->strtab_size_ == 0)" ( (binary_expression "this->strtab_size_ == 0" (field_expression "this->strtab_size_" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    uVar3 = 0x1de;\n  }" { (expression_statement "uVar3 = 0x1de;" (assignment_expression "uVar3 = 0x1de" identifier = number_literal) ;) }) (else_clause "else {\n    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;\n    if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }\n    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n    while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }\n    uVar3 = 0x1e9;\n  }" else (compound_statement "{\n    if (bufsize < this->strtab_size_) goto LAB_002ae5a0;\n    if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }\n    p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n    while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }\n    uVar3 = 0x1e9;\n  }" { (if_statement "if (bufsize < this->strtab_size_) goto LAB_002ae5a0;" if (parenthesized_expression "(bufsize < this->strtab_size_)" ( (binary_expression "bufsize < this->strtab_size_" identifier < (field_expression "this->strtab_size_" identifier -> field_identifier)) )) (goto_statement "goto LAB_002ae5a0;" goto statement_identifier ;)) (if_statement "if (this->zero_null_ != false) {\n      *buffer = '\0';\n    }" if (parenthesized_expression "(this->zero_null_ != false)" ( (binary_expression "this->zero_null_ != false" (field_expression "this->zero_null_" identifier -> field_identifier) != false) )) (compound_statement "{\n      *buffer = '\0';\n    }" { (expression_statement "*buffer = '\0';" (assignment_expression "*buffer = '\0'" (pointer_expression "*buffer" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt;" (assignment_expression "p_Var4 = (this->string_set_)._M_h._M_before_begin._M_nxt" identifier = (field_expression "(this->string_set_)._M_h._M_before_begin._M_nxt" (field_expression "(this->string_set_)._M_h._M_before_begin" (field_expression "(this->string_set_)._M_h" (parenthesized_expression "(this->string_set_)" ( (field_expression "this->string_set_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (while_statement "while( true ) {\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }\n      puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);\n      iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);\n      if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);\n      p_Var4 = p_Var4->_M_nxt;\n    }" { (if_statement "if (p_Var4 == (_Hash_node_base *)0x0) {\n        return;\n      }" if (parenthesized_expression "(p_Var4 == (_Hash_node_base *)0x0)" ( (binary_expression "p_Var4 == (_Hash_node_base *)0x0" identifier == (cast_expression "(_Hash_node_base *)0x0" ( (type_descriptor "_Hash_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3);" (assignment_expression "puVar1 = (undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3)" identifier = (cast_expression "(undefined1 *)((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3)" ( (binary_expression "(int)&p_Var4[4]._M_nxt[-1]._M_nxt + 3" (cast_expression "(int)&p_Var4[4]._M_nxt[-1]._M_nxt" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var4[4]._M_nxt[-1]._M_nxt" & (field_expression "p_Var4[4]._M_nxt[-1]._M_nxt" (subscript_expression "p_Var4[4]._M_nxt[-1]" (field_expression "p_Var4[4]._M_nxt" (subscript_expression "p_Var4[4]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4);" (assignment_expression "iVar2 = *(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4)" identifier = (pointer_expression "*(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4)" * (cast_expression "(int *)((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4)" ( (ERROR "(int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std::allocator<int>_>,_std::allocator<std::vector<int,_std::allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std::" (comma_expression "(int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int,_std" (binary_expression "(int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<int" (binary_expression "(int)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std" (cast_expression "(int)(this->key_to_offset_).chunks_.\n                            super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->key_to_offset_).chunks_.\n                            super__Vector_base" (field_expression "(this->key_to_offset_).chunks_" (parenthesized_expression "(this->key_to_offset_)" ( (field_expression "this->key_to_offset_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) < identifier) (ERROR "::vector" : : identifier) < identifier) , identifier) : : (binary_expression "allocator<int>_>,_std" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "vector<int,_std" (binary_expression "vector<int" identifier < identifier) , identifier) : : (comma_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int,_std" (binary_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base<int" (field_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd].\n                            super__Vector_base" (subscript_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar1 >> 0xd]" (field_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start" (field_expression "allocator<int>_>_>_>\n                            ._M_impl" (binary_expression "allocator<int>_>_>_" (binary_expression "allocator<int>_>_" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) [ (binary_expression "(uint)puVar1 >> 0xd" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ]) . field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar1 & 0x1fff) * 4" (field_expression "allocator<int>_>._M_impl._M_start" (field_expression "allocator<int>_>._M_impl" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) + (binary_expression "((uint)puVar1 & 0x1fff) * 4" (parenthesized_expression "((uint)puVar1 & 0x1fff)" ( (binary_expression "(uint)puVar1 & 0x1fff" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)) break;" if (parenthesized_expression "(this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1))" ( (binary_expression "this->strtab_size_ < (uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)" (field_expression "this->strtab_size_" identifier -> field_identifier) < (call_expression "(uint)((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1)" ( (binary_expression "(int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2 + 1" (binary_expression "(int)&(p_Var4[2]._M_nxt)->_M_nxt + iVar2" (cast_expression "(int)&(p_Var4[2]._M_nxt)->_M_nxt" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(p_Var4[2]._M_nxt)->_M_nxt" & (field_expression "(p_Var4[2]._M_nxt)->_M_nxt" (parenthesized_expression "(p_Var4[2]._M_nxt)" ( (field_expression "p_Var4[2]._M_nxt" (subscript_expression "p_Var4[2]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier))) + identifier) + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(buffer + iVar2,p_Var4[1]._M_nxt)" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" ( (pointer_expression "*(code *)PTR_memcpy_004c5ba8" * (cast_expression "(code *)PTR_memcpy_004c5ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buffer + iVar2,p_Var4[1]._M_nxt)" ( (binary_expression "buffer + iVar2" identifier + identifier) , (field_expression "p_Var4[1]._M_nxt" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) ))) ;) (expression_statement "p_Var4 = p_Var4->_M_nxt;" (assignment_expression "p_Var4 = p_Var4->_M_nxt" identifier = (field_expression "p_Var4->_M_nxt" identifier -> field_identifier)) ;) })) (expression_statement "uVar3 = 0x1e9;" (assignment_expression "uVar3 = 0x1e9" identifier = number_literal) ;) }))) (do_statement "do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar3 = 0x1df;\n  } while( true );" do (compound_statement "{\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar3 = 0x1df;\n  }" { (expression_statement "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);" (call_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)" ( (pointer_expression "*(code *)PTR_do_gold_unreachable_004c1a30" * (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,uVar3,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" ( (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" identifier + number_literal) , identifier , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2420" identifier + number_literal) ))) ;) (labeled_statement "LAB_002ae5a0:\n    uVar3 = 0x1df;" statement_identifier : (expression_statement "uVar3 = 0x1df;" (assignment_expression "uVar3 = 0x1df" identifier = number_literal) ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}\n\n" (function_definition "void __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)" identifier (parameter_list "(Stringpool_template<char> *this,uchar *param_1,uint param_2)" ( (parameter_declaration "Stringpool_template<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" if (parenthesized_expression "(*(uint *)(this + 0x38) == 0)" ( (binary_expression "*(uint *)(this + 0x38) == 0" (pointer_expression "*(uint *)(this + 0x38)" * (cast_expression "(uint *)(this + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar2 = 0x1de;\n  }" { (expression_statement "uVar2 = 0x1de;" (assignment_expression "uVar2 = 0x1de" identifier = number_literal) ;) }) (else_clause "else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" else (compound_statement "{\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" { (if_statement "if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;" if (parenthesized_expression "(param_2 < *(uint *)(this + 0x38))" ( (binary_expression "param_2 < *(uint *)(this + 0x38)" identifier < (pointer_expression "*(uint *)(this + 0x38)" * (cast_expression "(uint *)(this + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) ))))) )) (goto_statement "goto LAB_002ae5a0;" goto statement_identifier ;)) (if_statement "if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }" if (parenthesized_expression "(this[0x3c] != (Stringpool_template<char>)0x0)" ( (binary_expression "this[0x3c] != (Stringpool_template<char>)0x0)" (subscript_expression "this[0x3c]" identifier [ number_literal ]) != (parenthesized_expression "(Stringpool_template<char>)0x0)" ( (binary_expression "Stringpool_template<char>)0x0" (binary_expression "Stringpool_template<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) )) (compound_statement "{\n      *param_1 = '\0';\n    }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "piVar3 = *(int **)(this + 8);" (assignment_expression "piVar3 = *(int **)(this + 8)" identifier = (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }" { (if_statement "if (piVar3 == (int *)0x0) {\n        return;\n      }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" identifier = (pointer_expression "*(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" * (cast_expression "(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" ( (binary_expression "*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4" (pointer_expression "*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" * (cast_expression "(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" ( (binary_expression "*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc" (pointer_expression "*(int *)(this + 0x1c)" * (cast_expression "(int *)(this + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) )))) + (binary_expression "(piVar3[4] - 1U >> 0xd) * 0xc" (parenthesized_expression "(piVar3[4] - 1U >> 0xd)" ( (binary_expression "piVar3[4] - 1U >> 0xd" (binary_expression "piVar3[4] - 1U" (subscript_expression "piVar3[4]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(piVar3[4] - 1U & 0x1fff) * 4" (parenthesized_expression "(piVar3[4] - 1U & 0x1fff)" ( (binary_expression "piVar3[4] - 1U & 0x1fff" (binary_expression "piVar3[4] - 1U" (subscript_expression "piVar3[4]" identifier [ number_literal ]) - number_literal) & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;" if (parenthesized_expression "(*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1))" ( (binary_expression "*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)" (pointer_expression "*(uint *)(this + 0x38)" * (cast_expression "(uint *)(this + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) < (call_expression "(uint)(piVar3[2] + 1 + iVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[2] + 1 + iVar1)" ( (binary_expression "piVar3[2] + 1 + iVar1" (binary_expression "piVar3[2] + 1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) + number_literal) + identifier) )))) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1])" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" ( (pointer_expression "*(code *)PTR_memcpy_004c5ba8" * (cast_expression "(code *)PTR_memcpy_004c5ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + iVar1,piVar3[1])" ( (binary_expression "param_1 + iVar1" identifier + identifier) , (subscript_expression "piVar3[1]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) })) (expression_statement "uVar2 = 0x1e9;" (assignment_expression "uVar2 = 0x1e9" identifier = number_literal) ;) }))) (do_statement "do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );" do (compound_statement "{\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  }" { (expression_statement "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);" (call_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)" ( (pointer_expression "*(code *)PTR_do_gold_unreachable_004c1a30" * (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" ( (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" identifier + number_literal) , identifier , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2420" identifier + number_literal) ))) ;) (labeled_statement "LAB_002ae5a0:\n    uVar2 = 0x1df;" statement_identifier : (expression_statement "uVar2 = 0x1df;" (assignment_expression "uVar2 = 0x1df" identifier = number_literal) ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT < TYPE > : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (ERROR < TYPE >) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) > (ERROR )) LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) >> LIT) )) * LIT)) )))) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) & LIT) )) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __thiscall\ngold::Stringpool_template<char>::write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::Stringpool_template<char>::" (identifier "gold") (: ":") (: ":") (identifier "Stringpool_template") (< "<") (primitive_type "char") (> ">") (: ":") (: ":")) (function_declarator "write_to_buffer\n          (Stringpool_template<char> *this,uchar *param_1,uint param_2)" (identifier "write_to_buffer") (parameter_list "(Stringpool_template<char> *this,uchar *param_1,uint param_2)" (( "(") (parameter_declaration "Stringpool_template<char> *this" (type_identifier "Stringpool_template") (ERROR "<char>" (< "<") (primitive_type "char") (> ">")) (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "uchar *param_1" (type_identifier "uchar") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }\n  do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if (*(uint *)(this + 0x38) == 0) {\n    uVar2 = 0x1de;\n  }\n  else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" (if "if") (parenthesized_expression "(*(uint *)(this + 0x38) == 0)" (( "(") (binary_expression "*(uint *)(this + 0x38) == 0" (pointer_expression "*(uint *)(this + 0x38)" (* "*") (cast_expression "(uint *)(this + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x38)" (( "(") (binary_expression "this + 0x38" (identifier "this") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0x1de;\n  }" ({ "{") (expression_statement "uVar2 = 0x1de;" (assignment_expression "uVar2 = 0x1de" (identifier "uVar2") (= "=") (number_literal "0x1de")) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" (else "else") (compound_statement "{\n    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;\n    if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }\n    piVar3 = *(int **)(this + 8);\n    while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }\n    uVar2 = 0x1e9;\n  }" ({ "{") (if_statement "if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;" (if "if") (parenthesized_expression "(param_2 < *(uint *)(this + 0x38))" (( "(") (binary_expression "param_2 < *(uint *)(this + 0x38)" (identifier "param_2") (< "<") (pointer_expression "*(uint *)(this + 0x38)" (* "*") (cast_expression "(uint *)(this + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x38)" (( "(") (binary_expression "this + 0x38" (identifier "this") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (goto_statement "goto LAB_002ae5a0;" (goto "goto") (statement_identifier "LAB_002ae5a0") (; ";"))) (if_statement "if (this[0x3c] != (Stringpool_template<char>)0x0) {\n      *param_1 = '\0';\n    }" (if "if") (parenthesized_expression "(this[0x3c] != (Stringpool_template<char>)0x0)" (( "(") (binary_expression "this[0x3c] != (Stringpool_template<char>)0x0)" (subscript_expression "this[0x3c]" (identifier "this") ([ "[") (number_literal "0x3c") (] "]")) (!= "!=") (parenthesized_expression "(Stringpool_template<char>)0x0)" (( "(") (binary_expression "Stringpool_template<char>)0x0" (binary_expression "Stringpool_template<char" (identifier "Stringpool_template") (< "<") (identifier "char")) (> ">") (ERROR ")" () ")")) (number_literal "0x0")) () ")"))) () "")) (compound_statement "{\n      *param_1 = '\0';\n    }" ({ "{") (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (expression_statement "piVar3 = *(int **)(this + 8);" (assignment_expression "piVar3 = *(int **)(this + 8)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(this + 8)" (* "*") (cast_expression "(int **)(this + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 8)" (( "(") (binary_expression "this + 8" (identifier "this") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (piVar3 == (int *)0x0) {\n        return;\n      }\n      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);\n      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;\n      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);\n      piVar3 = (int *)*piVar3;\n    }" ({ "{") (if_statement "if (piVar3 == (int *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" (* "*") (cast_expression "(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4)" (( "(") (binary_expression "*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +\n                      (piVar3[4] - 1U & 0x1fff) * 4" (pointer_expression "*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" (* "*") (cast_expression "(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc)" (( "(") (binary_expression "*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc" (pointer_expression "*(int *)(this + 0x1c)" (* "*") (cast_expression "(int *)(this + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x1c)" (( "(") (binary_expression "this + 0x1c" (identifier "this") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (binary_expression "(piVar3[4] - 1U >> 0xd) * 0xc" (parenthesized_expression "(piVar3[4] - 1U >> 0xd)" (( "(") (binary_expression "piVar3[4] - 1U >> 0xd" (binary_expression "piVar3[4] - 1U" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (- "-") (number_literal "1U")) (>> ">>") (number_literal "0xd")) () ")")) (* "*") (number_literal "0xc"))) () ")")))) (+ "+") (binary_expression "(piVar3[4] - 1U & 0x1fff) * 4" (parenthesized_expression "(piVar3[4] - 1U & 0x1fff)" (( "(") (binary_expression "piVar3[4] - 1U & 0x1fff" (binary_expression "piVar3[4] - 1U" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (- "-") (number_literal "1U")) (& "&") (number_literal "0x1fff")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;" (if "if") (parenthesized_expression "(*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1))" (( "(") (binary_expression "*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)" (pointer_expression "*(uint *)(this + 0x38)" (* "*") (cast_expression "(uint *)(this + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x38)" (( "(") (binary_expression "this + 0x38" (identifier "this") (+ "+") (number_literal "0x38")) () ")")))) (< "<") (call_expression "(uint)(piVar3[2] + 1 + iVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar3[2] + 1 + iVar1)" (( "(") (binary_expression "piVar3[2] + 1 + iVar1" (binary_expression "piVar3[2] + 1" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar1")) () ")")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1])" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" (( "(") (pointer_expression "*(code *)PTR_memcpy_004c5ba8" (* "*") (cast_expression "(code *)PTR_memcpy_004c5ba8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_004c5ba8"))) () ")")) (argument_list "(param_1 + iVar1,piVar3[1])" (( "(") (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) (, ",") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" (identifier "piVar3") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (} "}"))) (expression_statement "uVar2 = 0x1e9;" (assignment_expression "uVar2 = 0x1e9" (identifier "uVar2") (= "=") (number_literal "0x1e9")) (; ";")) (} "}")))) (do_statement "do {\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  } while( true );" (do "do") (compound_statement "{\n    (*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);\nLAB_002ae5a0:\n    uVar2 = 0x1df;\n  }" ({ "{") (expression_statement "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420);" (call_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)\n              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004c1a30)" (( "(") (pointer_expression "*(code *)PTR_do_gold_unreachable_004c1a30" (* "*") (cast_expression "(code *)PTR_do_gold_unreachable_004c1a30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_gold_unreachable_004c1a30"))) () ")")) (argument_list "(PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,\n               PTR_s_in_a_linker_script_004c191c + 0x2420)" (( "(") (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2290" (identifier "PTR_s_in_a_linker_script_004c191c") (+ "+") (number_literal "0x2290")) (, ",") (identifier "uVar2") (, ",") (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x2420" (identifier "PTR_s_in_a_linker_script_004c191c") (+ "+") (number_literal "0x2420")) () ")"))) (; ";")) (labeled_statement "LAB_002ae5a0:\n    uVar2 = 0x1df;" (statement_identifier "LAB_002ae5a0") (: ":") (expression_statement "uVar2 = 0x1df;" (assignment_expression "uVar2 = 0x1df" (identifier "uVar2") (= "=") (number_literal "0x1df")) (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier) (primitive_type)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) (ERROR (primitive_type)) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR) right: (number_literal)))) (MISSING ")")) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) right: (number_literal)))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (identifier)))))) consequence: (break_statement)) (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 (binary_expression left: (identifier) right: (identifier)) (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (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 (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

/* gold::Stringpool_template<char>::MASKED(unsigned char*, unsigned int) */

void __thiscall
gold::Stringpool_template<char>::MASKED
          (Stringpool_template<char> *this,uchar *param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  if (*(uint *)(this + 0x38) == 0) {
    uVar2 = 0x1de;
  }
  else {
    if (param_2 < *(uint *)(this + 0x38)) goto LAB_002ae5a0;
    if (this[0x3c] != (Stringpool_template<char>)0x0) {
      *param_1 = '\0';
    }
    piVar3 = *(int **)(this + 8);
    while( true ) {
      if (piVar3 == (int *)0x0) {
        return;
      }
      iVar1 = *(int *)(*(int *)(*(int *)(this + 0x1c) + (piVar3[4] - 1U >> 0xd) * 0xc) +
                      (piVar3[4] - 1U & 0x1fff) * 4);
      if (*(uint *)(this + 0x38) < (uint)(piVar3[2] + 1 + iVar1)) break;
      (*(code *)PTR_memcpy_004c5ba8)(param_1 + iVar1,piVar3[1]);
      piVar3 = (int *)*piVar3;
    }
    uVar2 = 0x1e9;
  }
  do {
    (*(code *)PTR_do_gold_unreachable_004c1a30)
              (PTR_s_in_a_linker_script_004c191c + 0x2290,uVar2,
               PTR_s_in_a_linker_script_004c191c + 0x2420);
LAB_002ae5a0:
    uVar2 = 0x1df;
  } while( true );
}

