
/* WARNING: Unknown calling convention */

mp_bitcnt_t __gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  
  puVar1 = up + (starting_bit >> 5);
  uVar3 = -1 << ((byte)starting_bit & 0x1f) & ~*puVar1;
  while (puVar1 = puVar1 + 1, uVar3 == 0) {
    uVar3 = *puVar1 ^ 0xffffffff;
  }
  iVar2 = 0;
  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {
    iVar2 = iVar2 + 1;
  }
  return iVar2 + (((int)puVar1 - (int)up >> 2) + -1) * 0x20;
}



int __gmpn_scan0(int param_1,uint param_2)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  
  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);
  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;
  while (puVar1 = puVar1 + 1, uVar3 == 0) {
    uVar3 = *puVar1 ^ 0xffffffff;
  }
  iVar2 = 0;
  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {
    iVar2 = iVar2 + 1;
  }
  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;
}


PUSH ESI
PUSH EBX
MOV ECX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0xc]
MOV EAX,ECX
SHR EAX,0x5
LEA EAX,[EBX + EAX*0x4]
LEA EDX,[EAX + 0x4]
MOV EAX,dword ptr [EAX]
NOT EAX
MOV ESI,EAX
MOV EAX,0xffffffff
SHL EAX,CL
AND EAX,ESI
JNZ 0x0004e34b
LEA ESI,[ESI]
LEA ESI,[ESI]
ADD EDX,0x4
MOV EAX,dword ptr [EDX + -0x4]
XOR EAX,0xffffffff
JZ 0x0004e340
SUB EDX,EBX
TZCNT EAX,EAX
POP EBX
POP ESI
SAR EDX,0x2
SUB EDX,0x1
SHL EDX,0x5
ADD EAX,EDX
RET
(translation_unit "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}\n\n" (function_definition "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}" primitive_type (function_declarator "__gmpn_scan0(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);" (assignment_expression "puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4)" identifier = (cast_expression "(uint *)(param_1 + (param_2 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (param_2 >> 5) * 4)" ( (binary_expression "param_1 + (param_2 >> 5) * 4" identifier + (binary_expression "(param_2 >> 5) * 4" (parenthesized_expression "(param_2 >> 5)" ( (binary_expression "param_2 >> 5" identifier >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;" (assignment_expression "uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1" identifier = (binary_expression "-1 << ((byte)param_2 & 0x1f) & ~*puVar1" (binary_expression "-1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (while_statement "while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" while (parenthesized_expression "(puVar1 = puVar1 + 1, uVar3 == 0)" ( (comma_expression "puVar1 = puVar1 + 1, uVar3 == 0" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) , (binary_expression "uVar3 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" { (expression_statement "uVar3 = *puVar1 ^ 0xffffffff;" (assignment_expression "uVar3 = *puVar1 ^ 0xffffffff" identifier = (binary_expression "*puVar1 ^ 0xffffffff" (pointer_expression "*puVar1" * identifier) ^ number_literal)) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (for_statement "for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }" for ( ; (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) ; (assignment_expression "uVar3 = uVar3 >> 1 | 0x80000000" identifier = (binary_expression "uVar3 >> 1 | 0x80000000" (binary_expression "uVar3 >> 1" identifier >> number_literal) | number_literal)) ) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;" return (binary_expression "iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20" identifier + (binary_expression "(((int)puVar1 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar1 - param_1 >> 2) + -1)" ( (binary_expression "((int)puVar1 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar1 - param_1 >> 2)" ( (binary_expression "(int)puVar1 - param_1 >> 2" (binary_expression "(int)puVar1 - param_1" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal)) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nmp_bitcnt_t __gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = up + (starting_bit >> 5);\n  uVar3 = -1 << ((byte)starting_bit & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - (int)up >> 2) + -1) * 0x20;\n}\n\n" comment (function_definition "mp_bitcnt_t __gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = up + (starting_bit >> 5);\n  uVar3 = -1 << ((byte)starting_bit & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - (int)up >> 2) + -1) * 0x20;\n}" type_identifier (function_declarator "__gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)" identifier (parameter_list "(mp_srcptr up,mp_bitcnt_t starting_bit)" ( (parameter_declaration "mp_srcptr up" type_identifier identifier) , (parameter_declaration "mp_bitcnt_t starting_bit" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = up + (starting_bit >> 5);\n  uVar3 = -1 << ((byte)starting_bit & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - (int)up >> 2) + -1) * 0x20;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = up + (starting_bit >> 5);" (assignment_expression "puVar1 = up + (starting_bit >> 5)" identifier = (binary_expression "up + (starting_bit >> 5)" identifier + (parenthesized_expression "(starting_bit >> 5)" ( (binary_expression "starting_bit >> 5" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = -1 << ((byte)starting_bit & 0x1f) & ~*puVar1;" (assignment_expression "uVar3 = -1 << ((byte)starting_bit & 0x1f) & ~*puVar1" identifier = (binary_expression "-1 << ((byte)starting_bit & 0x1f) & ~*puVar1" (binary_expression "-1 << ((byte)starting_bit & 0x1f)" number_literal << (parenthesized_expression "((byte)starting_bit & 0x1f)" ( (binary_expression "(byte)starting_bit & 0x1f" (cast_expression "(byte)starting_bit" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (while_statement "while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" while (parenthesized_expression "(puVar1 = puVar1 + 1, uVar3 == 0)" ( (comma_expression "puVar1 = puVar1 + 1, uVar3 == 0" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) , (binary_expression "uVar3 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" { (expression_statement "uVar3 = *puVar1 ^ 0xffffffff;" (assignment_expression "uVar3 = *puVar1 ^ 0xffffffff" identifier = (binary_expression "*puVar1 ^ 0xffffffff" (pointer_expression "*puVar1" * identifier) ^ number_literal)) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (for_statement "for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }" for ( ; (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) ; (assignment_expression "uVar3 = uVar3 >> 1 | 0x80000000" identifier = (binary_expression "uVar3 >> 1 | 0x80000000" (binary_expression "uVar3 >> 1" identifier >> number_literal) | number_literal)) ) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return iVar2 + (((int)puVar1 - (int)up >> 2) + -1) * 0x20;" return (binary_expression "iVar2 + (((int)puVar1 - (int)up >> 2) + -1) * 0x20" identifier + (binary_expression "(((int)puVar1 - (int)up >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar1 - (int)up >> 2) + -1)" ( (binary_expression "((int)puVar1 - (int)up >> 2) + -1" (parenthesized_expression "((int)puVar1 - (int)up >> 2)" ( (binary_expression "(int)puVar1 - (int)up >> 2" (binary_expression "(int)puVar1 - (int)up" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)up" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) + number_literal) )) * number_literal)) ;) })))
(translation_unit "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}\n\n" (function_definition "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}" primitive_type (function_declarator "__gmpn_scan0(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);" (assignment_expression "puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4)" identifier = (cast_expression "(uint *)(param_1 + (param_2 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (param_2 >> 5) * 4)" ( (binary_expression "param_1 + (param_2 >> 5) * 4" identifier + (binary_expression "(param_2 >> 5) * 4" (parenthesized_expression "(param_2 >> 5)" ( (binary_expression "param_2 >> 5" identifier >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;" (assignment_expression "uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1" identifier = (binary_expression "-1 << ((byte)param_2 & 0x1f) & ~*puVar1" (binary_expression "-1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (while_statement "while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" while (parenthesized_expression "(puVar1 = puVar1 + 1, uVar3 == 0)" ( (comma_expression "puVar1 = puVar1 + 1, uVar3 == 0" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) , (binary_expression "uVar3 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" { (expression_statement "uVar3 = *puVar1 ^ 0xffffffff;" (assignment_expression "uVar3 = *puVar1 ^ 0xffffffff" identifier = (binary_expression "*puVar1 ^ 0xffffffff" (pointer_expression "*puVar1" * identifier) ^ number_literal)) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (for_statement "for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }" for ( ; (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) == number_literal) ; (assignment_expression "uVar3 = uVar3 >> 1 | 0x80000000" identifier = (binary_expression "uVar3 >> 1 | 0x80000000" (binary_expression "uVar3 >> 1" identifier >> number_literal) | number_literal)) ) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;" return (binary_expression "iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20" identifier + (binary_expression "(((int)puVar1 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar1 - param_1 >> 2) + -1)" ( (binary_expression "((int)puVar1 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar1 - param_1 >> 2)" ( (binary_expression "(int)puVar1 - param_1 >> 2" (binary_expression "(int)puVar1 - param_1" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal)) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) ^ LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (for_statement for ( ; (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ; (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) >> LIT) )) + LIT) )) * LIT)) ;) })))
(function_definition "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}" (primitive_type "int") (function_declarator "__gmpn_scan0(int param_1,uint param_2)" (identifier "__gmpn_scan0") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  \n  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;\n  while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }\n  iVar2 = 0;\n  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }\n  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);" (assignment_expression "puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(param_1 + (param_2 >> 5) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (param_2 >> 5) * 4)" (( "(") (binary_expression "param_1 + (param_2 >> 5) * 4" (identifier "param_1") (+ "+") (binary_expression "(param_2 >> 5) * 4" (parenthesized_expression "(param_2 >> 5)" (( "(") (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;" (assignment_expression "uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1" (identifier "uVar3") (= "=") (binary_expression "-1 << ((byte)param_2 & 0x1f) & ~*puVar1" (binary_expression "-1 << ((byte)param_2 & 0x1f)" (number_literal "-1") (<< "<<") (parenthesized_expression "((byte)param_2 & 0x1f)" (( "(") (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (unary_expression "~*puVar1" (~ "~") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))))) (; ";")) (while_statement "while (puVar1 = puVar1 + 1, uVar3 == 0) {\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" (while "while") (parenthesized_expression "(puVar1 = puVar1 + 1, uVar3 == 0)" (( "(") (comma_expression "puVar1 = puVar1 + 1, uVar3 == 0" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (, ",") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    uVar3 = *puVar1 ^ 0xffffffff;\n  }" ({ "{") (expression_statement "uVar3 = *puVar1 ^ 0xffffffff;" (assignment_expression "uVar3 = *puVar1 ^ 0xffffffff" (identifier "uVar3") (= "=") (binary_expression "*puVar1 ^ 0xffffffff" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (^ "^") (number_literal "0xffffffff"))) (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (for_statement "for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {\n    iVar2 = iVar2 + 1;\n  }" (for "for") (( "(") (; ";") (binary_expression "(uVar3 & 1) == 0" (parenthesized_expression "(uVar3 & 1)" (( "(") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 >> 1 | 0x80000000" (identifier "uVar3") (= "=") (binary_expression "uVar3 >> 1 | 0x80000000" (binary_expression "uVar3 >> 1" (identifier "uVar3") (>> ">>") (number_literal "1")) (| "|") (number_literal "0x80000000"))) () ")") (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;" (return "return") (binary_expression "iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20" (identifier "iVar2") (+ "+") (binary_expression "(((int)puVar1 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar1 - param_1 >> 2) + -1)" (( "(") (binary_expression "((int)puVar1 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar1 - param_1 >> 2)" (( "(") (binary_expression "(int)puVar1 - param_1 >> 2" (binary_expression "(int)puVar1 - param_1" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (- "-") (identifier "param_1")) (>> ">>") (number_literal "2")) () ")")) (+ "+") (number_literal "-1")) () ")")) (* "*") (number_literal "0x20"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 var_1,type_1 var_2)

{
  type_3 *var_3;
  int var_5;
  type_3 var_4;
  
  var_3 = var_1 + (var_2 >> 5);
  var_4 = -1 << ((type_4)var_2 & 0x1f) & ~*var_3;
  while (var_3 = var_3 + 1, var_4 == 0) {
    var_4 = *var_3 ^ 0xffffffff;
  }
  var_5 = 0;
  for (; (var_4 & 1) == 0; var_4 = var_4 >> 1 | 0x80000000) {
    var_5 = var_5 + 1;
  }
  return var_5 + (((int)var_3 - (int)var_1 >> 2) + -1) * 0x20;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (unary_expression argument: (pointer_expression argument: (identifier)))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (for_statement condition: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))) right: (number_literal)))))))

int MASKED(int param_1,uint param_2)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  
  puVar1 = (uint *)(param_1 + (param_2 >> 5) * 4);
  uVar3 = -1 << ((byte)param_2 & 0x1f) & ~*puVar1;
  while (puVar1 = puVar1 + 1, uVar3 == 0) {
    uVar3 = *puVar1 ^ 0xffffffff;
  }
  iVar2 = 0;
  for (; (uVar3 & 1) == 0; uVar3 = uVar3 >> 1 | 0x80000000) {
    iVar2 = iVar2 + 1;
  }
  return iVar2 + (((int)puVar1 - param_1 >> 2) + -1) * 0x20;
}

