
/* 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)

{
  _Hash_node_base *p_Var1;
  long lVar2;
  undefined1 *puVar3;
  size_t __n;
  
  if (this->strtab_size_ == 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");
  }
  if (bufsize < this->strtab_size_) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");
  }
  if (this->zero_null_ != false) {
    *buffer = '\0';
  }
  p_Var1 = (this->string_set_)._M_h._M_before_begin._M_nxt;
  while( true ) {
    if (p_Var1 == (_Hash_node_base *)0x0) {
      return;
    }
    puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);
    __n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);
    lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.
                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>
                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].
                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start
                     + (ulong)((uint)puVar3 & 0x1fff) * 8);
    if (this->strtab_size_ < __n + lVar2) break;
    memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);
    p_Var1 = p_Var1->_M_nxt;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/stringpool.cc",0x1e9,"write_to_buffer");
}



void FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)

{
  undefined8 *puVar1;
  long lVar2;
  
  if (*(ulong *)(param_1 + 0x70) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");
  }
  if (param_3 < *(ulong *)(param_1 + 0x70)) {
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");
  }
  if (*(char *)(param_1 + 0x78) != '\0') {
    *param_2 = 0;
  }
  puVar1 = *(undefined8 **)(param_1 + 0x10);
  while( true ) {
    if (puVar1 == (undefined8 *)0x0) {
      return;
    }
    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +
                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);
    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;
    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));
    puVar1 = (undefined8 *)*puVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RAX,qword ptr [RDI + 0x70]
TEST RAX,RAX
JZ 0x00218dad
CMP RAX,RDX
JA 0x00218d95
CMP byte ptr [RDI + 0x78],0x0
MOV R12,RDI
MOV RBP,RSI
JNZ 0x00218d78
MOV RBX,qword ptr [R12 + 0x10]
TEST RBX,RBX
JZ 0x00218d70
MOV RAX,qword ptr [RBX + 0x20]
MOV ESI,dword ptr [RBX + 0x10]
SUB RAX,0x1
LEA EDX,[RSI + 0x1]
MOV RSI,qword ptr [R12 + 0x38]
MOV RCX,RAX
AND EAX,0x1fff
MOVSXD RDX,EDX
SHR RCX,0xd
LEA RCX,[RCX + RCX*0x2]
LEA RCX,[RSI + RCX*0x8]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + RAX*0x8]
LEA RAX,[RDX + RDI*0x1]
CMP RAX,qword ptr [R12 + 0x70]
JA 0x00218d7d
MOV RSI,qword ptr [RBX + 0x8]
ADD RDI,RBP
CALL 0x0013eaa0
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JNZ 0x00218d20
POP RBX
POP RBP
POP R12
RET
MOV byte ptr [RSI],0x0
JMP 0x00218d16
LEA RDX,[0x31ecb0]
MOV ESI,0x1e9
LEA RDI,[0x31eaba]
CALL 0x0016cdf0
LEA RDX,[0x31ecb0]
MOV ESI,0x1df
LEA RDI,[0x31eaba]
CALL 0x0016cdf0
LEA RDX,[0x31ecb0]
MOV ESI,0x1de
LEA RDI,[0x31eaba]
CALL 0x0016cdf0
(translation_unit "void FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}\n\n" (function_definition "void FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" primitive_type (function_declarator "FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)" identifier (parameter_list "(long param_1,undefined1 *param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(ulong *)(param_1 + 0x70) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" if (parenthesized_expression "(*(ulong *)(param_1 + 0x70) == 0)" ( (binary_expression "*(ulong *)(param_1 + 0x70) == 0" (pointer_expression "*(ulong *)(param_1 + 0x70)" * (cast_expression "(ulong *)(param_1 + 0x70)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" { comment (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })) (if_statement "if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" if (parenthesized_expression "(param_3 < *(ulong *)(param_1 + 0x70))" ( (binary_expression "param_3 < *(ulong *)(param_1 + 0x70)" identifier < (pointer_expression "*(ulong *)(param_1 + 0x70)" * (cast_expression "(ulong *)(param_1 + 0x70)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" { comment (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x78) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x78) != '\0'" (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" identifier = (pointer_expression "*(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" * (cast_expression "(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8" (pointer_expression "*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" * (cast_expression "(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + (binary_expression "(puVar1[4] - 1 >> 0xd) * 0x18" (parenthesized_expression "(puVar1[4] - 1 >> 0xd)" ( (binary_expression "puVar1[4] - 1 >> 0xd" (binary_expression "puVar1[4] - 1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(puVar1[4] - 1) & 0x1fff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)(puVar1[4] - 1) & 0x1fff)" ( (binary_expression "(uint)(puVar1[4] - 1) & 0x1fff" (call_expression "(uint)(puVar1[4] - 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1[4] - 1)" ( (binary_expression "puVar1[4] - 1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) - number_literal) ))) & number_literal) ))) * number_literal)) ))))) ;) (if_statement "if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;" if (parenthesized_expression "(*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2))" ( (binary_expression "*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)" (pointer_expression "*(ulong *)(param_1 + 0x70)" * (cast_expression "(ulong *)(param_1 + 0x70)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) < (call_expression "(ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((*(int *)(puVar1 + 2) + 1) + lVar2)" ( (binary_expression "(*(int *)(puVar1 + 2) + 1) + lVar2" (parenthesized_expression "(*(int *)(puVar1 + 2) + 1)" ( (binary_expression "*(int *)(puVar1 + 2) + 1" (pointer_expression "*(int *)(puVar1 + 2)" * (cast_expression "(int *)(puVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) + number_literal) )) + identifier) )))) )) (break_statement "break;" break ;)) (expression_statement "memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));" (call_expression "memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1))" identifier (argument_list "(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1))" ( (binary_expression "param_2 + lVar2" identifier + identifier) , (cast_expression "(void *)puVar1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , (cast_expression "(long)(*(int *)(puVar1 + 2) + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(*(int *)(puVar1 + 2) + 1)" ( (binary_expression "*(int *)(puVar1 + 2) + 1" (pointer_expression "*(int *)(puVar1 + 2)" * (cast_expression "(int *)(puVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) + number_literal) ))) ))) ;) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) comment (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })))
(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  _Hash_node_base *p_Var1;\n  long lVar2;\n  undefined1 *puVar3;\n  size_t __n;\n  \n  if (this->strtab_size_ == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (bufsize < this->strtab_size_) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (this->zero_null_ != false) {\n    *buffer = '\0';\n  }\n  p_Var1 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n  while( true ) {\n    if (p_Var1 == (_Hash_node_base *)0x0) {\n      return;\n    }\n    puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);\n    __n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);\n    lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8);\n    if (this->strtab_size_ < __n + lVar2) break;\n    memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);\n    p_Var1 = p_Var1->_M_nxt;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\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  _Hash_node_base *p_Var1;\n  long lVar2;\n  undefined1 *puVar3;\n  size_t __n;\n  \n  if (this->strtab_size_ == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (bufsize < this->strtab_size_) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (this->zero_null_ != false) {\n    *buffer = '\0';\n  }\n  p_Var1 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n  while( true ) {\n    if (p_Var1 == (_Hash_node_base *)0x0) {\n      return;\n    }\n    puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);\n    __n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);\n    lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8);\n    if (this->strtab_size_ < __n + lVar2) break;\n    memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);\n    p_Var1 = p_Var1->_M_nxt;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\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  _Hash_node_base *p_Var1;\n  long lVar2;\n  undefined1 *puVar3;\n  size_t __n;\n  \n  if (this->strtab_size_ == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (bufsize < this->strtab_size_) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (this->zero_null_ != false) {\n    *buffer = '\0';\n  }\n  p_Var1 = (this->string_set_)._M_h._M_before_begin._M_nxt;\n  while( true ) {\n    if (p_Var1 == (_Hash_node_base *)0x0) {\n      return;\n    }\n    puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);\n    __n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);\n    lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8);\n    if (this->strtab_size_ < __n + lVar2) break;\n    memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);\n    p_Var1 = p_Var1->_M_nxt;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" { (declaration "_Hash_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (if_statement "if (this->strtab_size_ == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");\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                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");" (call_expression "do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })) (if_statement "if (bufsize < this->strtab_size_) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" if (parenthesized_expression "(bufsize < this->strtab_size_)" ( (binary_expression "bufsize < this->strtab_size_" identifier < (field_expression "this->strtab_size_" identifier -> field_identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");" (call_expression "do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })) (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_Var1 = (this->string_set_)._M_h._M_before_begin._M_nxt;" (assignment_expression "p_Var1 = (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_Var1 == (_Hash_node_base *)0x0) {\n      return;\n    }\n    puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);\n    __n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);\n    lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8);\n    if (this->strtab_size_ < __n + lVar2) break;\n    memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);\n    p_Var1 = p_Var1->_M_nxt;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (p_Var1 == (_Hash_node_base *)0x0) {\n      return;\n    }\n    puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);\n    __n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);\n    lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8);\n    if (this->strtab_size_ < __n + lVar2) break;\n    memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);\n    p_Var1 = p_Var1->_M_nxt;\n  }" { (if_statement "if (p_Var1 == (_Hash_node_base *)0x0) {\n      return;\n    }" if (parenthesized_expression "(p_Var1 == (_Hash_node_base *)0x0)" ( (binary_expression "p_Var1 == (_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 "puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7);" (assignment_expression "puVar3 = (undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7)" identifier = (cast_expression "(undefined1 *)((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7)" ( (binary_expression "(long)&p_Var1[4]._M_nxt[-1]._M_nxt + 7" (cast_expression "(long)&p_Var1[4]._M_nxt[-1]._M_nxt" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p_Var1[4]._M_nxt[-1]._M_nxt" & (field_expression "p_Var1[4]._M_nxt[-1]._M_nxt" (subscript_expression "p_Var1[4]._M_nxt[-1]" (field_expression "p_Var1[4]._M_nxt" (subscript_expression "p_Var1[4]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "__n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1);" (assignment_expression "__n = (size_t)(*(int *)&p_Var1[2]._M_nxt + 1)" identifier = (cast_expression "(size_t)(*(int *)&p_Var1[2]._M_nxt + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(*(int *)&p_Var1[2]._M_nxt + 1)" ( (binary_expression "*(int *)&p_Var1[2]._M_nxt + 1" (pointer_expression "*(int *)&p_Var1[2]._M_nxt" * (cast_expression "(int *)&p_Var1[2]._M_nxt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var1[2]._M_nxt" & (field_expression "p_Var1[2]._M_nxt" (subscript_expression "p_Var1[2]" identifier [ number_literal ]) . field_identifier)))) + number_literal) )))) ;) (expression_statement "lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8);" (assignment_expression "lVar2 = *(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8)" identifier = (pointer_expression "*(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8)" * (cast_expression "(long *)((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8)" ( (ERROR "(long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std::" (comma_expression "(long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int,_std" (binary_expression "(long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std::vector<long_int" (binary_expression "(long)(this->key_to_offset_).chunks_.\n                            super__Vector_base<std" (cast_expression "(long)(this->key_to_offset_).chunks_.\n                            super__Vector_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (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<long_int>_>,_std" (binary_expression "allocator<long_int>_" (binary_expression "allocator<long_int" identifier < identifier) > identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "vector<long_int,_std" (binary_expression "vector<long_int" identifier < identifier) , identifier) : : (comma_expression "allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int,_std" (binary_expression "allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base<long_int" (field_expression "allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].\n                            super__Vector_base" (subscript_expression "allocator<long_int>_>_>_>\n                            ._M_impl._M_start[(ulong)puVar3 >> 0xd]" (field_expression "allocator<long_int>_>_>_>\n                            ._M_impl._M_start" (field_expression "allocator<long_int>_>_>_>\n                            ._M_impl" (binary_expression "allocator<long_int>_>_>_" (binary_expression "allocator<long_int>_>_" (binary_expression "allocator<long_int>_" (binary_expression "allocator<long_int" identifier < identifier) > identifier) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) [ (binary_expression "(ulong)puVar3 >> 0xd" (cast_expression "(ulong)puVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ]) . field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<long_int>_>._M_impl._M_start\n                     + (ulong)((uint)puVar3 & 0x1fff) * 8" (field_expression "allocator<long_int>_>._M_impl._M_start" (field_expression "allocator<long_int>_>._M_impl" (binary_expression "allocator<long_int>_" (binary_expression "allocator<long_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) + (binary_expression "(ulong)((uint)puVar3 & 0x1fff) * 8" (call_expression "(ulong)((uint)puVar3 & 0x1fff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)puVar3 & 0x1fff)" ( (binary_expression "(uint)puVar3 & 0x1fff" (cast_expression "(uint)puVar3" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) * number_literal)) ))))) ;) (if_statement "if (this->strtab_size_ < __n + lVar2) break;" if (parenthesized_expression "(this->strtab_size_ < __n + lVar2)" ( (binary_expression "this->strtab_size_ < __n + lVar2" (field_expression "this->strtab_size_" identifier -> field_identifier) < (binary_expression "__n + lVar2" identifier + identifier)) )) (break_statement "break;" break ;)) (expression_statement "memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n);" (call_expression "memcpy(buffer + lVar2,p_Var1[1]._M_nxt,__n)" identifier (argument_list "(buffer + lVar2,p_Var1[1]._M_nxt,__n)" ( (binary_expression "buffer + lVar2" identifier + identifier) , (field_expression "p_Var1[1]._M_nxt" (subscript_expression "p_Var1[1]" identifier [ number_literal ]) . field_identifier) , identifier ))) ;) (expression_statement "p_Var1 = p_Var1->_M_nxt;" (assignment_expression "p_Var1 = p_Var1->_M_nxt" identifier = (field_expression "p_Var1->_M_nxt" identifier -> field_identifier)) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "do_gold_unreachable("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    \n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}\n\n" (function_definition "void FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    \n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" primitive_type (function_declarator "FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)" identifier (parameter_list "(long param_1,undefined1 *param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    \n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" if (parenthesized_expression "(*(ulong *)(param_1 + 0x70) == 0)" ( (binary_expression "*(ulong *)(param_1 + 0x70) == 0" (pointer_expression "*(ulong *)(param_1 + 0x70)" * (cast_expression "(ulong *)(param_1 + 0x70)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" { (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })) (if_statement "if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" if (parenthesized_expression "(param_3 < *(ulong *)(param_1 + 0x70))" ( (binary_expression "param_3 < *(ulong *)(param_1 + 0x70)" identifier < (pointer_expression "*(ulong *)(param_1 + 0x70)" * (cast_expression "(ulong *)(param_1 + 0x70)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" { (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x78) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x78) != '\0'" (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" identifier = (pointer_expression "*(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" * (cast_expression "(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8" (pointer_expression "*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" * (cast_expression "(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + (binary_expression "(puVar1[4] - 1 >> 0xd) * 0x18" (parenthesized_expression "(puVar1[4] - 1 >> 0xd)" ( (binary_expression "puVar1[4] - 1 >> 0xd" (binary_expression "puVar1[4] - 1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(puVar1[4] - 1) & 0x1fff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)(puVar1[4] - 1) & 0x1fff)" ( (binary_expression "(uint)(puVar1[4] - 1) & 0x1fff" (call_expression "(uint)(puVar1[4] - 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1[4] - 1)" ( (binary_expression "puVar1[4] - 1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) - number_literal) ))) & number_literal) ))) * number_literal)) ))))) ;) (if_statement "if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;" if (parenthesized_expression "(*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2))" ( (binary_expression "*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)" (pointer_expression "*(ulong *)(param_1 + 0x70)" * (cast_expression "(ulong *)(param_1 + 0x70)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) < (call_expression "(ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((*(int *)(puVar1 + 2) + 1) + lVar2)" ( (binary_expression "(*(int *)(puVar1 + 2) + 1) + lVar2" (parenthesized_expression "(*(int *)(puVar1 + 2) + 1)" ( (binary_expression "*(int *)(puVar1 + 2) + 1" (pointer_expression "*(int *)(puVar1 + 2)" * (cast_expression "(int *)(puVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) + number_literal) )) + identifier) )))) )) (break_statement "break;" break ;)) (expression_statement "memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));" (call_expression "memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1))" identifier (argument_list "(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1))" ( (binary_expression "param_2 + lVar2" identifier + identifier) , (cast_expression "(void *)puVar1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , (cast_expression "(long)(*(int *)(puVar1 + 2) + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(*(int *)(puVar1 + 2) + 1)" ( (binary_expression "*(int *)(puVar1 + 2) + 1" (pointer_expression "*(int *)(puVar1 + 2)" * (cast_expression "(int *)(puVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) + number_literal) ))) ))) ;) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" identifier (argument_list "("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression 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 ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) + IDENT) )))) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    \n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" (primitive_type "void") (function_declarator "FUN_00218cf0(long param_1,undefined1 *param_2,ulong param_3)" (identifier "FUN_00218cf0") (parameter_list "(long param_1,undefined1 *param_2,ulong param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  \n  if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }\n  if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }\n  if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }\n  puVar1 = *(undefined8 **)(param_1 + 0x10);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }\n                    \n  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (if_statement "if (*(ulong *)(param_1 + 0x70) == 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" (if "if") (parenthesized_expression "(*(ulong *)(param_1 + 0x70) == 0)" (( "(") (binary_expression "*(ulong *)(param_1 + 0x70) == 0" (pointer_expression "*(ulong *)(param_1 + 0x70)" (* "*") (cast_expression "(ulong *)(param_1 + 0x70)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");\n  }" ({ "{") (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer")" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x1de") (, ",") (string_literal ""write_to_buffer"" (" """) (string_content "write_to_buffer") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 < *(ulong *)(param_1 + 0x70)) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" (if "if") (parenthesized_expression "(param_3 < *(ulong *)(param_1 + 0x70))" (( "(") (binary_expression "param_3 < *(ulong *)(param_1 + 0x70)" (identifier "param_3") (< "<") (pointer_expression "*(ulong *)(param_1 + 0x70)" (* "*") (cast_expression "(ulong *)(param_1 + 0x70)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n  }" ({ "{") (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer")" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x1df") (, ",") (string_literal ""write_to_buffer"" (" """) (string_content "write_to_buffer") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 0x78) != '\0') {\n    *param_2 = 0;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x78) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x78) != '\0'" (pointer_expression "*(char *)(param_1 + 0x78)" (* "*") (cast_expression "(char *)(param_1 + 0x78)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *param_2 = 0;\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x10)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);\n    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;\n    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));\n    puVar1 = (undefined8 *)*puVar1;\n  }" ({ "{") (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined8 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" (* "*") (cast_expression "(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8)" (( "(") (binary_expression "*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +\n                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8" (pointer_expression "*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18" (pointer_expression "*(long *)(param_1 + 0x38)" (* "*") (cast_expression "(long *)(param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (binary_expression "(puVar1[4] - 1 >> 0xd) * 0x18" (parenthesized_expression "(puVar1[4] - 1 >> 0xd)" (( "(") (binary_expression "puVar1[4] - 1 >> 0xd" (binary_expression "puVar1[4] - 1" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (- "-") (number_literal "1")) (>> ">>") (number_literal "0xd")) () ")")) (* "*") (number_literal "0x18"))) () ")")))) (+ "+") (binary_expression "(ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(puVar1[4] - 1) & 0x1fff)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((uint)(puVar1[4] - 1) & 0x1fff)" (( "(") (binary_expression "(uint)(puVar1[4] - 1) & 0x1fff" (call_expression "(uint)(puVar1[4] - 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1[4] - 1)" (( "(") (binary_expression "puVar1[4] - 1" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (- "-") (number_literal "1")) () ")"))) (& "&") (number_literal "0x1fff")) () ")"))) (* "*") (number_literal "8"))) () ")"))))) (; ";")) (if_statement "if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;" (if "if") (parenthesized_expression "(*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2))" (( "(") (binary_expression "*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)" (pointer_expression "*(ulong *)(param_1 + 0x70)" (* "*") (cast_expression "(ulong *)(param_1 + 0x70)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (< "<") (call_expression "(ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((*(int *)(puVar1 + 2) + 1) + lVar2)" (( "(") (binary_expression "(*(int *)(puVar1 + 2) + 1) + lVar2" (parenthesized_expression "(*(int *)(puVar1 + 2) + 1)" (( "(") (binary_expression "*(int *)(puVar1 + 2) + 1" (pointer_expression "*(int *)(puVar1 + 2)" (* "*") (cast_expression "(int *)(puVar1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (+ "+") (number_literal "1")) () ")")) (+ "+") (identifier "lVar2")) () ")")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));" (call_expression "memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1))" (identifier "memcpy") (argument_list "(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1))" (( "(") (binary_expression "param_2 + lVar2" (identifier "param_2") (+ "+") (identifier "lVar2")) (, ",") (cast_expression "(void *)puVar1[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (, ",") (cast_expression "(long)(*(int *)(puVar1 + 2) + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(*(int *)(puVar1 + 2) + 1)" (( "(") (binary_expression "*(int *)(puVar1 + 2) + 1" (pointer_expression "*(int *)(puVar1 + 2)" (* "*") (cast_expression "(int *)(puVar1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (+ "+") (number_literal "1")) () ")"))) () ")"))) (; ";")) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*puVar1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x1e9") (, ",") (string_literal ""write_to_buffer"" (" """) (string_content "write_to_buffer") (" """)) () ")"))) (; ";")) (} "}")))

/* 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::type_1<char>::function_1
          (type_1<char> *this,type_2 *var_10,type_3 var_2)

{
  type_4 *var_3;
  long var_8;
  type_5 *puVar3;
  size_t var_7;
  
  if (this->strtab_size_ == 0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/stringpool.cc",0x1de,"write_to_buffer");
  }
  if (var_2 < this->strtab_size_) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/stringpool.cc",0x1df,"write_to_buffer");
  }
  if (this->zero_null_ != false) {
    *var_10 = '\0';
  }
  var_3 = (this->string_set_)._M_h._M_before_begin._M_nxt;
  while( true ) {
    if (var_3 == (type_4 *)0x0) {
      return;
    }
    puVar3 = (type_5 *)((long)&var_3[4]._M_nxt[-1]._M_nxt + 7);
    var_7 = (size_t)(*(int *)&var_3[2]._M_nxt + 1);
    var_8 = *(long *)((long)(this->key_to_offset_).chunks_.
                            super__Vector_base<std::vector<var_5,_std::var_4<var_5>var_6>,_std::var_4<std::vector<var_5,_std::var_4<var_5>var_6>var_6>var_6>
                            ._M_impl._M_start[(ulong)puVar3 >> 0xd].
                            super__Vector_base<var_5,_std::var_4<var_5>var_6>._M_impl._M_start
                     + (ulong)((type_6)puVar3 & 0x1fff) * 8);
    if (this->strtab_size_ < var_7 + var_8) break;
    var_9(var_10 + var_8,var_3[1]._M_nxt,var_7);
    var_3 = var_3->_M_nxt;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/stringpool.cc",0x1e9,"write_to_buffer");
}


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

void MASKED(long param_1,undefined1 *param_2,ulong param_3)

{
  undefined8 *puVar1;
  long lVar2;
  
  if (*(ulong *)(param_1 + 0x70) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/stringpool.cc",0x1de,"write_to_buffer");
  }
  if (param_3 < *(ulong *)(param_1 + 0x70)) {
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/stringpool.cc",0x1df,"write_to_buffer");
  }
  if (*(char *)(param_1 + 0x78) != '\0') {
    *param_2 = 0;
  }
  puVar1 = *(undefined8 **)(param_1 + 0x10);
  while( true ) {
    if (puVar1 == (undefined8 *)0x0) {
      return;
    }
    lVar2 = *(long *)(*(long *)(*(long *)(param_1 + 0x38) + (puVar1[4] - 1 >> 0xd) * 0x18) +
                     (ulong)((uint)(puVar1[4] - 1) & 0x1fff) * 8);
    if (*(ulong *)(param_1 + 0x70) < (ulong)((*(int *)(puVar1 + 2) + 1) + lVar2)) break;
    memcpy(param_2 + lVar2,(void *)puVar1[1],(long)(*(int *)(puVar1 + 2) + 1));
    puVar1 = (undefined8 *)*puVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016cdf0("../../gold/stringpool.cc",0x1e9,"write_to_buffer");
}

