
int ocb_ntz(ulong x)

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



int ocb_ntz(ulong param_1)

{
  int iVar1;
  ulong uVar2;
  
  uVar2 = param_1 & 0xffffffff;
  iVar1 = 0;
  if ((param_1 & 1) == 0) {
    do {
      uVar2 = uVar2 >> 1;
      iVar1 = iVar1 + 1;
    } while ((uVar2 & 1) == 0);
    return iVar1;
  }
  return 0;
}


MOV EDX,EDI
XOR EAX,EAX
AND EDI,0x1
JNZ 0x00140950
NOP dword ptr [RAX]
SHR RDX,0x1
ADD EAX,0x1
TEST DL,0x1
JZ 0x00140940
RET
RET
(translation_unit "int ocb_ntz(ulong param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int ocb_ntz(ulong param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "ocb_ntz(ulong param_1)" identifier (parameter_list "(ulong param_1)" ( (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1 & 0xffffffff;" (assignment_expression "uVar2 = param_1 & 0xffffffff" identifier = (binary_expression "param_1 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" if (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" { (do_statement "do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);" do (compound_statement "{\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int ocb_ntz(ulong x)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = x & 0xffffffff;\n  iVar1 = 0;\n  if ((x & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int ocb_ntz(ulong x)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = x & 0xffffffff;\n  iVar1 = 0;\n  if ((x & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "ocb_ntz(ulong x)" identifier (parameter_list "(ulong x)" ( (parameter_declaration "ulong x" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = x & 0xffffffff;\n  iVar1 = 0;\n  if ((x & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type 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 "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((x & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" if (parenthesized_expression "((x & 1) == 0)" ( (binary_expression "(x & 1) == 0" (parenthesized_expression "(x & 1)" ( (binary_expression "x & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" { (do_statement "do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);" do (compound_statement "{\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int ocb_ntz(ulong param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int ocb_ntz(ulong param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "ocb_ntz(ulong param_1)" identifier (parameter_list "(ulong param_1)" ( (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1 & 0xffffffff;" (assignment_expression "uVar2 = param_1 & 0xffffffff" identifier = (binary_expression "param_1 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" if (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" { (do_statement "do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);" do (compound_statement "{\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == 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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int ocb_ntz(ulong param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "ocb_ntz(ulong param_1)" (identifier "ocb_ntz") (parameter_list "(ulong param_1)" (( "(") (parameter_declaration "ulong param_1" (type_identifier "ulong") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = param_1 & 0xffffffff;\n  iVar1 = 0;\n  if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = param_1 & 0xffffffff;" (assignment_expression "uVar2 = param_1 & 0xffffffff" (identifier "uVar2") (= "=") (binary_expression "param_1 & 0xffffffff" (identifier "param_1") (& "&") (number_literal "0xffffffff"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1 & 1) == 0) {\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((param_1 & 1) == 0)" (( "(") (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" (( "(") (binary_expression "param_1 & 1" (identifier "param_1") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);\n    return iVar1;\n  }" ({ "{") (do_statement "do {\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    } while ((uVar2 & 1) == 0);" (do "do") (compound_statement "{\n      uVar2 = uVar2 >> 1;\n      iVar1 = iVar1 + 1;\n    }" ({ "{") (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 1" (identifier "uVar2") (>> ">>") (number_literal "1"))) (; ";")) (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 "((uVar2 & 1) == 0)" (( "(") (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 var_1)

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


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

int MASKED(ulong param_1)

{
  int iVar1;
  ulong uVar2;
  
  uVar2 = param_1 & 0xffffffff;
  iVar1 = 0;
  if ((param_1 & 1) == 0) {
    do {
      uVar2 = uVar2 >> 1;
      iVar1 = iVar1 + 1;
    } while ((uVar2 & 1) == 0);
    return iVar1;
  }
  return 0;
}

