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

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

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



void FUN_00172840(undefined4 *param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *param_2;
  *param_1 = param_2;
  if (iVar1 != 0) {
    iVar1 = 0;
    do {
      iVar1 = iVar1 + 1;
    } while (param_2[iVar1] != 0);
  }
  param_1[1] = iVar1;
  uVar2 = FUN_00172580(param_2,iVar1);
  param_1[2] = uVar2;
  return;
}


PUSH EBX
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX]
MOV dword ptr [EBX],EDX
TEST EAX,EAX
JZ 0x0017286a
XOR EAX,EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
ADD EAX,0x1
MOV ECX,dword ptr [EDX + EAX*0x4]
TEST ECX,ECX
JNZ 0x00172860
SUB ESP,0x8
MOV dword ptr [EBX + 0x4],EAX
PUSH EAX
PUSH EDX
CALL 0x00172580
MOV dword ptr [EBX + 0x8],EAX
ADD ESP,0x18
POP EBX
RET
(translation_unit "void FUN_00172840(undefined4 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_00172840(undefined4 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_00172840(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *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  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier 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) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2[iVar1] != 0)" ( (binary_expression "param_2[iVar1] != 0" (subscript_expression "param_2[iVar1]" identifier [ identifier ]) != number_literal) )) ;) })) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = FUN_00172580(param_2,iVar1);" (assignment_expression "uVar2 = FUN_00172580(param_2,iVar1)" identifier = (call_expression "FUN_00172580(param_2,iVar1)" identifier (argument_list "(param_2,iVar1)" ( identifier , identifier )))) ;) (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  size_t sVar1;\n  \n  sVar1 = *s;\n  this->string = s;\n  if (sVar1 != 0) {\n    sVar1 = 0;\n    do {\n      sVar1 = sVar1 + 1;\n    } while (s[sVar1] != 0);\n  }\n  this->length = sVar1;\n  sVar1 = string_hash(s,sVar1);\n  this->hash_code = sVar1;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Stringpool_template<unsigned_int>::Hashkey::Hashkey(Hashkey *this,uint *s)\n\n{\n  size_t sVar1;\n  \n  sVar1 = *s;\n  this->string = s;\n  if (sVar1 != 0) {\n    sVar1 = 0;\n    do {\n      sVar1 = sVar1 + 1;\n    } while (s[sVar1] != 0);\n  }\n  this->length = sVar1;\n  sVar1 = string_hash(s,sVar1);\n  this->hash_code = sVar1;\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  size_t sVar1;\n  \n  sVar1 = *s;\n  this->string = s;\n  if (sVar1 != 0) {\n    sVar1 = 0;\n    do {\n      sVar1 = sVar1 + 1;\n    } while (s[sVar1] != 0);\n  }\n  this->length = sVar1;\n  sVar1 = string_hash(s,sVar1);\n  this->hash_code = sVar1;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = *s;" (assignment_expression "sVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (expression_statement "this->string = s;" (assignment_expression "this->string = s" (field_expression "this->string" identifier -> field_identifier) = identifier) ;) (if_statement "if (sVar1 != 0) {\n    sVar1 = 0;\n    do {\n      sVar1 = sVar1 + 1;\n    } while (s[sVar1] != 0);\n  }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sVar1 = 0;\n    do {\n      sVar1 = sVar1 + 1;\n    } while (s[sVar1] != 0);\n  }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      sVar1 = sVar1 + 1;\n    } while (s[sVar1] != 0);" do (compound_statement "{\n      sVar1 = sVar1 + 1;\n    }" { (expression_statement "sVar1 = sVar1 + 1;" (assignment_expression "sVar1 = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(s[sVar1] != 0)" ( (binary_expression "s[sVar1] != 0" (subscript_expression "s[sVar1]" identifier [ identifier ]) != number_literal) )) ;) })) (expression_statement "this->length = sVar1;" (assignment_expression "this->length = sVar1" (field_expression "this->length" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar1 = string_hash(s,sVar1);" (assignment_expression "sVar1 = string_hash(s,sVar1)" identifier = (call_expression "string_hash(s,sVar1)" identifier (argument_list "(s,sVar1)" ( identifier , identifier )))) ;) (expression_statement "this->hash_code = sVar1;" (assignment_expression "this->hash_code = sVar1" (field_expression "this->hash_code" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00172840(undefined4 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_00172840(undefined4 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_00172840(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *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  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier 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) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2[iVar1] != 0)" ( (binary_expression "param_2[iVar1] != 0" (subscript_expression "param_2[iVar1]" identifier [ identifier ]) != number_literal) )) ;) })) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = FUN_00172580(param_2,iVar1);" (assignment_expression "uVar2 = FUN_00172580(param_2,iVar1)" identifier = (call_expression "FUN_00172580(param_2,iVar1)" identifier (argument_list "(param_2,iVar1)" ( identifier , identifier )))) ;) (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 ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00172840(undefined4 *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00172840(undefined4 *param_1,int *param_2)" (identifier "FUN_00172840") (parameter_list "(undefined4 *param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (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  undefined4 uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = param_2;\n  if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }\n  param_1[1] = iVar1;\n  uVar2 = FUN_00172580(param_2,iVar1);\n  param_1[2] = uVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (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")) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (param_2[iVar1] != 0);" (do "do") (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2[iVar1] != 0)" (( "(") (binary_expression "param_2[iVar1] != 0" (subscript_expression "param_2[iVar1]" (identifier "param_2") ([ "[") (identifier "iVar1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar2 = FUN_00172580(param_2,iVar1);" (assignment_expression "uVar2 = FUN_00172580(param_2,iVar1)" (identifier "uVar2") (= "=") (call_expression "FUN_00172580(param_2,iVar1)" (identifier "FUN_00172580") (argument_list "(param_2,iVar1)" (( "(") (identifier "param_2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (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)

{
  size_t var_1;
  
  var_1 = *s;
  this->string = s;
  if (var_1 != 0) {
    var_1 = 0;
    do {
      var_1 = var_1 + 1;
    } while (s[var_1] != 0);
  }
  this->length = var_1;
  var_1 = var_2(s,var_1);
  this->hash_code = var_1;
  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)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal)))))) (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 (identifier) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(undefined4 *param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *param_2;
  *param_1 = param_2;
  if (iVar1 != 0) {
    iVar1 = 0;
    do {
      iVar1 = iVar1 + 1;
    } while (param_2[iVar1] != 0);
  }
  param_1[1] = iVar1;
  uVar2 = FUN_00172580(param_2,iVar1);
  param_1[2] = uVar2;
  return;
}

