
ulong der_object_identifier_bits(ulong x)

{
  ulong uVar1;
  ulong uVar2;
  
  uVar2 = x & 0xffffffff;
  uVar1 = 0;
  if (uVar2 != 0) {
    do {
      uVar1 = uVar1 + 1;
      uVar2 = uVar2 >> 1;
    } while (uVar2 != 0);
    return uVar1;
  }
  return 0;
}



long der_object_identifier_bits(uint param_1)

{
  long lVar1;
  ulong uVar2;
  
  uVar2 = (ulong)param_1;
  lVar1 = 0;
  if (uVar2 != 0) {
    do {
      lVar1 = lVar1 + 1;
      uVar2 = uVar2 >> 1;
    } while (uVar2 != 0);
    return lVar1;
  }
  return 0;
}


MOV EDI,EDI
XOR EAX,EAX
TEST RDI,RDI
JZ 0x0017e3b0
NOP dword ptr [RAX]
ADD RAX,0x1
SHR RDI,0x1
JNZ 0x0017e3a0
RET
RET
(translation_unit "long der_object_identifier_bits(uint param_1)\n\n{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long der_object_identifier_bits(uint param_1)\n\n{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "der_object_identifier_bits(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (ulong)param_1;" (assignment_expression "uVar2 = (ulong)param_1" identifier = (cast_expression "(ulong)param_1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (if_statement "if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }" { (do_statement "do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);" do (compound_statement "{\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    }" { (expression_statement "lVar1 = lVar1 + 1;" (assignment_expression "lVar1 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) (return_statement "return lVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "ulong der_object_identifier_bits(ulong x)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = x & 0xffffffff;\n  uVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "ulong der_object_identifier_bits(ulong x)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = x & 0xffffffff;\n  uVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "der_object_identifier_bits(ulong x)" identifier (parameter_list "(ulong x)" ( (parameter_declaration "ulong x" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  ulong uVar2;\n  \n  uVar2 = x & 0xffffffff;\n  uVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = x & 0xffffffff;" (assignment_expression "uVar2 = x & 0xffffffff" identifier = (binary_expression "x & 0xffffffff" identifier & number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (uVar2 != 0) {\n    do {\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return uVar1;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return uVar1;\n  }" { (do_statement "do {\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "long der_object_identifier_bits(uint param_1)\n\n{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long der_object_identifier_bits(uint param_1)\n\n{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "der_object_identifier_bits(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (ulong)param_1;" (assignment_expression "uVar2 = (ulong)param_1" identifier = (cast_expression "(ulong)param_1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (if_statement "if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }" { (do_statement "do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);" do (compound_statement "{\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    }" { (expression_statement "lVar1 = lVar1 + 1;" (assignment_expression "lVar1 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) (return_statement "return lVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "long der_object_identifier_bits(uint param_1)\n\n{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "der_object_identifier_bits(uint param_1)" (identifier "der_object_identifier_bits") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  ulong uVar2;\n  \n  uVar2 = (ulong)param_1;\n  lVar1 = 0;\n  if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = (ulong)param_1;" (assignment_expression "uVar2 = (ulong)param_1" (identifier "uVar2") (= "=") (cast_expression "(ulong)param_1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" (identifier "lVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar2 != 0) {\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);\n    return lVar1;\n  }" ({ "{") (do_statement "do {\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    } while (uVar2 != 0);" (do "do") (compound_statement "{\n      lVar1 = lVar1 + 1;\n      uVar2 = uVar2 >> 1;\n    }" ({ "{") (expression_statement "lVar1 = lVar1 + 1;" (assignment_expression "lVar1 = lVar1 + 1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + 1" (identifier "lVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 1" (identifier "uVar2") (>> ">>") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_1 var_1)

{
  type_1 var_3;
  type_1 var_2;
  
  var_2 = var_1 & 0xffffffff;
  var_3 = 0;
  if (var_2 != 0) {
    do {
      var_3 = var_3 + 1;
      var_2 = var_2 >> 1;
    } while (var_2 != 0);
    return var_3;
  }
  return 0;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement (identifier)))) (return_statement (number_literal)))))

long MASKED(uint param_1)

{
  long lVar1;
  ulong uVar2;
  
  uVar2 = (ulong)param_1;
  lVar1 = 0;
  if (uVar2 != 0) {
    do {
      lVar1 = lVar1 + 1;
      uVar2 = uVar2 >> 1;
    } while (uVar2 != 0);
    return lVar1;
  }
  return 0;
}

