
size_t __thiscall gold::get_length_as_unsigned_LEB_128(gold *this,uint64_t value)

{
  size_t sVar1;
  
  sVar1 = 0;
  do {
    this = (gold *)((uint)this >> 7 | (uint)value << 0x19);
    value._0_4_ = (uint)value >> 7;
    sVar1 = sVar1 + 1;
  } while ((uint)value != 0 || this != (gold *)0x0);
  return sVar1;
}



int FUN_002704b0(uint param_1,uint param_2)

{
  int iVar1;
  
  iVar1 = 0;
  do {
    param_1 = param_1 >> 7 | param_2 << 0x19;
    param_2 = param_2 >> 7;
    iVar1 = iVar1 + 1;
  } while (param_2 != 0 || param_1 != 0);
  return iVar1;
}


PUSH ESI
XOR EAX,EAX
PUSH EBX
MOV ECX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [ESP + 0x10]
LEA ESI,[ESI]
SHRD ECX,EBX,0x7
SHR EBX,0x7
ADD EAX,0x1
MOV ESI,EBX
OR ESI,ECX
JNZ 0x002704c0
POP EBX
POP ESI
RET
(translation_unit "int FUN_002704b0(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}\n\n" (function_definition "int FUN_002704b0(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_002704b0(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);" do (compound_statement "{\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "param_1 = param_1 >> 7 | param_2 << 0x19;" (assignment_expression "param_1 = param_1 >> 7 | param_2 << 0x19" identifier = (binary_expression "param_1 >> 7 | param_2 << 0x19" (binary_expression "param_1 >> 7" identifier >> number_literal) | (binary_expression "param_2 << 0x19" identifier << number_literal))) ;) (expression_statement "param_2 = param_2 >> 7;" (assignment_expression "param_2 = param_2 >> 7" identifier = (binary_expression "param_2 >> 7" identifier >> number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != 0 || param_1 != 0)" ( (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" identifier != number_literal) || (binary_expression "param_1 != 0" identifier != number_literal)) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "size_t __thiscall gold::get_length_as_unsigned_LEB_128(gold *this,uint64_t value)\n\n{\n  size_t sVar1;\n  \n  sVar1 = 0;\n  do {\n    this = (gold *)((uint)this >> 7 | (uint)value << 0x19);\n    value._0_4_ = (uint)value >> 7;\n    sVar1 = sVar1 + 1;\n  } while ((uint)value != 0 || this != (gold *)0x0);\n  return sVar1;\n}\n\n" (function_definition "size_t __thiscall gold::get_length_as_unsigned_LEB_128(gold *this,uint64_t value)\n\n{\n  size_t sVar1;\n  \n  sVar1 = 0;\n  do {\n    this = (gold *)((uint)this >> 7 | (uint)value << 0x19);\n    value._0_4_ = (uint)value >> 7;\n    sVar1 = sVar1 + 1;\n  } while ((uint)value != 0 || this != (gold *)0x0);\n  return sVar1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "get_length_as_unsigned_LEB_128(gold *this,uint64_t value)" identifier (parameter_list "(gold *this,uint64_t value)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint64_t value" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = 0;\n  do {\n    this = (gold *)((uint)this >> 7 | (uint)value << 0x19);\n    value._0_4_ = (uint)value >> 7;\n    sVar1 = sVar1 + 1;\n  } while ((uint)value != 0 || this != (gold *)0x0);\n  return sVar1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    this = (gold *)((uint)this >> 7 | (uint)value << 0x19);\n    value._0_4_ = (uint)value >> 7;\n    sVar1 = sVar1 + 1;\n  } while ((uint)value != 0 || this != (gold *)0x0);" do (compound_statement "{\n    this = (gold *)((uint)this >> 7 | (uint)value << 0x19);\n    value._0_4_ = (uint)value >> 7;\n    sVar1 = sVar1 + 1;\n  }" { (expression_statement "this = (gold *)((uint)this >> 7 | (uint)value << 0x19);" (assignment_expression "this = (gold *)((uint)this >> 7 | (uint)value << 0x19)" identifier = (cast_expression "(gold *)((uint)this >> 7 | (uint)value << 0x19)" ( (type_descriptor "gold *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)this >> 7 | (uint)value << 0x19)" ( (binary_expression "(uint)this >> 7 | (uint)value << 0x19" (binary_expression "(uint)this >> 7" (cast_expression "(uint)this" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) | (binary_expression "(uint)value << 0x19" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) )))) ;) (expression_statement "value._0_4_ = (uint)value >> 7;" (assignment_expression "value._0_4_ = (uint)value >> 7" (field_expression "value._0_4_" identifier . field_identifier) = (binary_expression "(uint)value >> 7" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal)) ;) (expression_statement "sVar1 = sVar1 + 1;" (assignment_expression "sVar1 = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uint)value != 0 || this != (gold *)0x0)" ( (binary_expression "(uint)value != 0 || this != (gold *)0x0" (binary_expression "(uint)value != 0" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) != number_literal) || (binary_expression "this != (gold *)0x0" identifier != (cast_expression "(gold *)0x0" ( (type_descriptor "gold *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) ;) (return_statement "return sVar1;" return identifier ;) })))
(translation_unit "int FUN_002704b0(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}\n\n" (function_definition "int FUN_002704b0(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_002704b0(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);" do (compound_statement "{\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "param_1 = param_1 >> 7 | param_2 << 0x19;" (assignment_expression "param_1 = param_1 >> 7 | param_2 << 0x19" identifier = (binary_expression "param_1 >> 7 | param_2 << 0x19" (binary_expression "param_1 >> 7" identifier >> number_literal) | (binary_expression "param_2 << 0x19" identifier << number_literal))) ;) (expression_statement "param_2 = param_2 >> 7;" (assignment_expression "param_2 = param_2 >> 7" identifier = (binary_expression "param_2 >> 7" identifier >> number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != 0 || param_1 != 0)" ( (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" identifier != number_literal) || (binary_expression "param_1 != 0" identifier != number_literal)) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_002704b0(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_002704b0(uint param_1,uint param_2)" (identifier "FUN_002704b0") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  } while (param_2 != 0 || param_1 != 0);" (do "do") (compound_statement "{\n    param_1 = param_1 >> 7 | param_2 << 0x19;\n    param_2 = param_2 >> 7;\n    iVar1 = iVar1 + 1;\n  }" ({ "{") (expression_statement "param_1 = param_1 >> 7 | param_2 << 0x19;" (assignment_expression "param_1 = param_1 >> 7 | param_2 << 0x19" (identifier "param_1") (= "=") (binary_expression "param_1 >> 7 | param_2 << 0x19" (binary_expression "param_1 >> 7" (identifier "param_1") (>> ">>") (number_literal "7")) (| "|") (binary_expression "param_2 << 0x19" (identifier "param_2") (<< "<<") (number_literal "0x19")))) (; ";")) (expression_statement "param_2 = param_2 >> 7;" (assignment_expression "param_2 = param_2 >> 7" (identifier "param_2") (= "=") (binary_expression "param_2 >> 7" (identifier "param_2") (>> ">>") (number_literal "7"))) (; ";")) (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 != 0 || param_1 != 0)" (( "(") (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

size_t __thiscall type_1::function_1(type_1 *var_2,uint64_t value)

{
  size_t var_1;
  
  var_1 = 0;
  do {
    var_2 = (type_1 *)((type_2)var_2 >> 7 | (type_2)value << 0x19);
    value._0_4_ = (type_2)value >> 7;
    var_1 = var_1 + 1;
  } while ((type_2)value != 0 || var_2 != (type_1 *)0x0);
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(uint param_1,uint param_2)

{
  int iVar1;
  
  iVar1 = 0;
  do {
    param_1 = param_1 >> 7 | param_2 << 0x19;
    param_2 = param_2 >> 7;
    iVar1 = iVar1 + 1;
  } while (param_2 != 0 || param_1 != 0);
  return iVar1;
}

