
uint32_t gold::Dynobj::gnu_hash(char *name)

{
  byte bVar1;
  uint32_t uVar2;
  
  bVar1 = *name;
  if (bVar1 != 0) {
    uVar2 = 0x1505;
    do {
      name = (char *)((byte *)name + 1);
      uVar2 = (uint)bVar1 + uVar2 * 0x21;
      bVar1 = *name;
    } while (bVar1 != 0);
    return uVar2;
  }
  return 0x1505;
}



int FUN_0016b430(byte *param_1)

{
  byte bVar1;
  int iVar2;
  
  bVar1 = *param_1;
  if (bVar1 != 0) {
    iVar2 = 0x1505;
    do {
      param_1 = param_1 + 1;
      iVar2 = (uint)bVar1 + iVar2 * 0x21;
      bVar1 = *param_1;
    } while (bVar1 != 0);
    return iVar2;
  }
  return 0x1505;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOVZX EDX,byte ptr [EAX]
TEST DL,DL
JZ 0x0016b460
LEA EBX,[EAX + 0x1]
MOV EAX,0x1505
LEA ESI,[ESI]
MOV ECX,EAX
ADD EBX,0x1
SHL ECX,0x5
ADD EDX,ECX
ADD EAX,EDX
MOVZX EDX,byte ptr [EBX + -0x1]
TEST DL,DL
JNZ 0x0016b448
POP EBX
RET
MOV EAX,0x1505
POP EBX
RET
(translation_unit "int FUN_0016b430(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}\n\n" (function_definition "int FUN_0016b430(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}" primitive_type (function_declarator "FUN_0016b430(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" { (expression_statement "iVar2 = 0x1505;" (assignment_expression "iVar2 = 0x1505" identifier = number_literal) ;) (do_statement "do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);" do (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = (uint)bVar1 + iVar2 * 0x21;" (assignment_expression "iVar2 = (uint)bVar1 + iVar2 * 0x21" identifier = (binary_expression "(uint)bVar1 + iVar2 * 0x21" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) + (binary_expression "iVar2 * 0x21" identifier * number_literal))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0x1505;" return number_literal ;) })))
(translation_unit "uint32_t gold::Dynobj::gnu_hash(char *name)\n\n{\n  byte bVar1;\n  uint32_t uVar2;\n  \n  bVar1 = *name;\n  if (bVar1 != 0) {\n    uVar2 = 0x1505;\n    do {\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    } while (bVar1 != 0);\n    return uVar2;\n  }\n  return 0x1505;\n}\n\n" (function_definition "uint32_t gold::Dynobj::gnu_hash(char *name)\n\n{\n  byte bVar1;\n  uint32_t uVar2;\n  \n  bVar1 = *name;\n  if (bVar1 != 0) {\n    uVar2 = 0x1505;\n    do {\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    } while (bVar1 != 0);\n    return uVar2;\n  }\n  return 0x1505;\n}" primitive_type (ERROR "gold::Dynobj::" identifier : : identifier : :) (function_declarator "gnu_hash(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint32_t uVar2;\n  \n  bVar1 = *name;\n  if (bVar1 != 0) {\n    uVar2 = 0x1505;\n    do {\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    } while (bVar1 != 0);\n    return uVar2;\n  }\n  return 0x1505;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint32_t uVar2;" primitive_type identifier ;) (expression_statement "bVar1 = *name;" (assignment_expression "bVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n    uVar2 = 0x1505;\n    do {\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    } while (bVar1 != 0);\n    return uVar2;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 0x1505;\n    do {\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    } while (bVar1 != 0);\n    return uVar2;\n  }" { (expression_statement "uVar2 = 0x1505;" (assignment_expression "uVar2 = 0x1505" identifier = number_literal) ;) (do_statement "do {\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    } while (bVar1 != 0);" do (compound_statement "{\n      name = (char *)((byte *)name + 1);\n      uVar2 = (uint)bVar1 + uVar2 * 0x21;\n      bVar1 = *name;\n    }" { (expression_statement "name = (char *)((byte *)name + 1);" (assignment_expression "name = (char *)((byte *)name + 1)" identifier = (cast_expression "(char *)((byte *)name + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)name + 1)" ( (binary_expression "(byte *)name + 1" (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "uVar2 = (uint)bVar1 + uVar2 * 0x21;" (assignment_expression "uVar2 = (uint)bVar1 + uVar2 * 0x21" identifier = (binary_expression "(uint)bVar1 + uVar2 * 0x21" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) + (binary_expression "uVar2 * 0x21" identifier * number_literal))) ;) (expression_statement "bVar1 = *name;" (assignment_expression "bVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0x1505;" return number_literal ;) })))
(translation_unit "int FUN_0016b430(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}\n\n" (function_definition "int FUN_0016b430(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}" primitive_type (function_declarator "FUN_0016b430(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" { (expression_statement "iVar2 = 0x1505;" (assignment_expression "iVar2 = 0x1505" identifier = number_literal) ;) (do_statement "do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);" do (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = (uint)bVar1 + iVar2 * 0x21;" (assignment_expression "iVar2 = (uint)bVar1 + iVar2 * 0x21" identifier = (binary_expression "(uint)bVar1 + iVar2 * 0x21" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) + (binary_expression "iVar2 * 0x21" identifier * number_literal))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0x1505;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0016b430(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}" (primitive_type "int") (function_declarator "FUN_0016b430(byte *param_1)" (identifier "FUN_0016b430") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0x1505;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (bVar1 != 0) {\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0x1505;\n    do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = 0x1505;" (assignment_expression "iVar2 = 0x1505" (identifier "iVar2") (= "=") (number_literal "0x1505")) (; ";")) (do_statement "do {\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    } while (bVar1 != 0);" (do "do") (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar2 = (uint)bVar1 + iVar2 * 0x21;\n      bVar1 = *param_1;\n    }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = (uint)bVar1 + iVar2 * 0x21;" (assignment_expression "iVar2 = (uint)bVar1 + iVar2 * 0x21" (identifier "iVar2") (= "=") (binary_expression "(uint)bVar1 + iVar2 * 0x21" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (+ "+") (binary_expression "iVar2 * 0x21" (identifier "iVar2") (* "*") (number_literal "0x21")))) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (return_statement "return 0x1505;" (return "return") (number_literal "0x1505") (; ";")) (} "}")))

uint32_t gold::Dynobj::function_1(char *name)

{
  type_1 var_1;
  uint32_t var_2;
  
  var_1 = *name;
  if (var_1 != 0) {
    var_2 = 0x1505;
    do {
      name = (char *)((type_1 *)name + 1);
      var_2 = (type_2)var_1 + var_2 * 0x21;
      var_1 = *name;
    } while (var_1 != 0);
    return var_2;
  }
  return 0x1505;
}


(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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement (identifier)))) (return_statement (number_literal)))))

int MASKED(byte *param_1)

{
  byte bVar1;
  int iVar2;
  
  bVar1 = *param_1;
  if (bVar1 != 0) {
    iVar2 = 0x1505;
    do {
      param_1 = param_1 + 1;
      iVar2 = (uint)bVar1 + iVar2 * 0x21;
      bVar1 = *param_1;
    } while (bVar1 != 0);
    return iVar2;
  }
  return 0x1505;
}

