
mp_bitcnt_t __gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)

{
  uint uVar1;
  uint uVar2;
  mp_srcptr pmVar3;
  int iVar4;
  int in_t9;
  
  pmVar3 = up + (starting_bit >> 5);
  uVar2 = -1 << (starting_bit & 0x1f) & ~*pmVar3;
  while (pmVar3 = pmVar3 + 1, uVar2 == 0) {
    uVar2 = ~*pmVar3;
  }
  if ((uVar2 & 0xff) != 0) {
    return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +
           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);
  }
  uVar1 = uVar2 >> 8;
  iVar4 = 6;
  if ((uVar1 & 0xff) == 0) {
    uVar1 = uVar2 >> 0x10;
    iVar4 = 0xe;
    if ((uVar1 & 0xff) == 0) {
      uVar1 = uVar2 >> 0x18;
      iVar4 = 0x16;
      if (uVar1 == 0) {
        iVar4 = 0x1e;
      }
    }
  }
  return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +
         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)) + iVar4;
}



int __gmpn_scan0(int param_1,uint param_2)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  int iVar4;
  
  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);
  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;
  while (puVar3 = puVar3 + 1, uVar2 == 0) {
    uVar2 = ~*puVar3;
  }
  if ((uVar2 & 0xff) != 0) {
    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +
           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);
  }
  uVar1 = uVar2 >> 8;
  iVar4 = 6;
  if ((uVar1 & 0xff) == 0) {
    uVar1 = uVar2 >> 0x10;
    iVar4 = 0xe;
    if ((uVar1 & 0xff) == 0) {
      uVar1 = uVar2 >> 0x18;
      iVar4 = 0x16;
      if (uVar1 == 0) {
        iVar4 = 0x1e;
      }
    }
  }
  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +
         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;
}


lui gp,0x6
addiu gp,gp,-0x76b0
addu gp,gp,t9
srl a2,a1,0x5
li v0,-0x1
sll a2,a2,0x2
sllv a1,v0,a1
addu a2,a0,a2
addiu v1,a2,0x4
lw a2,0x0(a2)
nor a2,zero,a2
and a1,a1,a2
bne a1,zero,0x0004c73c
_andi v0,a1,0xff
addiu v1,v1,0x4
lw a1,-0x4(v1)
nor a1,zero,a1
beq a1,zero,0x0004c728
_andi v0,a1,0xff
beq v0,zero,0x0004c770
_subu v0,v1,a0
subu a2,zero,a1
and a2,a2,a1
lw a1,-0x7eb4(gp)
sra v0,v0,0x2
addu a1,a1,a2
addiu v0,v0,-0x1
lbu a1,0x0(a1)
sll v0,v0,0x5
addiu a1,a1,-0x2
jr ra
_addu v0,v0,a1
srl v0,a1,0x8
andi a3,v0,0xff
beq a3,zero,0x0004c7b0
_li a2,0x6
subu a1,zero,v0
and a1,a1,v0
lw v0,-0x7eb4(gp)
addu v0,v0,a1
lbu a1,0x0(v0)
subu v0,v1,a0
sra v0,v0,0x2
addu a1,a1,a2
addiu v0,v0,-0x1
sll v0,v0,0x5
jr ra
_addu v0,v0,a1
srl v0,a1,0x10
andi a3,v0,0xff
bne a3,zero,0x0004c780
_li a2,0xe
srl v0,a1,0x18
li a2,0x16
li a1,0x1e
b 0x0004c780
_movz a2,a1,v0
(translation_unit "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\n}\n\n" (function_definition "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\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 uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);" (assignment_expression "puVar3 = (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 "uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;" (assignment_expression "uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3" identifier = (binary_expression "-1 << (param_2 & 0x1f) & ~*puVar3" (binary_expression "-1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) & (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier)))) ;) (while_statement "while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }" while (parenthesized_expression "(puVar3 = puVar3 + 1, uVar2 == 0)" ( (comma_expression "puVar3 = puVar3 + 1, uVar2 == 0" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) , (binary_expression "uVar2 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar2 = ~*puVar3;\n  }" { (expression_statement "uVar2 = ~*puVar3;" (assignment_expression "uVar2 = ~*puVar3" identifier = (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier))) ;) })) (if_statement "if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }" if (parenthesized_expression "((uVar2 & 0xff) != 0)" ( (binary_expression "(uVar2 & 0xff) != 0" (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }" { (return_statement "return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);" return (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2)" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar3 - param_1 >> 2) + -1)" ( (binary_expression "((int)puVar3 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar3 - param_1 >> 2)" ( (binary_expression "(int)puVar3 - param_1 >> 2" (binary_expression "(int)puVar3 - param_1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2)" ( (binary_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2" (cast_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2]" identifier [ (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" - identifier) & identifier) ])) - number_literal) ))) ;) })) (expression_statement "uVar1 = uVar2 >> 8;" (assignment_expression "uVar1 = uVar2 >> 8" identifier = (binary_expression "uVar2 >> 8" identifier >> number_literal)) ;) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" if (parenthesized_expression "((uVar1 & 0xff) == 0)" ( (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" { (expression_statement "uVar1 = uVar2 >> 0x10;" (assignment_expression "uVar1 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) (expression_statement "iVar4 = 0xe;" (assignment_expression "iVar4 = 0xe" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" if (parenthesized_expression "((uVar1 & 0xff) == 0)" ( (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" { (expression_statement "uVar1 = uVar2 >> 0x18;" (assignment_expression "uVar1 = uVar2 >> 0x18" identifier = (binary_expression "uVar2 >> 0x18" identifier >> number_literal)) ;) (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (if_statement "if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0x1e;\n      }" { (expression_statement "iVar4 = 0x1e;" (assignment_expression "iVar4 = 0x1e" identifier = number_literal) ;) })) })) })) (return_statement "return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;" return (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar3 - param_1 >> 2) + -1)" ( (binary_expression "((int)puVar3 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar3 - param_1 >> 2)" ( (binary_expression "(int)puVar3 - param_1 >> 2" (binary_expression "(int)puVar3 - param_1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (cast_expression "(uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" identifier [ (binary_expression "-uVar1 & uVar1" (unary_expression "-uVar1" - identifier) & identifier) ])))) + identifier) ;) })))
(translation_unit "mp_bitcnt_t __gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)\n\n{\n  uint uVar1;\n  uint uVar2;\n  mp_srcptr pmVar3;\n  int iVar4;\n  int in_t9;\n  \n  pmVar3 = up + (starting_bit >> 5);\n  uVar2 = -1 << (starting_bit & 0x1f) & ~*pmVar3;\n  while (pmVar3 = pmVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*pmVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)) + iVar4;\n}\n\n" (function_definition "mp_bitcnt_t __gmpn_scan0(mp_srcptr up,mp_bitcnt_t starting_bit)\n\n{\n  uint uVar1;\n  uint uVar2;\n  mp_srcptr pmVar3;\n  int iVar4;\n  int in_t9;\n  \n  pmVar3 = up + (starting_bit >> 5);\n  uVar2 = -1 << (starting_bit & 0x1f) & ~*pmVar3;\n  while (pmVar3 = pmVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*pmVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)) + iVar4;\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 uVar1;\n  uint uVar2;\n  mp_srcptr pmVar3;\n  int iVar4;\n  int in_t9;\n  \n  pmVar3 = up + (starting_bit >> 5);\n  uVar2 = -1 << (starting_bit & 0x1f) & ~*pmVar3;\n  while (pmVar3 = pmVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*pmVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)) + iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "mp_srcptr pmVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "pmVar3 = up + (starting_bit >> 5);" (assignment_expression "pmVar3 = 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 "uVar2 = -1 << (starting_bit & 0x1f) & ~*pmVar3;" (assignment_expression "uVar2 = -1 << (starting_bit & 0x1f) & ~*pmVar3" identifier = (binary_expression "-1 << (starting_bit & 0x1f) & ~*pmVar3" (binary_expression "-1 << (starting_bit & 0x1f)" number_literal << (parenthesized_expression "(starting_bit & 0x1f)" ( (binary_expression "starting_bit & 0x1f" identifier & number_literal) ))) & (unary_expression "~*pmVar3" ~ (pointer_expression "*pmVar3" * identifier)))) ;) (while_statement "while (pmVar3 = pmVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*pmVar3;\n  }" while (parenthesized_expression "(pmVar3 = pmVar3 + 1, uVar2 == 0)" ( (comma_expression "pmVar3 = pmVar3 + 1, uVar2 == 0" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) , (binary_expression "uVar2 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar2 = ~*pmVar3;\n  }" { (expression_statement "uVar2 = ~*pmVar3;" (assignment_expression "uVar2 = ~*pmVar3" identifier = (unary_expression "~*pmVar3" ~ (pointer_expression "*pmVar3" * identifier))) ;) })) (if_statement "if ((uVar2 & 0xff) != 0) {\n    return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);\n  }" if (parenthesized_expression "((uVar2 & 0xff) != 0)" ( (binary_expression "(uVar2 & 0xff) != 0" (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);\n  }" { (return_statement "return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2);" return (binary_expression "(((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2)" (binary_expression "(((int)pmVar3 - (int)up >> 2) + -1) * 0x20" (parenthesized_expression "(((int)pmVar3 - (int)up >> 2) + -1)" ( (binary_expression "((int)pmVar3 - (int)up >> 2) + -1" (parenthesized_expression "((int)pmVar3 - (int)up >> 2)" ( (binary_expression "(int)pmVar3 - (int)up >> 2" (binary_expression "(int)pmVar3 - (int)up" (cast_expression "(int)pmVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)up" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2)" ( (binary_expression "*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)) - 2" (pointer_expression "*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2))" * (cast_expression "(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2))" ( (binary_expression "*(int *)(in_t9 + 0x50a9c) + (-uVar2 & uVar2)" (pointer_expression "*(int *)(in_t9 + 0x50a9c)" * (cast_expression "(int *)(in_t9 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x50a9c)" ( (binary_expression "in_t9 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar2 & uVar2)" ( (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" - identifier) & identifier) ))) )))) - number_literal) ))) ;) })) (expression_statement "uVar1 = uVar2 >> 8;" (assignment_expression "uVar1 = uVar2 >> 8" identifier = (binary_expression "uVar2 >> 8" identifier >> number_literal)) ;) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" if (parenthesized_expression "((uVar1 & 0xff) == 0)" ( (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" { (expression_statement "uVar1 = uVar2 >> 0x10;" (assignment_expression "uVar1 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) (expression_statement "iVar4 = 0xe;" (assignment_expression "iVar4 = 0xe" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" if (parenthesized_expression "((uVar1 & 0xff) == 0)" ( (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" { (expression_statement "uVar1 = uVar2 >> 0x18;" (assignment_expression "uVar1 = uVar2 >> 0x18" identifier = (binary_expression "uVar2 >> 0x18" identifier >> number_literal)) ;) (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (if_statement "if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0x1e;\n      }" { (expression_statement "iVar4 = 0x1e;" (assignment_expression "iVar4 = 0x1e" identifier = number_literal) ;) })) })) })) (return_statement "return (((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)) + iVar4;" return (binary_expression "(((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)) + iVar4" (binary_expression "(((int)pmVar3 - (int)up >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1))" (binary_expression "(((int)pmVar3 - (int)up >> 2) + -1) * 0x20" (parenthesized_expression "(((int)pmVar3 - (int)up >> 2) + -1)" ( (binary_expression "((int)pmVar3 - (int)up >> 2) + -1" (parenthesized_expression "((int)pmVar3 - (int)up >> 2)" ( (binary_expression "(int)pmVar3 - (int)up >> 2" (binary_expression "(int)pmVar3 - (int)up" (cast_expression "(int)pmVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)up" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) + number_literal) )) * number_literal) + (binary_expression "(uint)*(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1))" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1))" ( (binary_expression "*(int *)(in_t9 + 0x50a9c) + (-uVar1 & uVar1)" (pointer_expression "*(int *)(in_t9 + 0x50a9c)" * (cast_expression "(int *)(in_t9 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x50a9c)" ( (binary_expression "in_t9 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar1 & uVar1)" ( (binary_expression "-uVar1 & uVar1" (unary_expression "-uVar1" - identifier) & identifier) ))) ))))) + identifier) ;) })))
(translation_unit "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\n}\n\n" (function_definition "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\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 uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);" (assignment_expression "puVar3 = (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 "uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;" (assignment_expression "uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3" identifier = (binary_expression "-1 << (param_2 & 0x1f) & ~*puVar3" (binary_expression "-1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) & (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier)))) ;) (while_statement "while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }" while (parenthesized_expression "(puVar3 = puVar3 + 1, uVar2 == 0)" ( (comma_expression "puVar3 = puVar3 + 1, uVar2 == 0" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) , (binary_expression "uVar2 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar2 = ~*puVar3;\n  }" { (expression_statement "uVar2 = ~*puVar3;" (assignment_expression "uVar2 = ~*puVar3" identifier = (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier))) ;) })) (if_statement "if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }" if (parenthesized_expression "((uVar2 & 0xff) != 0)" ( (binary_expression "(uVar2 & 0xff) != 0" (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }" { (return_statement "return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);" return (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2)" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar3 - param_1 >> 2) + -1)" ( (binary_expression "((int)puVar3 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar3 - param_1 >> 2)" ( (binary_expression "(int)puVar3 - param_1 >> 2" (binary_expression "(int)puVar3 - param_1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2)" ( (binary_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2" (cast_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2]" identifier [ (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" - identifier) & identifier) ])) - number_literal) ))) ;) })) (expression_statement "uVar1 = uVar2 >> 8;" (assignment_expression "uVar1 = uVar2 >> 8" identifier = (binary_expression "uVar2 >> 8" identifier >> number_literal)) ;) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" if (parenthesized_expression "((uVar1 & 0xff) == 0)" ( (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" { (expression_statement "uVar1 = uVar2 >> 0x10;" (assignment_expression "uVar1 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) (expression_statement "iVar4 = 0xe;" (assignment_expression "iVar4 = 0xe" identifier = number_literal) ;) (if_statement "if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" if (parenthesized_expression "((uVar1 & 0xff) == 0)" ( (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" { (expression_statement "uVar1 = uVar2 >> 0x18;" (assignment_expression "uVar1 = uVar2 >> 0x18" identifier = (binary_expression "uVar2 >> 0x18" identifier >> number_literal)) ;) (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (if_statement "if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0x1e;\n      }" { (expression_statement "iVar4 = 0x1e;" (assignment_expression "iVar4 = 0x1e" identifier = number_literal) ;) })) })) })) (return_statement "return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;" return (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar3 - param_1 >> 2) + -1)" ( (binary_expression "((int)puVar3 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar3 - param_1 >> 2)" ( (binary_expression "(int)puVar3 - param_1 >> 2" (binary_expression "(int)puVar3 - param_1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (cast_expression "(uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" identifier [ (binary_expression "-uVar1 & uVar1" (unary_expression "-uVar1" - identifier) & identifier) ])))) + identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 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 = (unary_expression ~ (pointer_expression * IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) >> LIT) )) + LIT) )) * LIT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (unary_expression - IDENT) & IDENT) ])) - LIT) ))) ;) })) (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 { (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) })) (return_statement return (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) >> LIT) )) + LIT) )) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (unary_expression - IDENT) & IDENT) ])))) + IDENT) ;) })))
(function_definition "int __gmpn_scan0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\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 uVar1;\n  uint uVar2;\n  uint *puVar3;\n  int iVar4;\n  \n  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);\n  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;\n  while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }\n  if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }\n  uVar1 = uVar2 >> 8;\n  iVar4 = 6;\n  if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);" (assignment_expression "puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4)" (identifier "puVar3") (= "=") (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 "uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;" (assignment_expression "uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3" (identifier "uVar2") (= "=") (binary_expression "-1 << (param_2 & 0x1f) & ~*puVar3" (binary_expression "-1 << (param_2 & 0x1f)" (number_literal "-1") (<< "<<") (parenthesized_expression "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (unary_expression "~*puVar3" (~ "~") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))))) (; ";")) (while_statement "while (puVar3 = puVar3 + 1, uVar2 == 0) {\n    uVar2 = ~*puVar3;\n  }" (while "while") (parenthesized_expression "(puVar3 = puVar3 + 1, uVar2 == 0)" (( "(") (comma_expression "puVar3 = puVar3 + 1, uVar2 == 0" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (, ",") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    uVar2 = ~*puVar3;\n  }" ({ "{") (expression_statement "uVar2 = ~*puVar3;" (assignment_expression "uVar2 = ~*puVar3" (identifier "uVar2") (= "=") (unary_expression "~*puVar3" (~ "~") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (} "}"))) (if_statement "if ((uVar2 & 0xff) != 0) {\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }" (if "if") (parenthesized_expression "((uVar2 & 0xff) != 0)" (( "(") (binary_expression "(uVar2 & 0xff) != 0" (parenthesized_expression "(uVar2 & 0xff)" (( "(") (binary_expression "uVar2 & 0xff" (identifier "uVar2") (& "&") (number_literal "0xff")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);\n  }" ({ "{") (return_statement "return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);" (return "return") (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2)" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar3 - param_1 >> 2) + -1)" (( "(") (binary_expression "((int)puVar3 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar3 - param_1 >> 2)" (( "(") (binary_expression "(int)puVar3 - param_1 >> 2" (binary_expression "(int)puVar3 - param_1" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (- "-") (identifier "param_1")) (>> ">>") (number_literal "2")) () ")")) (+ "+") (number_literal "-1")) () ")")) (* "*") (number_literal "0x20")) (+ "+") (parenthesized_expression "((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2)" (( "(") (binary_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2" (cast_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2]" (identifier "PTR___gmpn_clz_tab_0009d18c") ([ "[") (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" (- "-") (identifier "uVar2")) (& "&") (identifier "uVar2")) (] "]"))) (- "-") (number_literal "2")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = uVar2 >> 8;" (assignment_expression "uVar1 = uVar2 >> 8" (identifier "uVar1") (= "=") (binary_expression "uVar2 >> 8" (identifier "uVar2") (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" (identifier "iVar4") (= "=") (number_literal "6")) (; ";")) (if_statement "if ((uVar1 & 0xff) == 0) {\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((uVar1 & 0xff) == 0)" (( "(") (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" (( "(") (binary_expression "uVar1 & 0xff" (identifier "uVar1") (& "&") (number_literal "0xff")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = uVar2 >> 0x10;\n    iVar4 = 0xe;\n    if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar1 = uVar2 >> 0x10;" (assignment_expression "uVar1 = uVar2 >> 0x10" (identifier "uVar1") (= "=") (binary_expression "uVar2 >> 0x10" (identifier "uVar2") (>> ">>") (number_literal "0x10"))) (; ";")) (expression_statement "iVar4 = 0xe;" (assignment_expression "iVar4 = 0xe" (identifier "iVar4") (= "=") (number_literal "0xe")) (; ";")) (if_statement "if ((uVar1 & 0xff) == 0) {\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" (if "if") (parenthesized_expression "((uVar1 & 0xff) == 0)" (( "(") (binary_expression "(uVar1 & 0xff) == 0" (parenthesized_expression "(uVar1 & 0xff)" (( "(") (binary_expression "uVar1 & 0xff" (identifier "uVar1") (& "&") (number_literal "0xff")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = uVar2 >> 0x18;\n      iVar4 = 0x16;\n      if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }\n    }" ({ "{") (expression_statement "uVar1 = uVar2 >> 0x18;" (assignment_expression "uVar1 = uVar2 >> 0x18" (identifier "uVar1") (= "=") (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18"))) (; ";")) (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" (identifier "iVar4") (= "=") (number_literal "0x16")) (; ";")) (if_statement "if (uVar1 == 0) {\n        iVar4 = 0x1e;\n      }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = 0x1e;\n      }" ({ "{") (expression_statement "iVar4 = 0x1e;" (assignment_expression "iVar4 = 0x1e" (identifier "iVar4") (= "=") (number_literal "0x1e")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;" (return "return") (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20 +\n         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" (binary_expression "(((int)puVar3 - param_1 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar3 - param_1 >> 2) + -1)" (( "(") (binary_expression "((int)puVar3 - param_1 >> 2) + -1" (parenthesized_expression "((int)puVar3 - param_1 >> 2)" (( "(") (binary_expression "(int)puVar3 - param_1 >> 2" (binary_expression "(int)puVar3 - param_1" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (- "-") (identifier "param_1")) (>> ">>") (number_literal "2")) () ")")) (+ "+") (number_literal "-1")) () ")")) (* "*") (number_literal "0x20")) (+ "+") (cast_expression "(uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1]" (identifier "PTR___gmpn_clz_tab_0009d18c") ([ "[") (binary_expression "-uVar1 & uVar1" (unary_expression "-uVar1" (- "-") (identifier "uVar1")) (& "&") (identifier "uVar1")) (] "]"))))) (+ "+") (identifier "iVar4")) (; ";")) (} "}")))

type_1 function_1(type_2 var_1,type_1 var_2)

{
  type_3 var_6;
  type_3 var_4;
  type_2 var_3;
  int var_7;
  int var_5;
  
  var_3 = var_1 + (var_2 >> 5);
  var_4 = -1 << (var_2 & 0x1f) & ~*var_3;
  while (var_3 = var_3 + 1, var_4 == 0) {
    var_4 = ~*var_3;
  }
  if ((var_4 & 0xff) != 0) {
    return (((int)var_3 - (int)var_1 >> 2) + -1) * 0x20 +
           (*(type_4 *)(*(int *)(var_5 + 0x50a9c) + (-var_4 & var_4)) - 2);
  }
  var_6 = var_4 >> 8;
  var_7 = 6;
  if ((var_6 & 0xff) == 0) {
    var_6 = var_4 >> 0x10;
    var_7 = 0xe;
    if ((var_6 & 0xff) == 0) {
      var_6 = var_4 >> 0x18;
      var_7 = 0x16;
      if (var_6 == 0) {
        var_7 = 0x1e;
      }
    }
  }
  return (((int)var_3 - (int)var_1 >> 2) + -1) * 0x20 +
         (type_3)*(type_4 *)(*(int *)(var_5 + 0x50a9c) + (-var_6 & var_6)) + var_7;
}


(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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (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: (unary_expression argument: (pointer_expression argument: (identifier))))))) (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 (binary_expression left: (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)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (unary_expression argument: (identifier)) right: (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: (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 (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 (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: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (return_statement (binary_expression left: (binary_expression left: (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)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (unary_expression argument: (identifier)) right: (identifier)))))) right: (identifier))))))

int MASKED(int param_1,uint param_2)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  int iVar4;
  
  puVar3 = (uint *)(param_1 + (param_2 >> 5) * 4);
  uVar2 = -1 << (param_2 & 0x1f) & ~*puVar3;
  while (puVar3 = puVar3 + 1, uVar2 == 0) {
    uVar2 = ~*puVar3;
  }
  if ((uVar2 & 0xff) != 0) {
    return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +
           ((byte)PTR___gmpn_clz_tab_0009d18c[-uVar2 & uVar2] - 2);
  }
  uVar1 = uVar2 >> 8;
  iVar4 = 6;
  if ((uVar1 & 0xff) == 0) {
    uVar1 = uVar2 >> 0x10;
    iVar4 = 0xe;
    if ((uVar1 & 0xff) == 0) {
      uVar1 = uVar2 >> 0x18;
      iVar4 = 0x16;
      if (uVar1 == 0) {
        iVar4 = 0x1e;
      }
    }
  }
  return (((int)puVar3 - param_1 >> 2) + -1) * 0x20 +
         (uint)(byte)PTR___gmpn_clz_tab_0009d18c[-uVar1 & uVar1] + iVar4;
}

