
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void write_to_buffer(Stringpool_template<short_unsigned_int> * this,
   uchar * buffer, section_size_type bufsize) */

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

{
  size_t __n;
  _Hash_node_base *p_Var1;
  int iVar2;
  undefined1 *puVar3;
  
  if (this->strtab_size_ == 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/stringpool.cc",0x1de,"write_to_buffer");
  }
  if (this->strtab_size_ <= bufsize) {
    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;
      }
      __n = (int)p_Var1[2]._M_nxt * 2 + 2;
      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].
                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +
                      ((uint)puVar3 & 0x1fff) * 4);
      if (this->strtab_size_ < __n + iVar2) break;
      memcpy(buffer + iVar2,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");
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");
}



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

void __regparm2
FUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)

{
  size_t __n;
  uint uVar1;
  undefined4 *puVar2;
  int iVar3;
  
  uVar1 = *(uint *)(param_3 + 0x38);
  if (uVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);
  }
  if (uVar1 <= param_5) {
    if (*(char *)(param_3 + 0x3c) != '\0') {
      *param_4 = 0;
    }
    puVar2 = *(undefined4 **)(param_3 + 8);
    while( true ) {
      if (puVar2 == (undefined4 *)0x0) {
        return;
      }
      __n = puVar2[2] * 2 + 2;
      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +
                      (puVar2[4] - 1 & 0x1fff) * 4);
      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;
      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);
      puVar2 = (undefined4 *)*puVar2;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x21d4c7
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EBP + 0x38]
TEST EAX,EAX
JZ 0x00171bf9
CMP EAX,dword ptr [ESP + 0x28]
JA 0x00171be0
CMP byte ptr [EBP + 0x3c],0x0
JNZ 0x00171bc0
MOV ESI,dword ptr [EBP + 0x8]
TEST ESI,ESI
JZ 0x00171bb6
LEA ESI,[ESI]
MOV EAX,dword ptr [ESI + 0x8]
LEA ECX,[EAX + EAX*0x1 + 0x2]
MOV EAX,dword ptr [ESI + 0x10]
SUB EAX,0x1
MOV EDX,EAX
AND EAX,0x1fff
SHR EDX,0xd
LEA EDX,[EDX + EDX*0x2]
SHL EDX,0x2
ADD EDX,dword ptr [EBP + 0x1c]
MOV EDX,dword ptr [EDX]
MOV EAX,dword ptr [EDX + EAX*0x4]
LEA EDX,[ECX + EAX*0x1]
CMP EDX,dword ptr [EBP + 0x38]
JA 0x00171bc5
MOV EDX,dword ptr [ESI + 0x4]
SUB ESP,0x4
ADD EAX,EDI
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x000295c0
MOV ESI,dword ptr [ESI]
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x00171b70
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [EDI],0x0
JMP 0x00171b65
SUB ESP,0x4
LEA EAX,[EBX + 0xfff0a75c]
PUSH EAX
LEA EAX,[EBX + 0xfff0a66a]
PUSH 0x1e9
PUSH EAX
CALL 0x00069d00
PUSH EAX
LEA EAX,[EBX + 0xfff0a75c]
PUSH EAX
LEA EAX,[EBX + 0xfff0a66a]
PUSH 0x1df
PUSH EAX
CALL 0x00069d00
LEA EAX,[EBX + 0xfff0a75c]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfff0a66a]
PUSH 0x1de
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2\nFUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)\n\n{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}\n\n" comment (function_definition "void __regparm2\nFUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)\n\n{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_3 + 0x38);" (assignment_expression "uVar1 = *(uint *)(param_3 + 0x38)" identifier = (pointer_expression "*(uint *)(param_3 + 0x38)" * (cast_expression "(uint *)(param_3 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }" { comment (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2)" identifier (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") , identifier ))) ;) })) (if_statement "if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }" if (parenthesized_expression "(uVar1 <= param_5)" ( (binary_expression "uVar1 <= param_5" identifier <= identifier) )) (compound_statement "{\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }" { (if_statement "if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }" if (parenthesized_expression "(*(char *)(param_3 + 0x3c) != '\0')" ( (binary_expression "*(char *)(param_3 + 0x3c) != '\0'" (pointer_expression "*(char *)(param_3 + 0x3c)" * (cast_expression "(char *)(param_3 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x3c)" ( (binary_expression "param_3 + 0x3c" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) (expression_statement "puVar2 = *(undefined4 **)(param_3 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_3 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_3 + 8)" * (cast_expression "(undefined4 **)(param_3 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }" { (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "__n = puVar2[2] * 2 + 2;" (assignment_expression "__n = puVar2[2] * 2 + 2" identifier = (binary_expression "puVar2[2] * 2 + 2" (binary_expression "puVar2[2] * 2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) * number_literal) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" identifier = (pointer_expression "*(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" * (cast_expression "(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" ( (binary_expression "*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4" (pointer_expression "*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" * (cast_expression "(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" ( (binary_expression "(puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)" (binary_expression "(puVar2[4] - 1 >> 0xd) * 0xc" (parenthesized_expression "(puVar2[4] - 1 >> 0xd)" ( (binary_expression "puVar2[4] - 1 >> 0xd" (binary_expression "puVar2[4] - 1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal) + (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) ))))) )))) + (binary_expression "(puVar2[4] - 1 & 0x1fff) * 4" (parenthesized_expression "(puVar2[4] - 1 & 0x1fff)" ( (binary_expression "puVar2[4] - 1 & 0x1fff" (binary_expression "puVar2[4] - 1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) - number_literal) & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;" if (parenthesized_expression "(*(uint *)(param_3 + 0x38) < __n + iVar3)" ( (binary_expression "*(uint *)(param_3 + 0x38) < __n + iVar3" (pointer_expression "*(uint *)(param_3 + 0x38)" * (cast_expression "(uint *)(param_3 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) )))) < (binary_expression "__n + iVar3" identifier + identifier)) )) (break_statement "break;" break ;)) (expression_statement "memcpy(param_4 + iVar3,(void *)puVar2[1],__n);" (call_expression "memcpy(param_4 + iVar3,(void *)puVar2[1],__n)" identifier (argument_list "(param_4 + iVar3,(void *)puVar2[1],__n)" ( (binary_expression "param_4 + iVar3" identifier + identifier) , (cast_expression "(void *)puVar2[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)*puVar2;" (assignment_expression "puVar2 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) })) comment (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "FUN_00069d00("../../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 ") ))) ;) })) comment (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1)" identifier (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: void write_to_buffer(Stringpool_template<short_unsigned_int> * this,\n   uchar * buffer, section_size_type bufsize) */\n\nvoid __thiscall\ngold::Stringpool_template<short_unsigned_int>::write_to_buffer\n          (Stringpool_template<short_unsigned_int> *this,uchar *buffer,section_size_type bufsize)\n\n{\n  size_t __n;\n  _Hash_node_base *p_Var1;\n  int iVar2;\n  undefined1 *puVar3;\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 (this->strtab_size_ <= bufsize) {\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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::Stringpool_template<short_unsigned_int>::write_to_buffer\n          (Stringpool_template<short_unsigned_int> *this,uchar *buffer,section_size_type bufsize)\n\n{\n  size_t __n;\n  _Hash_node_base *p_Var1;\n  int iVar2;\n  undefined1 *puVar3;\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 (this->strtab_size_ <= bufsize) {\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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<short_unsigned_int>::" identifier : : identifier < identifier > : :) (function_declarator "write_to_buffer\n          (Stringpool_template<short_unsigned_int> *this,uchar *buffer,section_size_type bufsize)" identifier (parameter_list "(Stringpool_template<short_unsigned_int> *this,uchar *buffer,section_size_type bufsize)" ( (parameter_declaration "Stringpool_template<short_unsigned_int> *this" type_identifier (ERROR "<short_unsigned_int>" < identifier >) (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  size_t __n;\n  _Hash_node_base *p_Var1;\n  int iVar2;\n  undefined1 *puVar3;\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 (this->strtab_size_ <= bufsize) {\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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.cc",0x1df,"write_to_buffer");\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "_Hash_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * 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 (this->strtab_size_ <= bufsize) {\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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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  }" if (parenthesized_expression "(this->strtab_size_ <= bufsize)" ( (binary_expression "this->strtab_size_ <= bufsize" (field_expression "this->strtab_size_" identifier -> field_identifier) <= identifier) )) (compound_statement "{\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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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  }" { (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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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      __n = (int)p_Var1[2]._M_nxt * 2 + 2;\n      puVar3 = (undefined1 *)((int)&p_Var1[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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 0x1fff) * 4);\n      if (this->strtab_size_ < __n + iVar2) break;\n      memcpy(buffer + iVar2,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 "__n = (int)p_Var1[2]._M_nxt * 2 + 2;" (assignment_expression "__n = (int)p_Var1[2]._M_nxt * 2 + 2" identifier = (binary_expression "(int)p_Var1[2]._M_nxt * 2 + 2" (binary_expression "(int)p_Var1[2]._M_nxt * 2" (cast_expression "(int)p_Var1[2]._M_nxt" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Var1[2]._M_nxt" (subscript_expression "p_Var1[2]" identifier [ number_literal ]) . field_identifier)) * number_literal) + number_literal)) ;) (expression_statement "puVar3 = (undefined1 *)((int)&p_Var1[4]._M_nxt[-1]._M_nxt + 3);" (assignment_expression "puVar3 = (undefined1 *)((int)&p_Var1[4]._M_nxt[-1]._M_nxt + 3)" identifier = (cast_expression "(undefined1 *)((int)&p_Var1[4]._M_nxt[-1]._M_nxt + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p_Var1[4]._M_nxt[-1]._M_nxt + 3)" ( (binary_expression "(int)&p_Var1[4]._M_nxt[-1]._M_nxt + 3" (cast_expression "(int)&p_Var1[4]._M_nxt[-1]._M_nxt" ( (type_descriptor "int" primitive_type) ) (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 "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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std::allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 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)puVar3 >> 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)puVar3 >> 0xd].\n                            super__Vector_base<int,_std" (binary_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar3 >> 0xd].\n                            super__Vector_base<int" (field_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar3 >> 0xd].\n                            super__Vector_base" (subscript_expression "allocator<int>_>_>_>\n                            ._M_impl._M_start[(uint)puVar3 >> 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)puVar3 >> 0xd" (cast_expression "(uint)puVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ]) . field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>._M_impl._M_start +\n                      ((uint)puVar3 & 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)puVar3 & 0x1fff) * 4" (parenthesized_expression "((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 + iVar2) break;" if (parenthesized_expression "(this->strtab_size_ < __n + iVar2)" ( (binary_expression "this->strtab_size_ < __n + iVar2" (field_expression "this->strtab_size_" identifier -> field_identifier) < (binary_expression "__n + iVar2" identifier + identifier)) )) (break_statement "break;" break ;)) (expression_statement "memcpy(buffer + iVar2,p_Var1[1]._M_nxt,__n);" (call_expression "memcpy(buffer + iVar2,p_Var1[1]._M_nxt,__n)" identifier (argument_list "(buffer + iVar2,p_Var1[1]._M_nxt,__n)" ( (binary_expression "buffer + iVar2" 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 ") ))) ;) })) 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 ") ))) ;) })))
(translation_unit "void __regparm2\nFUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)\n\n{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}\n\n" (function_definition "void __regparm2\nFUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)\n\n{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_3 + 0x38);" (assignment_expression "uVar1 = *(uint *)(param_3 + 0x38)" identifier = (pointer_expression "*(uint *)(param_3 + 0x38)" * (cast_expression "(uint *)(param_3 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }" { (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2)" identifier (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") , identifier ))) ;) })) (if_statement "if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }" if (parenthesized_expression "(uVar1 <= param_5)" ( (binary_expression "uVar1 <= param_5" identifier <= identifier) )) (compound_statement "{\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }" { (if_statement "if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }" if (parenthesized_expression "(*(char *)(param_3 + 0x3c) != '\0')" ( (binary_expression "*(char *)(param_3 + 0x3c) != '\0'" (pointer_expression "*(char *)(param_3 + 0x3c)" * (cast_expression "(char *)(param_3 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x3c)" ( (binary_expression "param_3 + 0x3c" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) (expression_statement "puVar2 = *(undefined4 **)(param_3 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_3 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_3 + 8)" * (cast_expression "(undefined4 **)(param_3 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }" { (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "__n = puVar2[2] * 2 + 2;" (assignment_expression "__n = puVar2[2] * 2 + 2" identifier = (binary_expression "puVar2[2] * 2 + 2" (binary_expression "puVar2[2] * 2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) * number_literal) + number_literal)) ;) (expression_statement "iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" identifier = (pointer_expression "*(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" * (cast_expression "(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" ( (binary_expression "*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4" (pointer_expression "*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" * (cast_expression "(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" ( (binary_expression "(puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)" (binary_expression "(puVar2[4] - 1 >> 0xd) * 0xc" (parenthesized_expression "(puVar2[4] - 1 >> 0xd)" ( (binary_expression "puVar2[4] - 1 >> 0xd" (binary_expression "puVar2[4] - 1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal) + (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) ))))) )))) + (binary_expression "(puVar2[4] - 1 & 0x1fff) * 4" (parenthesized_expression "(puVar2[4] - 1 & 0x1fff)" ( (binary_expression "puVar2[4] - 1 & 0x1fff" (binary_expression "puVar2[4] - 1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) - number_literal) & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;" if (parenthesized_expression "(*(uint *)(param_3 + 0x38) < __n + iVar3)" ( (binary_expression "*(uint *)(param_3 + 0x38) < __n + iVar3" (pointer_expression "*(uint *)(param_3 + 0x38)" * (cast_expression "(uint *)(param_3 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) )))) < (binary_expression "__n + iVar3" identifier + identifier)) )) (break_statement "break;" break ;)) (expression_statement "memcpy(param_4 + iVar3,(void *)puVar2[1],__n);" (call_expression "memcpy(param_4 + iVar3,(void *)puVar2[1],__n)" identifier (argument_list "(param_4 + iVar3,(void *)puVar2[1],__n)" ( (binary_expression "param_4 + iVar3" identifier + identifier) , (cast_expression "(void *)puVar2[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)*puVar2;" (assignment_expression "puVar2 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) })) (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "FUN_00069d00("../../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 ") ))) ;) })) (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1)" identifier (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""write_to_buffer"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (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 = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) + LIT)) ;) (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 (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) >> LIT) )) * LIT) + (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)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (binary_expression IDENT + 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 ])) , IDENT ))) ;) (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 ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void __regparm2\nFUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)\n\n{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00171b30(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)" (identifier "FUN_00171b30") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined1 *param_4" (type_identifier "undefined1") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  size_t __n;\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)(param_3 + 0x38);\n  if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }\n  if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "uVar1 = *(uint *)(param_3 + 0x38);" (assignment_expression "uVar1 = *(uint *)(param_3 + 0x38)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_3 + 0x38)" (* "*") (cast_expression "(uint *)(param_3 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x38)" (( "(") (binary_expression "param_3 + 0x38" (identifier "param_3") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (uVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2)" (identifier "FUN_00069d00") (argument_list "("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2)" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x1de") (, ",") (string_literal ""write_to_buffer"" (" """) (string_content "write_to_buffer") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (uVar1 <= param_5) {\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }" (if "if") (parenthesized_expression "(uVar1 <= param_5)" (( "(") (binary_expression "uVar1 <= param_5" (identifier "uVar1") (<= "<=") (identifier "param_5")) () ")")) (compound_statement "{\n    if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }\n    puVar2 = *(undefined4 **)(param_3 + 8);\n    while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");\n  }" ({ "{") (if_statement "if (*(char *)(param_3 + 0x3c) != '\0') {\n      *param_4 = 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_3 + 0x3c) != '\0')" (( "(") (binary_expression "*(char *)(param_3 + 0x3c) != '\0'" (pointer_expression "*(char *)(param_3 + 0x3c)" (* "*") (cast_expression "(char *)(param_3 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x3c)" (( "(") (binary_expression "param_3 + 0x3c" (identifier "param_3") (+ "+") (number_literal "0x3c")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *param_4 = 0;\n    }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "puVar2 = *(undefined4 **)(param_3 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_3 + 8)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(param_3 + 8)" (* "*") (cast_expression "(undefined4 **)(param_3 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }\n      __n = puVar2[2] * 2 + 2;\n      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);\n      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;\n      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);\n      puVar2 = (undefined4 *)*puVar2;\n    }" ({ "{") (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__n = puVar2[2] * 2 + 2;" (assignment_expression "__n = puVar2[2] * 2 + 2" (identifier "__n") (= "=") (binary_expression "puVar2[2] * 2 + 2" (binary_expression "puVar2[2] * 2" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (* "*") (number_literal "2")) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" (* "*") (cast_expression "(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4)" (( "(") (binary_expression "*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +\n                      (puVar2[4] - 1 & 0x1fff) * 4" (pointer_expression "*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" (* "*") (cast_expression "(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c))" (( "(") (binary_expression "(puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)" (binary_expression "(puVar2[4] - 1 >> 0xd) * 0xc" (parenthesized_expression "(puVar2[4] - 1 >> 0xd)" (( "(") (binary_expression "puVar2[4] - 1 >> 0xd" (binary_expression "puVar2[4] - 1" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (- "-") (number_literal "1")) (>> ">>") (number_literal "0xd")) () ")")) (* "*") (number_literal "0xc")) (+ "+") (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")))) (+ "+") (binary_expression "(puVar2[4] - 1 & 0x1fff) * 4" (parenthesized_expression "(puVar2[4] - 1 & 0x1fff)" (( "(") (binary_expression "puVar2[4] - 1 & 0x1fff" (binary_expression "puVar2[4] - 1" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (- "-") (number_literal "1")) (& "&") (number_literal "0x1fff")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;" (if "if") (parenthesized_expression "(*(uint *)(param_3 + 0x38) < __n + iVar3)" (( "(") (binary_expression "*(uint *)(param_3 + 0x38) < __n + iVar3" (pointer_expression "*(uint *)(param_3 + 0x38)" (* "*") (cast_expression "(uint *)(param_3 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x38)" (( "(") (binary_expression "param_3 + 0x38" (identifier "param_3") (+ "+") (number_literal "0x38")) () ")")))) (< "<") (binary_expression "__n + iVar3" (identifier "__n") (+ "+") (identifier "iVar3"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "memcpy(param_4 + iVar3,(void *)puVar2[1],__n);" (call_expression "memcpy(param_4 + iVar3,(void *)puVar2[1],__n)" (identifier "memcpy") (argument_list "(param_4 + iVar3,(void *)puVar2[1],__n)" (( "(") (binary_expression "param_4 + iVar3" (identifier "param_4") (+ "+") (identifier "iVar3")) (, ",") (cast_expression "(void *)puVar2[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)*puVar2;" (assignment_expression "puVar2 = (undefined4 *)*puVar2" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer")" (identifier "FUN_00069d00") (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") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1)" (identifier "FUN_00069d00") (argument_list "("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1)" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x1df") (, ",") (string_literal ""write_to_buffer"" (" """) (string_content "write_to_buffer") (" """)) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void write_to_buffer(Stringpool_template<short_unsigned_int> * this,
   uchar * buffer, section_size_type bufsize) */

void __thiscall
gold::type_1<short_unsigned_int>::function_1
          (type_1<short_unsigned_int> *this,type_2 *var_10,type_3 var_2)

{
  size_t var_7;
  type_4 *var_3;
  int var_8;
  type_5 *puVar3;
  
  if (this->strtab_size_ == 0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/stringpool.cc",0x1de,"write_to_buffer");
  }
  if (this->strtab_size_ <= var_2) {
    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;
      }
      var_7 = (int)var_3[2]._M_nxt * 2 + 2;
      puVar3 = (type_5 *)((int)&var_3[4]._M_nxt[-1]._M_nxt + 3);
      var_8 = *(int *)((int)(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[(type_6)puVar3 >> 0xd].
                            super__Vector_base<var_5,_std::var_4<var_5>var_6>._M_impl._M_start +
                      ((type_6)puVar3 & 0x1fff) * 4);
      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");
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/stringpool.cc",0x1df,"write_to_buffer");
}


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

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

void __regparm2
MASKED(undefined4 param_1,undefined4 param_2,int param_3,undefined1 *param_4,uint param_5)

{
  size_t __n;
  uint uVar1;
  undefined4 *puVar2;
  int iVar3;
  
  uVar1 = *(uint *)(param_3 + 0x38);
  if (uVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/stringpool.cc",0x1de,"write_to_buffer",param_2);
  }
  if (uVar1 <= param_5) {
    if (*(char *)(param_3 + 0x3c) != '\0') {
      *param_4 = 0;
    }
    puVar2 = *(undefined4 **)(param_3 + 8);
    while( true ) {
      if (puVar2 == (undefined4 *)0x0) {
        return;
      }
      __n = puVar2[2] * 2 + 2;
      iVar3 = *(int *)(*(int *)((puVar2[4] - 1 >> 0xd) * 0xc + *(int *)(param_3 + 0x1c)) +
                      (puVar2[4] - 1 & 0x1fff) * 4);
      if (*(uint *)(param_3 + 0x38) < __n + iVar3) break;
      memcpy(param_4 + iVar3,(void *)puVar2[1],__n);
      puVar2 = (undefined4 *)*puVar2;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/stringpool.cc",0x1e9,"write_to_buffer");
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/stringpool.cc",0x1df,"write_to_buffer",uVar1);
}

