
/* WARNING: Unknown calling convention */

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

{
  byte bVar1;
  uint uVar2;
  
  uVar2 = 0;
  do {
    bVar1 = *name;
    if (bVar1 == 0) {
      return uVar2;
    }
    while( true ) {
      name = (char *)((byte *)name + 1);
      uVar2 = uVar2 * 0x10 + (uint)bVar1;
      if ((uVar2 & 0xf0000000) == 0) break;
      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;
      bVar1 = *name;
      if (bVar1 == 0) {
        return uVar2;
      }
    }
  } while( true );
}



void FUN_001a2560(byte *param_1)

{
  byte bVar1;
  uint uVar2;
  
  uVar2 = 0;
  do {
    bVar1 = *param_1;
    if (bVar1 == 0) {
      return;
    }
    while( true ) {
      param_1 = param_1 + 1;
      uVar2 = uVar2 * 0x10 + (uint)bVar1;
      if ((uVar2 & 0xf0000000) == 0) break;
      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;
      bVar1 = *param_1;
      if (bVar1 == 0) {
        return;
      }
    }
  } while( true );
}


MOV ECX,dword ptr [ESP + 0x4]
XOR EAX,EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
ADD ECX,0x1
MOVZX EDX,byte ptr [ECX + -0x1]
TEST DL,DL
JZ 0x001a259f
SHL EAX,0x4
ADD EAX,EDX
MOV EDX,EAX
AND EDX,0xf0000000
JZ 0x001a2570
SHR EDX,0x18
AND EAX,0xfffffff
ADD ECX,0x1
XOR EAX,EDX
MOVZX EDX,byte ptr [ECX + -0x1]
TEST DL,DL
JNZ 0x001a257b
RET
(translation_unit "void FUN_001a2560(byte *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_001a2560(byte *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_001a2560(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  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\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 "uVar2 = uVar2 * 0x10 + (uint)bVar1;" (assignment_expression "uVar2 = uVar2 * 0x10 + (uint)bVar1" identifier = (binary_expression "uVar2 * 0x10 + (uint)bVar1" (binary_expression "uVar2 * 0x10" identifier * number_literal) + (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if ((uVar2 & 0xf0000000) == 0) break;" if (parenthesized_expression "((uVar2 & 0xf0000000) == 0)" ( (binary_expression "(uVar2 & 0xf0000000) == 0" (parenthesized_expression "(uVar2 & 0xf0000000)" ( (binary_expression "uVar2 & 0xf0000000" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;" (assignment_expression "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" identifier = (binary_expression "uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" (binary_expression "uVar2 & 0xfffffff" identifier & number_literal) ^ (binary_expression "(uVar2 & 0xf0000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xf0000000)" ( (binary_expression "uVar2 & 0xf0000000" identifier & number_literal) )) >> number_literal))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nuint32_t gold::Dynobj::elf_hash(char *name)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *name;\n    if (bVar1 == 0) {\n      return uVar2;\n    }\n    while( true ) {\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\n    }\n  } while( true );\n}\n\n" comment (function_definition "uint32_t gold::Dynobj::elf_hash(char *name)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *name;\n    if (bVar1 == 0) {\n      return uVar2;\n    }\n    while( true ) {\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\n    }\n  } while( true );\n}" primitive_type (ERROR "gold::Dynobj::" identifier : : identifier : :) (function_declarator "elf_hash(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *name;\n    if (bVar1 == 0) {\n      return uVar2;\n    }\n    while( true ) {\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    bVar1 = *name;\n    if (bVar1 == 0) {\n      return uVar2;\n    }\n    while( true ) {\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    bVar1 = *name;\n    if (bVar1 == 0) {\n      return uVar2;\n    }\n    while( true ) {\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\n    }\n  }" { (expression_statement "bVar1 = *name;" (assignment_expression "bVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n      return uVar2;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) (while_statement "while( true ) {\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      name = (char *)((byte *)name + 1);\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *name;\n      if (bVar1 == 0) {\n        return uVar2;\n      }\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 = uVar2 * 0x10 + (uint)bVar1;" (assignment_expression "uVar2 = uVar2 * 0x10 + (uint)bVar1" identifier = (binary_expression "uVar2 * 0x10 + (uint)bVar1" (binary_expression "uVar2 * 0x10" identifier * number_literal) + (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if ((uVar2 & 0xf0000000) == 0) break;" if (parenthesized_expression "((uVar2 & 0xf0000000) == 0)" ( (binary_expression "(uVar2 & 0xf0000000) == 0" (parenthesized_expression "(uVar2 & 0xf0000000)" ( (binary_expression "uVar2 & 0xf0000000" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;" (assignment_expression "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" identifier = (binary_expression "uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" (binary_expression "uVar2 & 0xfffffff" identifier & number_literal) ^ (binary_expression "(uVar2 & 0xf0000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xf0000000)" ( (binary_expression "uVar2 & 0xf0000000" identifier & number_literal) )) >> number_literal))) ;) (expression_statement "bVar1 = *name;" (assignment_expression "bVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n        return uVar2;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_001a2560(byte *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_001a2560(byte *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_001a2560(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  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\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 "uVar2 = uVar2 * 0x10 + (uint)bVar1;" (assignment_expression "uVar2 = uVar2 * 0x10 + (uint)bVar1" identifier = (binary_expression "uVar2 * 0x10 + (uint)bVar1" (binary_expression "uVar2 * 0x10" identifier * number_literal) + (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if ((uVar2 & 0xf0000000) == 0) break;" if (parenthesized_expression "((uVar2 & 0xf0000000) == 0)" ( (binary_expression "(uVar2 & 0xf0000000) == 0" (parenthesized_expression "(uVar2 & 0xf0000000)" ( (binary_expression "uVar2 & 0xf0000000" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;" (assignment_expression "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" identifier = (binary_expression "uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" (binary_expression "uVar2 & 0xfffffff" identifier & number_literal) ^ (binary_expression "(uVar2 & 0xf0000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xf0000000)" ( (binary_expression "uVar2 & 0xf0000000" identifier & number_literal) )) >> number_literal))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) ^ (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_001a2560(byte *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_001a2560(byte *param_1)" (identifier "FUN_001a2560") (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  uint uVar2;\n  \n  uVar2 = 0;\n  do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  } while( true );" (do "do") (compound_statement "{\n    bVar1 = *param_1;\n    if (bVar1 == 0) {\n      return;\n    }\n    while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }\n  }" ({ "{") (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      return;\n    }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (while_statement "while( true ) {\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar2 = uVar2 * 0x10 + (uint)bVar1;\n      if ((uVar2 & 0xf0000000) == 0) break;\n      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;\n      bVar1 = *param_1;\n      if (bVar1 == 0) {\n        return;\n      }\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 "uVar2 = uVar2 * 0x10 + (uint)bVar1;" (assignment_expression "uVar2 = uVar2 * 0x10 + (uint)bVar1" (identifier "uVar2") (= "=") (binary_expression "uVar2 * 0x10 + (uint)bVar1" (binary_expression "uVar2 * 0x10" (identifier "uVar2") (* "*") (number_literal "0x10")) (+ "+") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")))) (; ";")) (if_statement "if ((uVar2 & 0xf0000000) == 0) break;" (if "if") (parenthesized_expression "((uVar2 & 0xf0000000) == 0)" (( "(") (binary_expression "(uVar2 & 0xf0000000) == 0" (parenthesized_expression "(uVar2 & 0xf0000000)" (( "(") (binary_expression "uVar2 & 0xf0000000" (identifier "uVar2") (& "&") (number_literal "0xf0000000")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;" (assignment_expression "uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" (identifier "uVar2") (= "=") (binary_expression "uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18" (binary_expression "uVar2 & 0xfffffff" (identifier "uVar2") (& "&") (number_literal "0xfffffff")) (^ "^") (binary_expression "(uVar2 & 0xf0000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xf0000000)" (( "(") (binary_expression "uVar2 & 0xf0000000" (identifier "uVar2") (& "&") (number_literal "0xf0000000")) () ")")) (>> ">>") (number_literal "0x18")))) (; ";")) (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        return;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

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

{
  type_1 var_1;
  type_2 var_2;
  
  var_2 = 0;
  do {
    var_1 = *name;
    if (var_1 == 0) {
      return var_2;
    }
    while( true ) {
      name = (char *)((type_1 *)name + 1);
      var_2 = var_2 * 0x10 + (type_2)var_1;
      if ((var_2 & 0xf0000000) == 0) break;
      var_2 = var_2 & 0xfffffff ^ (var_2 & 0xf0000000) >> 0x18;
      var_1 = *name;
      if (var_1 == 0) {
        return var_2;
      }
    }
  } while( true );
}


(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: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (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 (return_statement))) (while_statement condition: (parenthesized_expression (true)) 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: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (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 (return_statement)))))) condition: (parenthesized_expression (true))))))

void MASKED(byte *param_1)

{
  byte bVar1;
  uint uVar2;
  
  uVar2 = 0;
  do {
    bVar1 = *param_1;
    if (bVar1 == 0) {
      return;
    }
    while( true ) {
      param_1 = param_1 + 1;
      uVar2 = uVar2 * 0x10 + (uint)bVar1;
      if ((uVar2 & 0xf0000000) == 0) break;
      uVar2 = uVar2 & 0xfffffff ^ (uVar2 & 0xf0000000) >> 0x18;
      bVar1 = *param_1;
      if (bVar1 == 0) {
        return;
      }
    }
  } while( true );
}

