
/* DWARF original prototype: void Hashkey(Hashkey * this, uint * s) */

void __thiscall gold::Stringpool_template<unsigned_int>::Hashkey::Hashkey(Hashkey *this,uint *s)

{
  uint uVar1;
  size_t sVar2;
  
  uVar1 = *s;
  this->string = s;
  sVar2 = 0;
  while (uVar1 != 0) {
    sVar2 = sVar2 + 1;
    uVar1 = s[sVar2];
  }
  this->length = sVar2;
  sVar2 = string_hash(s,sVar2);
  this->hash_code = sVar2;
  return;
}



void FUN_002460c0(undefined8 *param_1,int *param_2)

{
  int iVar1;
  undefined8 uVar2;
  long lVar3;
  
  iVar1 = *param_2;
  *param_1 = param_2;
  lVar3 = 0;
  while (iVar1 != 0) {
    lVar3 = lVar3 + 1;
    iVar1 = param_2[lVar3];
  }
  param_1[1] = lVar3;
  uVar2 = FUN_00245e40();
  param_1[2] = uVar2;
  return;
}


PUSH RBX
MOV EDX,dword ptr [RSI]
MOV RBX,RDI
MOV RDI,RSI
MOV qword ptr [RBX],RSI
MOV ESI,0x0
TEST EDX,EDX
JZ 0x002460e3
NOP dword ptr [RAX]
ADD RSI,0x1
MOV EAX,dword ptr [RDI + RSI*0x4]
TEST EAX,EAX
JNZ 0x002460d8
MOV qword ptr [RBX + 0x8],RSI
CALL 0x00245e40
MOV qword ptr [RBX + 0x10],RAX
POP RBX
RET
(translation_unit "void FUN_002460c0(undefined8 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_002460c0(undefined8 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_002460c0(undefined8 *param_1,int *param_2)" identifier (parameter_list "(undefined8 *param_1,int *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (while_statement "while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }" { (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = param_2[lVar3];" (assignment_expression "iVar1 = param_2[lVar3]" identifier = (subscript_expression "param_2[lVar3]" identifier [ identifier ])) ;) })) (expression_statement "param_1[1] = lVar3;" (assignment_expression "param_1[1] = lVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = FUN_00245e40();" (assignment_expression "uVar2 = FUN_00245e40()" identifier = (call_expression "FUN_00245e40()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void Hashkey(Hashkey * this, uint * s) */\n\nvoid __thiscall gold::Stringpool_template<unsigned_int>::Hashkey::Hashkey(Hashkey *this,uint *s)\n\n{\n  uint uVar1;\n  size_t sVar2;\n  \n  uVar1 = *s;\n  this->string = s;\n  sVar2 = 0;\n  while (uVar1 != 0) {\n    sVar2 = sVar2 + 1;\n    uVar1 = s[sVar2];\n  }\n  this->length = sVar2;\n  sVar2 = string_hash(s,sVar2);\n  this->hash_code = sVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Stringpool_template<unsigned_int>::Hashkey::Hashkey(Hashkey *this,uint *s)\n\n{\n  uint uVar1;\n  size_t sVar2;\n  \n  uVar1 = *s;\n  this->string = s;\n  sVar2 = 0;\n  while (uVar1 != 0) {\n    sVar2 = sVar2 + 1;\n    uVar1 = s[sVar2];\n  }\n  this->length = sVar2;\n  sVar2 = string_hash(s,sVar2);\n  this->hash_code = sVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<unsigned_int>::Hashkey::" identifier : : identifier < identifier > : : identifier : :) (function_declarator "Hashkey(Hashkey *this,uint *s)" identifier (parameter_list "(Hashkey *this,uint *s)" ( (parameter_declaration "Hashkey *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  size_t sVar2;\n  \n  uVar1 = *s;\n  this->string = s;\n  sVar2 = 0;\n  while (uVar1 != 0) {\n    sVar2 = sVar2 + 1;\n    uVar1 = s[sVar2];\n  }\n  this->length = sVar2;\n  sVar2 = string_hash(s,sVar2);\n  this->hash_code = sVar2;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *s;" (assignment_expression "uVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (expression_statement "this->string = s;" (assignment_expression "this->string = s" (field_expression "this->string" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar2 = 0;" (assignment_expression "sVar2 = 0" identifier = number_literal) ;) (while_statement "while (uVar1 != 0) {\n    sVar2 = sVar2 + 1;\n    uVar1 = s[sVar2];\n  }" while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sVar2 = sVar2 + 1;\n    uVar1 = s[sVar2];\n  }" { (expression_statement "sVar2 = sVar2 + 1;" (assignment_expression "sVar2 = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = s[sVar2];" (assignment_expression "uVar1 = s[sVar2]" identifier = (subscript_expression "s[sVar2]" identifier [ identifier ])) ;) })) (expression_statement "this->length = sVar2;" (assignment_expression "this->length = sVar2" (field_expression "this->length" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar2 = string_hash(s,sVar2);" (assignment_expression "sVar2 = string_hash(s,sVar2)" identifier = (call_expression "string_hash(s,sVar2)" identifier (argument_list "(s,sVar2)" ( identifier , identifier )))) ;) (expression_statement "this->hash_code = sVar2;" (assignment_expression "this->hash_code = sVar2" (field_expression "this->hash_code" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002460c0(undefined8 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_002460c0(undefined8 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_002460c0(undefined8 *param_1,int *param_2)" identifier (parameter_list "(undefined8 *param_1,int *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (while_statement "while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }" { (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = param_2[lVar3];" (assignment_expression "iVar1 = param_2[lVar3]" identifier = (subscript_expression "param_2[lVar3]" identifier [ identifier ])) ;) })) (expression_statement "param_1[1] = lVar3;" (assignment_expression "param_1[1] = lVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = FUN_00245e40();" (assignment_expression "uVar2 = FUN_00245e40()" identifier = (call_expression "FUN_00245e40()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_002460c0(undefined8 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002460c0(undefined8 *param_1,int *param_2)" (identifier "FUN_002460c0") (parameter_list "(undefined8 *param_1,int *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  lVar3 = 0;\n  while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }\n  param_1[1] = lVar3;\n  uVar2 = FUN_00245e40();\n  param_1[2] = uVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while (iVar1 != 0) {\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar3 = lVar3 + 1;\n    iVar1 = param_2[lVar3];\n  }" ({ "{") (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" (identifier "lVar3") (= "=") (binary_expression "lVar3 + 1" (identifier "lVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = param_2[lVar3];" (assignment_expression "iVar1 = param_2[lVar3]" (identifier "iVar1") (= "=") (subscript_expression "param_2[lVar3]" (identifier "param_2") ([ "[") (identifier "lVar3") (] "]"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = lVar3;" (assignment_expression "param_1[1] = lVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar3")) (; ";")) (expression_statement "uVar2 = FUN_00245e40();" (assignment_expression "uVar2 = FUN_00245e40()" (identifier "uVar2") (= "=") (call_expression "FUN_00245e40()" (identifier "FUN_00245e40") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void Hashkey(Hashkey * this, uint * s) */

void __thiscall gold::Stringpool_template<unsigned_int>::function_1::function_1(function_1 *this,type_1 *s)

{
  type_1 var_1;
  size_t var_2;
  
  var_1 = *s;
  this->string = s;
  var_2 = 0;
  while (var_1 != 0) {
    var_2 = var_2 + 1;
    var_1 = s[var_2];
  }
  this->length = var_2;
  var_2 = var_3(s,var_2);
  this->hash_code = var_2;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(undefined8 *param_1,int *param_2)

{
  int iVar1;
  undefined8 uVar2;
  long lVar3;
  
  iVar1 = *param_2;
  *param_1 = param_2;
  lVar3 = 0;
  while (iVar1 != 0) {
    lVar3 = lVar3 + 1;
    iVar1 = param_2[lVar3];
  }
  param_1[1] = lVar3;
  uVar2 = FUN_00245e40();
  param_1[2] = uVar2;
  return;
}

