
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: section_offset_type add_string(Dwp_output_file * this, char * str,
   size_t len) */

section_offset_type __thiscall
gold::Dwp_output_file::add_string(Dwp_output_file *this,char *str,size_t len)

{
  Key key;
  undefined4 uStack_c;
  
  uStack_c = 0x35e47;
  Stringpool_template<char>::add_with_length(&this->stringpool_,str,len,true,&key);
  this->have_strings_ = true;
  if (key <= (this->stringpool_).key_to_offset_.size_) {
    return *(section_offset_type *)
            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.
                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");
}



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

undefined4 FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)

{
  uint local_10 [2];
  
  local_10[1] = 0x35e47;
  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);
  *(undefined1 *)(param_1 + 0x4c) = 1;
  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {
    return *(undefined4 *)
            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +
            (local_10[0] - 1 & 0x1fff) * 4);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x3591b9
SUB ESP,0x20
MOV ESI,dword ptr [ESP + 0x2c]
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[ESI + 0x50]
PUSH 0x1
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH EAX
CALL 0x00174780
MOV EAX,dword ptr [ESP + 0x2c]
MOV byte ptr [ESI + 0x4c],0x1
ADD ESP,0x20
CMP EAX,dword ptr [ESI + 0x78]
JA 0x00035e9d
SUB EAX,0x1
MOV ECX,dword ptr [ESI + 0x6c]
MOV EDX,EAX
AND EAX,0x1fff
SHR EDX,0xd
LEA EDX,[EDX + EDX*0x2]
LEA EDX,[ECX + EDX*0x4]
MOV EDX,dword ptr [EDX]
MOV EAX,dword ptr [EDX + EAX*0x4]
ADD ESP,0x14
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xffef1b54]
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xffef1532]
PUSH 0x108
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}\n\n" comment (function_definition "undefined4 FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}" type_identifier (function_declarator "FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}" { (declaration "uint local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "local_10[1] = 0x35e47;" (assignment_expression "local_10[1] = 0x35e47" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);" (call_expression "FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10)" identifier (argument_list "(param_1 + 0x50,param_2,param_3,1,local_10)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) , identifier , identifier , number_literal , identifier ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x4c)" * (cast_expression "(undefined1 *)(param_1 + 0x4c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }" if (parenthesized_expression "(local_10[0] <= *(uint *)(param_1 + 0x78))" ( (binary_expression "local_10[0] <= *(uint *)(param_1 + 0x78)" (subscript_expression "local_10[0]" identifier [ number_literal ]) <= (pointer_expression "*(uint *)(param_1 + 0x78)" * (cast_expression "(uint *)(param_1 + 0x78)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) )) (compound_statement "{\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }" { (return_statement "return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);" return (pointer_expression "*(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" * (cast_expression "(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" * (cast_expression "(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" ( (binary_expression "*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + (binary_expression "(local_10[0] - 1 >> 0xd) * 0xc" (parenthesized_expression "(local_10[0] - 1 >> 0xd)" ( (binary_expression "local_10[0] - 1 >> 0xd" (binary_expression "local_10[0] - 1" (subscript_expression "local_10[0]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(local_10[0] - 1 & 0x1fff) * 4" (parenthesized_expression "(local_10[0] - 1 & 0x1fff)" ( (binary_expression "local_10[0] - 1 & 0x1fff" (binary_expression "local_10[0] - 1" (subscript_expression "local_10[0]" identifier [ number_literal ]) - number_literal) & number_literal) )) * number_literal)) )))) ;) })) comment (expression_statement "FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);" (call_expression "FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1)" identifier (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1)" ( (string_literal ""../../gold/stringpool.h"" " string_content ") , number_literal , (string_literal ""get_offset_from_key"" " 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: section_offset_type add_string(Dwp_output_file * this, char * str,\n   size_t len) */\n\nsection_offset_type __thiscall\ngold::Dwp_output_file::add_string(Dwp_output_file *this,char *str,size_t len)\n\n{\n  Key key;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x35e47;\n  Stringpool_template<char>::add_with_length(&this->stringpool_,str,len,true,&key);\n  this->have_strings_ = true;\n  if (key <= (this->stringpool_).key_to_offset_.size_) {\n    return *(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}\n\n" comment comment comment (function_definition "section_offset_type __thiscall\ngold::Dwp_output_file::add_string(Dwp_output_file *this,char *str,size_t len)\n\n{\n  Key key;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x35e47;\n  Stringpool_template<char>::add_with_length(&this->stringpool_,str,len,true,&key);\n  this->have_strings_ = true;\n  if (key <= (this->stringpool_).key_to_offset_.size_) {\n    return *(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwp_output_file::" identifier : : identifier : :) (function_declarator "add_string(Dwp_output_file *this,char *str,size_t len)" identifier (parameter_list "(Dwp_output_file *this,char *str,size_t len)" ( (parameter_declaration "Dwp_output_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *str" primitive_type (pointer_declarator "*str" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  Key key;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x35e47;\n  Stringpool_template<char>::add_with_length(&this->stringpool_,str,len,true,&key);\n  this->have_strings_ = true;\n  if (key <= (this->stringpool_).key_to_offset_.size_) {\n    return *(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" { (declaration "Key key;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x35e47;" (assignment_expression "uStack_c = 0x35e47" identifier = number_literal) ;) (expression_statement "Stringpool_template<char>::add_with_length(&this->stringpool_,str,len,true,&key);" (binary_expression "Stringpool_template<char>::add_with_length(&this->stringpool_,str,len,true,&key)" (binary_expression "Stringpool_template<char" identifier < identifier) > (ERROR "::" : :) (call_expression "add_with_length(&this->stringpool_,str,len,true,&key)" identifier (argument_list "(&this->stringpool_,str,len,true,&key)" ( (pointer_expression "&this->stringpool_" & (field_expression "this->stringpool_" identifier -> field_identifier)) , identifier , identifier , true , (pointer_expression "&key" & identifier) )))) ;) (expression_statement "this->have_strings_ = true;" (assignment_expression "this->have_strings_ = true" (field_expression "this->have_strings_" identifier -> field_identifier) = true) ;) (if_statement "if (key <= (this->stringpool_).key_to_offset_.size_) {\n    return *(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);\n  }" if (parenthesized_expression "(key <= (this->stringpool_).key_to_offset_.size_)" ( (binary_expression "key <= (this->stringpool_).key_to_offset_.size_" identifier <= (field_expression "(this->stringpool_).key_to_offset_.size_" (field_expression "(this->stringpool_).key_to_offset_" (parenthesized_expression "(this->stringpool_)" ( (field_expression "this->stringpool_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (compound_statement "{\n    return *(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);\n  }" { (return_statement "return *(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4);" return (pointer_expression "*(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4)" * (cast_expression "(section_offset_type *)\n            ((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4)" ( (type_descriptor "section_offset_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4)" ( (ERROR "(int)(this->stringpool_).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[key - 1 >> 0xd].super__Vector_base<int,_std::" (comma_expression "(int)(this->stringpool_).key_to_offset_.chunks_.\n                  super__Vector_base<std::vector<int,_std" (binary_expression "(int)(this->stringpool_).key_to_offset_.chunks_.\n                  super__Vector_base<std::vector<int" (binary_expression "(int)(this->stringpool_).key_to_offset_.chunks_.\n                  super__Vector_base<std" (cast_expression "(int)(this->stringpool_).key_to_offset_.chunks_.\n                  super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->stringpool_).key_to_offset_.chunks_.\n                  super__Vector_base" (field_expression "(this->stringpool_).key_to_offset_.chunks_" (field_expression "(this->stringpool_).key_to_offset_" (parenthesized_expression "(this->stringpool_)" ( (field_expression "this->stringpool_" identifier -> field_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[key - 1 >> 0xd].super__Vector_base<int,_std" (binary_expression "allocator<int>_>_>_>\n                  ._M_impl._M_start[key - 1 >> 0xd].super__Vector_base<int" (field_expression "allocator<int>_>_>_>\n                  ._M_impl._M_start[key - 1 >> 0xd].super__Vector_base" (subscript_expression "allocator<int>_>_>_>\n                  ._M_impl._M_start[key - 1 >> 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 "key - 1 >> 0xd" (binary_expression "key - 1" identifier - number_literal) >> number_literal) ]) . field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>.\n                  _M_impl._M_start + (key - 1 & 0x1fff) * 4" (field_expression "allocator<int>_>.\n                  _M_impl._M_start" (field_expression "allocator<int>_>.\n                  _M_impl" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) + (binary_expression "(key - 1 & 0x1fff) * 4" (parenthesized_expression "(key - 1 & 0x1fff)" ( (binary_expression "key - 1 & 0x1fff" (binary_expression "key - 1" identifier - number_literal) & number_literal) )) * number_literal)) )))) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");" (call_expression "do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key")" identifier (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key")" ( (string_literal ""../../gold/stringpool.h"" " string_content ") , number_literal , (string_literal ""get_offset_from_key"" " string_content ") ))) ;) })))
(translation_unit "undefined4 FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}\n\n" (function_definition "undefined4 FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}" type_identifier (function_declarator "FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}" { (declaration "uint local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "local_10[1] = 0x35e47;" (assignment_expression "local_10[1] = 0x35e47" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);" (call_expression "FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10)" identifier (argument_list "(param_1 + 0x50,param_2,param_3,1,local_10)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) , identifier , identifier , number_literal , identifier ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x4c)" * (cast_expression "(undefined1 *)(param_1 + 0x4c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }" if (parenthesized_expression "(local_10[0] <= *(uint *)(param_1 + 0x78))" ( (binary_expression "local_10[0] <= *(uint *)(param_1 + 0x78)" (subscript_expression "local_10[0]" identifier [ number_literal ]) <= (pointer_expression "*(uint *)(param_1 + 0x78)" * (cast_expression "(uint *)(param_1 + 0x78)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) )) (compound_statement "{\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }" { (return_statement "return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);" return (pointer_expression "*(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" * (cast_expression "(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" * (cast_expression "(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" ( (binary_expression "*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + (binary_expression "(local_10[0] - 1 >> 0xd) * 0xc" (parenthesized_expression "(local_10[0] - 1 >> 0xd)" ( (binary_expression "local_10[0] - 1 >> 0xd" (binary_expression "local_10[0] - 1" (subscript_expression "local_10[0]" identifier [ number_literal ]) - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(local_10[0] - 1 & 0x1fff) * 4" (parenthesized_expression "(local_10[0] - 1 & 0x1fff)" ( (binary_expression "local_10[0] - 1 & 0x1fff" (binary_expression "local_10[0] - 1" (subscript_expression "local_10[0]" identifier [ number_literal ]) - number_literal) & number_literal) )) * number_literal)) )))) ;) })) (expression_statement "FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);" (call_expression "FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1)" identifier (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1)" ( (string_literal ""../../gold/stringpool.h"" " string_content ") , number_literal , (string_literal ""get_offset_from_key"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) >> LIT) )) * LIT)) )))) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) & LIT) )) * LIT)) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "undefined4 FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}" (type_identifier "undefined4") (function_declarator "FUN_00035e40(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00035e40") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint local_10 [2];\n  \n  local_10[1] = 0x35e47;\n  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);\n  *(undefined1 *)(param_1 + 0x4c) = 1;\n  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }\n                    \n  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);\n}" ({ "{") (declaration "uint local_10 [2];" (type_identifier "uint") (array_declarator "local_10 [2]" (identifier "local_10") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "local_10[1] = 0x35e47;" (assignment_expression "local_10[1] = 0x35e47" (subscript_expression "local_10[1]" (identifier "local_10") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x35e47")) (; ";")) (expression_statement "FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);" (call_expression "FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10)" (identifier "FUN_00174780") (argument_list "(param_1 + 0x50,param_2,param_3,1,local_10)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "1") (, ",") (identifier "local_10") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (local_10[0] <= *(uint *)(param_1 + 0x78)) {\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }" (if "if") (parenthesized_expression "(local_10[0] <= *(uint *)(param_1 + 0x78))" (( "(") (binary_expression "local_10[0] <= *(uint *)(param_1 + 0x78)" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (<= "<=") (pointer_expression "*(uint *)(param_1 + 0x78)" (* "*") (cast_expression "(uint *)(param_1 + 0x78)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) () ")")) (compound_statement "{\n    return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);\n  }" ({ "{") (return_statement "return *(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4);" (return "return") (pointer_expression "*(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" (* "*") (cast_expression "(undefined4 *)\n            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +\n            (local_10[0] - 1 & 0x1fff) * 4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (+ "+") (binary_expression "(local_10[0] - 1 >> 0xd) * 0xc" (parenthesized_expression "(local_10[0] - 1 >> 0xd)" (( "(") (binary_expression "local_10[0] - 1 >> 0xd" (binary_expression "local_10[0] - 1" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (- "-") (number_literal "1")) (>> ">>") (number_literal "0xd")) () ")")) (* "*") (number_literal "0xc"))) () ")")))) (+ "+") (binary_expression "(local_10[0] - 1 & 0x1fff) * 4" (parenthesized_expression "(local_10[0] - 1 & 0x1fff)" (( "(") (binary_expression "local_10[0] - 1 & 0x1fff" (binary_expression "local_10[0] - 1" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (- "-") (number_literal "1")) (& "&") (number_literal "0x1fff")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);" (call_expression "FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1)" (identifier "FUN_00069d00") (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1)" (( "(") (string_literal ""../../gold/stringpool.h"" (" """) (string_content "../../gold/stringpool.h") (" """)) (, ",") (number_literal "0x108") (, ",") (string_literal ""get_offset_from_key"" (" """) (string_content "get_offset_from_key") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: section_offset_type add_string(Dwp_output_file * this, char * str,
   size_t len) */

type_1 __thiscall
gold::type_2::function_1(type_2 *this,char *str,size_t len)

{
  type_3 var_4;
  type_4 uStack_c;
  
  uStack_c = 0x35e47;
  var_1<var_2>::var_3(&this->stringpool_,str,len,true,&var_4);
  this->have_strings_ = true;
  if (var_4 <= (this->stringpool_).key_to_offset_.size_) {
    return *(type_1 *)
            ((int)(this->stringpool_).key_to_offset_.chunks_.
                  super__Vector_base<std::vector<var_6,_std::var_5<var_6>var_7>,_std::var_5<std::vector<var_6,_std::var_5<var_6>var_7>var_7>var_7>
                  ._M_impl._M_start[var_4 - 1 >> 0xd].super__Vector_base<var_6,_std::var_5<var_6>var_7>.
                  _M_impl._M_start + (var_4 - 1 & 0x1fff) * 4);
  }
                    /* WARNING: Subroutine does not return */
  var_8("../../gold/stringpool.h",0x108,"get_offset_from_key");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (number_literal) (identifier)))) (expression_statement (assignment_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))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) right: (number_literal)))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) right: (number_literal))))))))) (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 */

undefined4 MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  uint local_10 [2];
  
  local_10[1] = 0x35e47;
  FUN_00174780(param_1 + 0x50,param_2,param_3,1,local_10);
  *(undefined1 *)(param_1 + 0x4c) = 1;
  if (local_10[0] <= *(uint *)(param_1 + 0x78)) {
    return *(undefined4 *)
            (*(int *)(*(int *)(param_1 + 0x6c) + (local_10[0] - 1 >> 0xd) * 0xc) +
            (local_10[0] - 1 & 0x1fff) * 4);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/stringpool.h",0x108,"get_offset_from_key",param_1);
}

