
uint __regparm3 sizeof_leb128(valueT value,int sign)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = 0;
  do {
    while( true ) {
      uVar2 = value;
      uVar1 = uVar1 + 1;
      value = (int)uVar2 >> 7;
      if (value != 0) break;
      if ((uVar2 & 0x40) == 0) {
        return uVar1;
      }
    }
  } while ((value != 0xffffffff) || ((uVar2 & 0x40) == 0));
  return uVar1;
}



void __regparm3 FUN_0002c050(uint param_1)

{
  uint uVar1;
  
  do {
    while( true ) {
      uVar1 = param_1;
      param_1 = (int)uVar1 >> 7;
      if (param_1 != 0) break;
      if ((uVar1 & 0x40) == 0) {
        return;
      }
    }
  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));
  return;
}


MOV EDX,EAX
XOR EAX,EAX
LEA ESI,[ESI]
MOV ECX,EDX
ADD EAX,0x1
SAR EDX,0x7
JNZ 0x0002c070
AND ECX,0x40
JNZ 0x0002c058
RET
CMP EDX,-0x1
JNZ 0x0002c058
AND ECX,0x40
JZ 0x0002c058
RET
(translation_unit "void __regparm3 FUN_0002c050(uint param_1)\n\n{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002c050(uint param_1)\n\n{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002c050(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (do_statement "do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));" do (compound_statement "{\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }" { (expression_statement "uVar1 = param_1;" (assignment_expression "uVar1 = param_1" identifier = identifier) ;) (expression_statement "param_1 = (int)uVar1 >> 7;" (assignment_expression "param_1 = (int)uVar1 >> 7" identifier = (binary_expression "(int)uVar1 >> 7" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if (param_1 != 0) break;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar1 & 0x40) == 0) {\n        return;\n      }" if (parenthesized_expression "((uVar1 & 0x40) == 0)" ( (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) }) while (parenthesized_expression "((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0))" ( (binary_expression "(param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0)" (parenthesized_expression "(param_1 != 0xffffffff)" ( (binary_expression "param_1 != 0xffffffff" identifier != number_literal) )) || (parenthesized_expression "((uVar1 & 0x40) == 0)" ( (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) == number_literal) ))) )) ;) (return_statement "return;" return ;) })))
(translation_unit "uint __regparm3 sizeof_leb128(valueT value,int sign)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = 0;\n  do {\n    while( true ) {\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }\n  } while ((value != 0xffffffff) || ((uVar2 & 0x40) == 0));\n  return uVar1;\n}\n\n" (function_definition "uint __regparm3 sizeof_leb128(valueT value,int sign)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = 0;\n  do {\n    while( true ) {\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }\n  } while ((value != 0xffffffff) || ((uVar2 & 0x40) == 0));\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "sizeof_leb128(valueT value,int sign)" identifier (parameter_list "(valueT value,int sign)" ( (parameter_declaration "valueT value" type_identifier identifier) , (parameter_declaration "int sign" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = 0;\n  do {\n    while( true ) {\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }\n  } while ((value != 0xffffffff) || ((uVar2 & 0x40) == 0));\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }\n  } while ((value != 0xffffffff) || ((uVar2 & 0x40) == 0));" do (compound_statement "{\n    while( true ) {\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar2 = value;\n      uVar1 = uVar1 + 1;\n      value = (int)uVar2 >> 7;\n      if (value != 0) break;\n      if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }\n    }" { (expression_statement "uVar2 = value;" (assignment_expression "uVar2 = value" identifier = identifier) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "value = (int)uVar2 >> 7;" (assignment_expression "value = (int)uVar2 >> 7" identifier = (binary_expression "(int)uVar2 >> 7" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if (value != 0) break;" if (parenthesized_expression "(value != 0)" ( (binary_expression "value != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar2 & 0x40) == 0) {\n        return uVar1;\n      }" if (parenthesized_expression "((uVar2 & 0x40) == 0)" ( (binary_expression "(uVar2 & 0x40) == 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return uVar1;\n      }" { (return_statement "return uVar1;" return identifier ;) })) })) }) while (parenthesized_expression "((value != 0xffffffff) || ((uVar2 & 0x40) == 0))" ( (binary_expression "(value != 0xffffffff) || ((uVar2 & 0x40) == 0)" (parenthesized_expression "(value != 0xffffffff)" ( (binary_expression "value != 0xffffffff" identifier != number_literal) )) || (parenthesized_expression "((uVar2 & 0x40) == 0)" ( (binary_expression "(uVar2 & 0x40) == 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) == number_literal) ))) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_0002c050(uint param_1)\n\n{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002c050(uint param_1)\n\n{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002c050(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (do_statement "do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));" do (compound_statement "{\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }" { (expression_statement "uVar1 = param_1;" (assignment_expression "uVar1 = param_1" identifier = identifier) ;) (expression_statement "param_1 = (int)uVar1 >> 7;" (assignment_expression "param_1 = (int)uVar1 >> 7" identifier = (binary_expression "(int)uVar1 >> 7" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if (param_1 != 0) break;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar1 & 0x40) == 0) {\n        return;\n      }" if (parenthesized_expression "((uVar1 & 0x40) == 0)" ( (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) }) while (parenthesized_expression "((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0))" ( (binary_expression "(param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0)" (parenthesized_expression "(param_1 != 0xffffffff)" ( (binary_expression "param_1 != 0xffffffff" identifier != number_literal) )) || (parenthesized_expression "((uVar1 & 0x40) == 0)" ( (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) == number_literal) ))) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return ;) })) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002c050(uint param_1)\n\n{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002c050(uint param_1)" (identifier "FUN_0002c050") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (do_statement "do {\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));" (do "do") (compound_statement "{\n    while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar1 = param_1;\n      param_1 = (int)uVar1 >> 7;\n      if (param_1 != 0) break;\n      if ((uVar1 & 0x40) == 0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "uVar1 = param_1;" (assignment_expression "uVar1 = param_1" (identifier "uVar1") (= "=") (identifier "param_1")) (; ";")) (expression_statement "param_1 = (int)uVar1 >> 7;" (assignment_expression "param_1 = (int)uVar1 >> 7" (identifier "param_1") (= "=") (binary_expression "(int)uVar1 >> 7" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "7"))) (; ";")) (if_statement "if (param_1 != 0) break;" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((uVar1 & 0x40) == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "((uVar1 & 0x40) == 0)" (( "(") (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" (( "(") (binary_expression "uVar1 & 0x40" (identifier "uVar1") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0))" (( "(") (binary_expression "(param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0)" (parenthesized_expression "(param_1 != 0xffffffff)" (( "(") (binary_expression "param_1 != 0xffffffff" (identifier "param_1") (!= "!=") (number_literal "0xffffffff")) () ")")) (|| "||") (parenthesized_expression "((uVar1 & 0x40) == 0)" (( "(") (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" (( "(") (binary_expression "uVar1 & 0x40" (identifier "uVar1") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 __regparm3 function_1(type_2 var_2,int sign)

{
  type_1 var_1;
  type_1 var_3;
  
  var_1 = 0;
  do {
    while( true ) {
      var_3 = var_2;
      var_1 = var_1 + 1;
      var_2 = (int)var_3 >> 7;
      if (var_2 != 0) break;
      if ((var_3 & 0x40) == 0) {
        return var_1;
      }
    }
  } while ((var_2 != 0xffffffff) || ((var_3 & 0x40) == 0));
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement)))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (return_statement))))

void __regparm3 MASKED(uint param_1)

{
  uint uVar1;
  
  do {
    while( true ) {
      uVar1 = param_1;
      param_1 = (int)uVar1 >> 7;
      if (param_1 != 0) break;
      if ((uVar1 & 0x40) == 0) {
        return;
      }
    }
  } while ((param_1 != 0xffffffff) || ((uVar1 & 0x40) == 0));
  return;
}

